recheck เมนู ลูกจ้างประจำ กทม และเปลี่ยนจาก list เป็น get
This commit is contained in:
parent
2eb79a14b5
commit
057bda967f
21 changed files with 38 additions and 38 deletions
|
|
@ -75,7 +75,7 @@ export class ProfileTrainingEmployeeController extends Controller {
|
|||
],
|
||||
})
|
||||
public async getTraining(@Path() profileEmployeeId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_EMP", profileEmployeeId);
|
||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_EMP", profileEmployeeId);
|
||||
const record = await this.trainingRepo.findBy({ profileEmployeeId });
|
||||
return new HttpSuccess(record);
|
||||
}
|
||||
|
|
@ -134,7 +134,7 @@ export class ProfileTrainingEmployeeController extends Controller {
|
|||
public async trainingHistory(@Path() trainingId: string, @Request() req: RequestWithUser) {
|
||||
const _record = await this.trainingRepo.findOneBy({ id: trainingId });
|
||||
if (_record) {
|
||||
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_EMP", _record.profileEmployeeId);
|
||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_EMP", _record.profileEmployeeId);
|
||||
}
|
||||
|
||||
const record = await this.trainingHistoryRepo.findBy({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue