migrate db
This commit is contained in:
parent
7891429d77
commit
b349dd5944
6 changed files with 52 additions and 17 deletions
|
|
@ -317,6 +317,7 @@ export class CommandController extends Controller {
|
|||
command.detailBody = commandType.detailBody;
|
||||
command.detailFooter = commandType.detailFooter;
|
||||
command.isAttachment = commandType.isAttachment;
|
||||
command.isUploadAttachment = commandType.isUploadAttachment;
|
||||
command.status = "NEW";
|
||||
command.issue = commandType.name;
|
||||
command.createdUserId = request.user.sub;
|
||||
|
|
@ -358,6 +359,7 @@ export class CommandController extends Controller {
|
|||
detailFooter: command.detailFooter,
|
||||
isBangkok: command.isBangkok,
|
||||
isAttachment: command.isAttachment,
|
||||
isUploadAttachment: command.isUploadAttachment,
|
||||
commandAffectDate: command.commandAffectDate,
|
||||
commandExcecuteDate: command.commandExcecuteDate,
|
||||
commandTypeName: command.commandType?.name || null,
|
||||
|
|
@ -963,6 +965,7 @@ export class CommandController extends Controller {
|
|||
isDraft: command.isDraft,
|
||||
isSign: command.isSign,
|
||||
isAttachment: command.isAttachment,
|
||||
isUploadAttachment: command.isUploadAttachment,
|
||||
isSalary: command.commandType ? command.commandType.isSalary : null,
|
||||
};
|
||||
return new HttpSuccess(_command);
|
||||
|
|
@ -1853,6 +1856,7 @@ export class CommandController extends Controller {
|
|||
command.detailBody = commandType.detailBody;
|
||||
command.detailFooter = commandType.detailFooter;
|
||||
command.isAttachment = commandType.isAttachment;
|
||||
command.isUploadAttachment = commandType.isUploadAttachment;
|
||||
command.status = "NEW";
|
||||
command.issue = commandType.name;
|
||||
(command.commandAffectDate = requestBody.commandAffectDate
|
||||
|
|
@ -4501,6 +4505,7 @@ export class CommandController extends Controller {
|
|||
isDraft: command.isDraft,
|
||||
isSign: command.isSign,
|
||||
isAttachment: command.isAttachment,
|
||||
isUploadAttachment: command.isUploadAttachment,
|
||||
};
|
||||
return new HttpSuccess(_command);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue