แก้สเตตัส
This commit is contained in:
parent
0ca15769f8
commit
aa67674fa7
1 changed files with 2 additions and 2 deletions
|
|
@ -667,7 +667,7 @@ export class ProfileEmployeeController extends Controller {
|
||||||
.leftJoinAndSelect("current_holders.orgChild3", "orgChild3")
|
.leftJoinAndSelect("current_holders.orgChild3", "orgChild3")
|
||||||
.leftJoinAndSelect("current_holders.orgChild4", "orgChild4")
|
.leftJoinAndSelect("current_holders.orgChild4", "orgChild4")
|
||||||
.andWhere("profileEmployee.employeeClass = :employeeClass", { employeeClass: "TEMP" })
|
.andWhere("profileEmployee.employeeClass = :employeeClass", { employeeClass: "TEMP" })
|
||||||
.andWhere("profileEmployee.statusTemp = :statusTemp", { statusTemp: "REPORT" })
|
.andWhere("profileEmployee.statusTemp = :statusTemp", { statusTemp: "PENDING" })
|
||||||
.getManyAndCount();
|
.getManyAndCount();
|
||||||
const data = await Promise.all(
|
const data = await Promise.all(
|
||||||
record.map((_data) => {
|
record.map((_data) => {
|
||||||
|
|
@ -1853,7 +1853,7 @@ export class ProfileEmployeeController extends Controller {
|
||||||
profileEmp.posTypeNameTemp = body.posTypeName;
|
profileEmp.posTypeNameTemp = body.posTypeName;
|
||||||
profileEmp.posLevelIdTemp = String(body.posLevelId);
|
profileEmp.posLevelIdTemp = String(body.posLevelId);
|
||||||
profileEmp.posLevelNameTemp = body.posLevelName;
|
profileEmp.posLevelNameTemp = body.posLevelName;
|
||||||
profileEmp.statusTemp = "REPORT";
|
profileEmp.statusTemp = "PENDING";
|
||||||
this.profileRepo.merge(profileEmp, body);
|
this.profileRepo.merge(profileEmp, body);
|
||||||
await this.profileRepo.save(profileEmp);
|
await this.profileRepo.save(profileEmp);
|
||||||
return new HttpSuccess();
|
return new HttpSuccess();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue