เพิ่มฟิลด์ วันที่ลงนาม, วันที่คำสั่งมีผล
This commit is contained in:
parent
497decefe4
commit
c43eeb9066
1 changed files with 9 additions and 0 deletions
|
|
@ -1021,6 +1021,8 @@ export class CommandController extends Controller {
|
||||||
commandNo?: string | null;
|
commandNo?: string | null;
|
||||||
commandYear?: number | null;
|
commandYear?: number | null;
|
||||||
commandId?: string | null;
|
commandId?: string | null;
|
||||||
|
commandAffectDate?: Date | null;
|
||||||
|
commandExcecuteDate?: Date | null;
|
||||||
persons: {
|
persons: {
|
||||||
refId: string;
|
refId: string;
|
||||||
citizenId: string;
|
citizenId: string;
|
||||||
|
|
@ -1033,6 +1035,7 @@ export class CommandController extends Controller {
|
||||||
) {
|
) {
|
||||||
let command = new Command();
|
let command = new Command();
|
||||||
let commandCode = null;
|
let commandCode = null;
|
||||||
|
let null_:any = null
|
||||||
if (
|
if (
|
||||||
requestBody.commandId != undefined &&
|
requestBody.commandId != undefined &&
|
||||||
requestBody.commandId != null &&
|
requestBody.commandId != null &&
|
||||||
|
|
@ -1071,6 +1074,12 @@ export class CommandController extends Controller {
|
||||||
command.isAttachment = commandType.isAttachment;
|
command.isAttachment = commandType.isAttachment;
|
||||||
command.status = "NEW";
|
command.status = "NEW";
|
||||||
command.issue = commandType.name;
|
command.issue = commandType.name;
|
||||||
|
command.commandAffectDate = requestBody.commandAffectDate
|
||||||
|
? new Date(requestBody.commandAffectDate)
|
||||||
|
: null_,
|
||||||
|
command.commandExcecuteDate = requestBody.commandExcecuteDate
|
||||||
|
? new Date(requestBody.commandExcecuteDate)
|
||||||
|
: null_,
|
||||||
command.createdUserId = request.user.sub;
|
command.createdUserId = request.user.sub;
|
||||||
command.createdFullName = request.user.name;
|
command.createdFullName = request.user.name;
|
||||||
command.createdAt = new Date();
|
command.createdAt = new Date();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue