list employee temp report

This commit is contained in:
Kittapath 2024-06-12 14:18:55 +07:00
parent 7a4b25079f
commit 8665eb1543

View file

@ -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);
}
}