role เมนู ลูกจ้างชั่วคราว
This commit is contained in:
parent
6f053d2c70
commit
877a70ef3d
22 changed files with 109 additions and 63 deletions
|
|
@ -64,7 +64,8 @@ export class ProfileChangeNameEmployeeTempController extends Controller {
|
|||
},
|
||||
],
|
||||
})
|
||||
public async getChangeName(@Path() profileEmployeeId: string) {
|
||||
public async getChangeName(@Path() profileEmployeeId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
|
||||
const lists = await this.changeNameRepository.find({
|
||||
where: { profileEmployeeId: profileEmployeeId },
|
||||
select: ["id", "prefix", "firstName", "lastName", "status"],
|
||||
|
|
@ -98,7 +99,8 @@ export class ProfileChangeNameEmployeeTempController extends Controller {
|
|||
},
|
||||
],
|
||||
})
|
||||
public async changeNameHistory(@Path() changeNameId: string) {
|
||||
public async changeNameHistory(@Path() changeNameId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
|
||||
const record = await this.changeNameHistoryRepository.find({
|
||||
where: { profileChangeNameId: changeNameId },
|
||||
select: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue