Merge branch 'develop' into feat/org-move-draf-current
* develop: add fields
This commit is contained in:
commit
1cab2b3afc
1 changed files with 23 additions and 0 deletions
|
|
@ -519,6 +519,7 @@ export class CommandController extends Controller {
|
||||||
commandTypeName: command.commandType?.name || null,
|
commandTypeName: command.commandType?.name || null,
|
||||||
commandCode: command.commandType?.code || null,
|
commandCode: command.commandType?.code || null,
|
||||||
commandSysId: command.commandType?.commandSysId || null,
|
commandSysId: command.commandType?.commandSysId || null,
|
||||||
|
createdUserId: command.createdUserId
|
||||||
};
|
};
|
||||||
return new HttpSuccess(_command);
|
return new HttpSuccess(_command);
|
||||||
}
|
}
|
||||||
|
|
@ -2310,6 +2311,19 @@ export class CommandController extends Controller {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (issue == null) issue = "...................................";
|
if (issue == null) issue = "...................................";
|
||||||
|
|
||||||
|
const operators = await this.commandOperatorRepository.find({
|
||||||
|
select: {
|
||||||
|
prefix: true,
|
||||||
|
firstName: true,
|
||||||
|
lastName: true,
|
||||||
|
roleName: true,
|
||||||
|
orderNo: true
|
||||||
|
},
|
||||||
|
where: { commandId: command.id },
|
||||||
|
order: { orderNo: "ASC" },
|
||||||
|
});
|
||||||
|
|
||||||
return new HttpSuccess({
|
return new HttpSuccess({
|
||||||
template: command.commandType.fileAttachment,
|
template: command.commandType.fileAttachment,
|
||||||
reportName: "xlsx-report",
|
reportName: "xlsx-report",
|
||||||
|
|
@ -2325,6 +2339,15 @@ export class CommandController extends Controller {
|
||||||
command.commandExcecuteDate == null
|
command.commandExcecuteDate == null
|
||||||
? ""
|
? ""
|
||||||
: Extension.ToThaiNumber(Extension.ToThaiFullDate2(command.commandExcecuteDate)),
|
: Extension.ToThaiNumber(Extension.ToThaiFullDate2(command.commandExcecuteDate)),
|
||||||
|
operators: operators.length > 0
|
||||||
|
? operators.map(x => ({
|
||||||
|
fullName: `${x.prefix ?? ""}${x.firstName ?? ""} ${x.lastName ?? ""}`,
|
||||||
|
roleName: x.roleName
|
||||||
|
}))
|
||||||
|
: [{
|
||||||
|
fullName: "",
|
||||||
|
roleName: "เจ้าหน้าที่ดำเนินการ"
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue