แก้สเตตัส

This commit is contained in:
Bright 2024-06-10 18:18:39 +07:00
parent 0ca15769f8
commit aa67674fa7

View file

@ -667,7 +667,7 @@ export class ProfileEmployeeController extends Controller {
.leftJoinAndSelect("current_holders.orgChild3", "orgChild3")
.leftJoinAndSelect("current_holders.orgChild4", "orgChild4")
.andWhere("profileEmployee.employeeClass = :employeeClass", { employeeClass: "TEMP" })
.andWhere("profileEmployee.statusTemp = :statusTemp", { statusTemp: "REPORT" })
.andWhere("profileEmployee.statusTemp = :statusTemp", { statusTemp: "PENDING" })
.getManyAndCount();
const data = await Promise.all(
record.map((_data) => {
@ -1853,7 +1853,7 @@ export class ProfileEmployeeController extends Controller {
profileEmp.posTypeNameTemp = body.posTypeName;
profileEmp.posLevelIdTemp = String(body.posLevelId);
profileEmp.posLevelNameTemp = body.posLevelName;
profileEmp.statusTemp = "REPORT";
profileEmp.statusTemp = "PENDING";
this.profileRepo.merge(profileEmp, body);
await this.profileRepo.save(profileEmp);
return new HttpSuccess();