เพิ่มฟิววินัย
This commit is contained in:
parent
07c310ae26
commit
c41b0f008a
4 changed files with 44 additions and 5 deletions
|
|
@ -69,6 +69,7 @@ export class OrganizationUnauthorizeController extends Controller {
|
|||
.leftJoinAndSelect("posMaster.positions", "positions")
|
||||
.leftJoinAndSelect("positions.posExecutive", "posExecutive")
|
||||
.leftJoinAndSelect("current_holder.profileSalary", "profileSalary")
|
||||
.leftJoinAndSelect("current_holder.profileDiscipline", "profileDiscipline")
|
||||
.leftJoinAndSelect("current_holder.posLevel", "posLevel")
|
||||
.leftJoinAndSelect("current_holder.posType", "posType")
|
||||
.where({
|
||||
|
|
@ -199,8 +200,8 @@ export class OrganizationUnauthorizeController extends Controller {
|
|||
child4: item.orgChild4?.orgChild4Name ? item.orgChild4.orgChild4Name : null,
|
||||
result: null,
|
||||
duration: null,
|
||||
isPunish: false,
|
||||
isSuspension: false,
|
||||
isPunish: item.current_holder.profileDiscipline.length > 0 ? true : false,
|
||||
isSuspension: item.current_holder == null ? false : true,
|
||||
isAbsent: false,
|
||||
isLeave: false,
|
||||
isRetired: false,
|
||||
|
|
|
|||
|
|
@ -930,6 +930,7 @@ export class ProfileController extends Controller {
|
|||
.leftJoinAndSelect("posMaster.positions", "positions")
|
||||
.leftJoinAndSelect("positions.posExecutive", "posExecutive")
|
||||
.leftJoinAndSelect("current_holder.profileSalary", "profileSalary")
|
||||
.leftJoinAndSelect("current_holder.profileDiscipline", "profileDiscipline")
|
||||
.leftJoinAndSelect("current_holder.posLevel", "posLevel")
|
||||
.leftJoinAndSelect("current_holder.posType", "posType")
|
||||
.where((qb) => {
|
||||
|
|
@ -1066,8 +1067,8 @@ export class ProfileController extends Controller {
|
|||
child4: item.orgChild4?.orgChild4Name ? item.orgChild4.orgChild4Name : null,
|
||||
result: null,
|
||||
duration: null,
|
||||
isPunish: false,
|
||||
isSuspension: false,
|
||||
isPunish: item.current_holder.profileDiscipline.length > 0 ? true : false,
|
||||
isSuspension: item.current_holder.dateRetire == null ? false : true,
|
||||
isAbsent: false,
|
||||
isLeave: false,
|
||||
isRetired: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue