From 8665eb15437f0a4e25244399caff40d3f56b357a Mon Sep 17 00:00:00 2001 From: Kittapath Date: Wed, 12 Jun 2024 14:18:55 +0700 Subject: [PATCH] list employee temp report --- src/controllers/ProfileEmployeeController.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index ba6c374e..3cc72654 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -2805,4 +2805,18 @@ export class ProfileEmployeeController extends Controller { await this.profileRepo.save(_profiles); return new HttpSuccess(); } + + /** + * API ออกคำสั่งลูกจ้าง + * + * @summary ORG_038 - ออกคำสั่งลูกจ้าง (ADMIN) # + * + */ + @Get("report") + async getReport(@Request() request: RequestWithUser) { + const profiles = await this.profileRepo.find({ + where: { statusTemp: "REPORT", employeeClass: "TEMP" }, + }); + return new HttpSuccess(profiles); + } }