#208 and update migration
This commit is contained in:
parent
7d5d6bb43e
commit
13ed3450dd
3 changed files with 11 additions and 5 deletions
|
|
@ -2886,8 +2886,8 @@ export class ProfileController extends Controller {
|
|||
} else if ((posMaster?.current_holder?.posLevel?.posLevelAuthority ?? null) == "GOVERNOR") {
|
||||
return new HttpSuccess({ data: [], total: 0 });
|
||||
}
|
||||
console.log(posMaster);
|
||||
console.log(posMaster.id);
|
||||
// console.log(posMaster);
|
||||
// console.log(posMaster.id);
|
||||
let condition: any = {
|
||||
orgRootId: posMaster.orgRootId,
|
||||
id: Not(posMaster.current_holderId || ""),
|
||||
|
|
@ -2917,9 +2917,9 @@ export class ProfileController extends Controller {
|
|||
condition.isDirector = true;
|
||||
conditionNow.isDirector = true;
|
||||
}
|
||||
console.log(condition);
|
||||
console.log("------------------");
|
||||
console.log(conditionNow);
|
||||
// console.log(condition);
|
||||
// console.log("------------------");
|
||||
// console.log(conditionNow);
|
||||
if (body.isAct == true) {
|
||||
const [lists, total] = await AppDataSource.getRepository(viewDirectorActing)
|
||||
.createQueryBuilder("viewDirectorActing")
|
||||
|
|
@ -2928,6 +2928,7 @@ export class ProfileController extends Controller {
|
|||
qb.orWhere(condition).orWhere(conditionNow);
|
||||
}),
|
||||
)
|
||||
.andWhere("viewDirectorActing.isProbation = :isProbation", { isProbation: false })
|
||||
.andWhere(
|
||||
new Brackets((qb) => {
|
||||
qb.orWhere(
|
||||
|
|
@ -2992,6 +2993,7 @@ export class ProfileController extends Controller {
|
|||
qb.orWhere(condition).orWhere(conditionNow);
|
||||
}),
|
||||
)
|
||||
.andWhere("viewDirectorActing.isProbation = :isProbation", { isProbation: false })
|
||||
.andWhere(
|
||||
new Brackets((qb) => {
|
||||
qb.orWhere(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue