role เมนู ลูกจ้างชั่วคราว
This commit is contained in:
parent
6f053d2c70
commit
877a70ef3d
22 changed files with 109 additions and 63 deletions
|
|
@ -72,7 +72,8 @@ export class ProfileDisciplineEmployeeTempController extends Controller {
|
|||
},
|
||||
],
|
||||
})
|
||||
public async getDiscipline(@Path() profileId: string) {
|
||||
public async getDiscipline(@Path() profileId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
|
||||
const lists = await this.disciplineRepository.find({
|
||||
where: { profileEmployeeId: profileId },
|
||||
select: [
|
||||
|
|
@ -91,7 +92,8 @@ export class ProfileDisciplineEmployeeTempController extends Controller {
|
|||
}
|
||||
|
||||
@Get("history/{disciplineId}")
|
||||
public async disciplineHistory(@Path() disciplineId: string) {
|
||||
public async disciplineHistory(@Path() disciplineId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
|
||||
const record = await this.disciplineHistoryRepository.find({
|
||||
where: { profileDisciplineId: disciplineId },
|
||||
select: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue