recheck เมนู ลูกจ้างชั่วคราว (list to get)
This commit is contained in:
parent
271e6964b3
commit
51eaf6b976
19 changed files with 37 additions and 38 deletions
|
|
@ -50,7 +50,7 @@ export class ProfileChildrenEmployeeTempController extends Controller {
|
|||
|
||||
@Get("{profileEmployeeId}")
|
||||
public async getChildren(@Path() profileEmployeeId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
|
||||
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
|
||||
const lists = await this.childrenRepository.find({
|
||||
where: { profileEmployeeId: profileEmployeeId },
|
||||
});
|
||||
|
|
@ -59,7 +59,7 @@ export class ProfileChildrenEmployeeTempController extends Controller {
|
|||
|
||||
@Get("history/{childrenId}")
|
||||
public async childrenHistory(@Path() childrenId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
|
||||
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
|
||||
const record = await this.childrenHistoryRepository.find({
|
||||
where: { profileChildrenId: childrenId },
|
||||
order: { createdAt: "DESC" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue