no message
This commit is contained in:
parent
000bc2aad9
commit
1bccf8f87d
1 changed files with 7 additions and 1 deletions
|
|
@ -877,6 +877,9 @@ export class CommandController extends Controller {
|
||||||
commandNo: command.commandNo,
|
commandNo: command.commandNo,
|
||||||
commandYear: command.commandYear,
|
commandYear: command.commandYear,
|
||||||
templateDoc: command.positionDetail,
|
templateDoc: command.positionDetail,
|
||||||
|
amount: x.amount,
|
||||||
|
positionSalaryAmount: x.positionSalaryAmount,
|
||||||
|
mouthSalaryAmount: x.mouthSalaryAmount,
|
||||||
})),
|
})),
|
||||||
})
|
})
|
||||||
.then(async (res) => {})
|
.then(async (res) => {})
|
||||||
|
|
@ -982,7 +985,7 @@ export class CommandController extends Controller {
|
||||||
async PostPerson(
|
async PostPerson(
|
||||||
@Body()
|
@Body()
|
||||||
requestBody: {
|
requestBody: {
|
||||||
commandTypeId?: string;
|
commandTypeId?: string | null;
|
||||||
commandNo?: string | null;
|
commandNo?: string | null;
|
||||||
commandYear?: number | null;
|
commandYear?: number | null;
|
||||||
commandId?: string | null;
|
commandId?: string | null;
|
||||||
|
|
@ -1019,6 +1022,9 @@ export class CommandController extends Controller {
|
||||||
command = _command;
|
command = _command;
|
||||||
} else {
|
} else {
|
||||||
command = Object.assign(new Command(), requestBody);
|
command = Object.assign(new Command(), requestBody);
|
||||||
|
if (!requestBody.commandTypeId) {
|
||||||
|
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบประเภทคำสั่ง");
|
||||||
|
}
|
||||||
const commandType = await this.commandTypeRepository.findOne({
|
const commandType = await this.commandTypeRepository.findOne({
|
||||||
where: { id: requestBody.commandTypeId },
|
where: { id: requestBody.commandTypeId },
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue