no message
This commit is contained in:
parent
16ca14fc51
commit
014301dcc4
33 changed files with 54 additions and 768 deletions
|
|
@ -1348,7 +1348,16 @@ export class EmployeePositionController extends Controller {
|
|||
: posMaster.ancestorDNA,
|
||||
},
|
||||
order: { lastUpdatedAt: "DESC" },
|
||||
relations: ["orgRoot", "orgChild1", "orgChild2", "orgChild3", "orgChild4"],
|
||||
relations: [
|
||||
"orgRoot",
|
||||
"orgChild1",
|
||||
"orgChild2",
|
||||
"orgChild3",
|
||||
"orgChild4",
|
||||
"positions",
|
||||
"positions.posLevel",
|
||||
"positions.posType",
|
||||
],
|
||||
});
|
||||
const _data = posMasters.map((item) => ({
|
||||
id: item.id,
|
||||
|
|
@ -1369,6 +1378,9 @@ export class EmployeePositionController extends Controller {
|
|||
posMasterNo: item.posMasterNo ? item.posMasterNo : null,
|
||||
posMasterNoSuffix: item.posMasterNoSuffix ? item.posMasterNoSuffix : null,
|
||||
reason: item.reason ? item.reason : null,
|
||||
position: item.positions.map((x) => x.positionName).join("/"),
|
||||
posLevel: item.positions.map((x) => x.posLevel.posLevelName).join("/"),
|
||||
posType: item.positions.map((x) => x.posType.posTypeName).join("/"),
|
||||
}));
|
||||
return new HttpSuccess(_data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue