role เมนู ลูกจ้างชั่วคราว
This commit is contained in:
parent
6f053d2c70
commit
877a70ef3d
22 changed files with 109 additions and 63 deletions
|
|
@ -67,7 +67,8 @@ export class ProfileCertificateEmployeeTempController extends Controller {
|
|||
},
|
||||
],
|
||||
})
|
||||
public async getCertificate(@Path() profileEmployeeId: string) {
|
||||
public async getCertificate(@Path() profileEmployeeId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
|
||||
const record = await this.certificateRepo.findBy({ profileEmployeeId });
|
||||
return new HttpSuccess(record);
|
||||
}
|
||||
|
|
@ -109,7 +110,8 @@ export class ProfileCertificateEmployeeTempController extends Controller {
|
|||
},
|
||||
],
|
||||
})
|
||||
public async certificateHistory(@Path() certificateId: string) {
|
||||
public async certificateHistory(@Path() certificateId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
|
||||
const record = await this.certificateHistoryRepo.findBy({
|
||||
profileCertificateId: certificateId,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue