no message
This commit is contained in:
parent
22c9027964
commit
61ceaea799
1 changed files with 3 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue