no message
This commit is contained in:
parent
428ed28b64
commit
7b83f91d73
7 changed files with 185 additions and 36 deletions
|
|
@ -4828,6 +4828,7 @@ export class ProfileController extends Controller {
|
|||
const isProbation: boolean = true;
|
||||
const [findProfile, total] = await AppDataSource.getRepository(Profile)
|
||||
.createQueryBuilder("profile")
|
||||
.leftJoinAndSelect("profile.profileSalary", "profileSalary")
|
||||
.leftJoinAndSelect("profile.posLevel", "posLevel")
|
||||
.leftJoinAndSelect("profile.posType", "posType")
|
||||
.leftJoinAndSelect("profile.current_holders", "current_holders")
|
||||
|
|
@ -4942,6 +4943,10 @@ export class ProfileController extends Controller {
|
|||
lastName: item.lastName,
|
||||
position: item.position,
|
||||
idcard: item.citizenId,
|
||||
refCommandNo:
|
||||
item.profileSalary.sort((a, b) => b.order - a.order).length == 0
|
||||
? null
|
||||
: item.profileSalary.sort((a, b) => b.order - a.order)[0].refCommandNo,
|
||||
posLevelName: item.posLevel == null ? null : item.posLevel.posLevelName,
|
||||
posTypeName: item.posType == null ? null : item.posType.posTypeName,
|
||||
posNo: posMaster == null ? null : `${posMaster.posMasterNo}${shortName}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue