role เมนู ลูกจ้างชั่วคราว
This commit is contained in:
parent
6f053d2c70
commit
877a70ef3d
22 changed files with 109 additions and 63 deletions
|
|
@ -134,7 +134,8 @@ export class ProfileGovernmentEmployeeTempController extends Controller {
|
|||
*/
|
||||
@Get("{profileEmployeeId}")
|
||||
@Example({})
|
||||
public async getGovHistory(@Path() profileEmployeeId: string) {
|
||||
public async getGovHistory(@Path() profileEmployeeId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
|
||||
const record = await this.profileEmployeeRepo.findOne({
|
||||
where: { id: profileEmployeeId },
|
||||
relations: {
|
||||
|
|
@ -240,7 +241,8 @@ export class ProfileGovernmentEmployeeTempController extends Controller {
|
|||
*/
|
||||
@Get("history/{profileEmployeeId}")
|
||||
@Example({})
|
||||
public async govHistory(@Path() profileEmployeeId: string) {
|
||||
public async govHistory(@Path() profileEmployeeId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
|
||||
const record = await this.govRepo.find({
|
||||
order: { lastUpdatedAt: "DESC" },
|
||||
where: { profileEmployeeId: profileEmployeeId },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue