add isprobation
This commit is contained in:
parent
3421267ed1
commit
e2a7334c5b
1 changed files with 7 additions and 4 deletions
|
|
@ -486,7 +486,7 @@ export class ProfileController extends Controller {
|
|||
? `${Extension.ToThaiNumber(Extension.ToThaiFullDate2(item.startDate))} - ${Extension.ToThaiNumber(Extension.ToThaiFullDate2(item.endDate))}`
|
||||
: "",
|
||||
Level: item.educationLevel ?? "",
|
||||
Degree: item.degree ? `${item.degree} ${item.field ? item.field : "" }`: "",
|
||||
Degree: item.degree ? `${item.degree} ${item.field ? item.field : ""}` : "",
|
||||
Field: item.field ?? "-",
|
||||
}));
|
||||
const salarys = await this.salaryRepository.find({
|
||||
|
|
@ -4199,10 +4199,12 @@ export class ProfileController extends Controller {
|
|||
.orWhere(
|
||||
new Brackets((qb) => {
|
||||
if (body.keyword) {
|
||||
qb.where(`profile.firstName LIKE :firstName`, { firstName: `%${firstName}%` })
|
||||
.orWhere(`profile.lastName LIKE :lastName`, { lastName: `%${lastName}%` });
|
||||
qb.where(`profile.firstName LIKE :firstName`, { firstName: `%${firstName}%` }).orWhere(
|
||||
`profile.lastName LIKE :lastName`,
|
||||
{ lastName: `%${lastName}%` },
|
||||
);
|
||||
}
|
||||
})
|
||||
}),
|
||||
)
|
||||
.orderBy("profile.citizenId", "ASC")
|
||||
.skip((body.page - 1) * body.pageSize)
|
||||
|
|
@ -4622,6 +4624,7 @@ export class ProfileController extends Controller {
|
|||
lastName: profile.lastName,
|
||||
citizenId: profile.citizenId,
|
||||
position: profile.position,
|
||||
isProbation: profile.isProbation,
|
||||
posLevelName: profile.posLevel == null ? null : profile.posLevel.posLevelName,
|
||||
posLevelRank: profile.posLevel == null ? null : profile.posLevel.posLevelRank,
|
||||
posLevelId: profile.posLevel == null ? null : profile.posLevel.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue