no message
This commit is contained in:
parent
08ca03f733
commit
77d68e7096
1 changed files with 7 additions and 2 deletions
|
|
@ -756,7 +756,12 @@ export class WorkflowController extends Controller {
|
|||
actFullName: null,
|
||||
}));
|
||||
const posMasterActs = await this.posMasterActRepo.find({
|
||||
where: { posMasterId: In(posMasters.map((x) => x.id)) },
|
||||
where: {
|
||||
posMasterId: In(posMasters.map((x) => x.id)),
|
||||
posMasterChild: {
|
||||
current_holderId: Not(In(posMasters.map((x) => x.current_holderId))),
|
||||
},
|
||||
},
|
||||
relations: [
|
||||
"posMaster",
|
||||
"posMaster.current_holder",
|
||||
|
|
@ -770,7 +775,7 @@ export class WorkflowController extends Controller {
|
|||
});
|
||||
posMasterActs.map((x) => {
|
||||
let item: any = {
|
||||
id: x.posMaster?.current_holderId || null,
|
||||
id: x.posMasterChild?.current_holderId || null,
|
||||
prefix: x.posMasterChild?.current_holder?.prefix || "",
|
||||
firstName: x.posMasterChild?.current_holder?.firstName || "",
|
||||
lastName: x.posMasterChild?.current_holder?.lastName || "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue