no message

This commit is contained in:
Bright 2025-02-19 16:53:43 +07:00
parent 22c9027964
commit 61ceaea799

View file

@ -1144,7 +1144,7 @@ export class WorkflowController extends Controller {
return new HttpSuccess();
}
/**
/**
* API
*
* @summary
@ -1154,12 +1154,10 @@ export class WorkflowController extends Controller {
async getProfileDirectorByProfileId(@Request() req: RequestWithUser,
@Body()
body: {
system: string;
refId: string[];
},) {
const _posMaster = await this.posMasterRepo.find({
where: {
posMasterAssigns: { assignId: body.system },
orgRevision: { orgRevisionIsDraft: false, orgRevisionIsCurrent: true },
current_holderId: In(body.refId),
},
@ -1172,12 +1170,13 @@ export class WorkflowController extends Controller {
orgChild3Id: x.orgChild3Id,
orgChild4Id: x.orgChild4Id,
director: true,
current_holder: Not(IsNull()),
}));
const posMaster = await this.posMasterRepo.find({
where: _data,
relations:["current_holder"]
});
const data = posMaster.map((x) => ({
id: x.current_holder.id,
citizenId: x.current_holder.citizenId,