no message
This commit is contained in:
parent
b797d3cceb
commit
22ae951626
1 changed files with 6 additions and 3 deletions
|
|
@ -74,13 +74,16 @@ export class CommandController extends Controller {
|
||||||
)
|
)
|
||||||
.andWhere(
|
.andWhere(
|
||||||
status != null && status != undefined && status != ""
|
status != null && status != undefined && status != ""
|
||||||
? "command.status LIKE :status"
|
? "command.status IN (:...node)"
|
||||||
: "1=1",
|
: "1=1",
|
||||||
{
|
{
|
||||||
status:
|
status:
|
||||||
status == null || status == undefined || status == ""
|
status == null || status == undefined || status == ""
|
||||||
? null
|
? null
|
||||||
: `${status.trim().toLocaleUpperCase()}`,
|
: status.trim().toLocaleUpperCase() == "NEW" ||
|
||||||
|
status.trim().toLocaleUpperCase() == "DRAFT"
|
||||||
|
? ["NEW", "DRAFT"]
|
||||||
|
: [status.trim().toLocaleUpperCase()],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.andWhere(
|
.andWhere(
|
||||||
|
|
@ -149,7 +152,7 @@ export class CommandController extends Controller {
|
||||||
command.detailBody = commandType.detailBody;
|
command.detailBody = commandType.detailBody;
|
||||||
command.detailFooter = commandType.detailFooter;
|
command.detailFooter = commandType.detailFooter;
|
||||||
command.isAttachment = commandType.isAttachment;
|
command.isAttachment = commandType.isAttachment;
|
||||||
command.status = "DRAFT";
|
command.status = "NEW";
|
||||||
command.issue = commandType.name;
|
command.issue = commandType.name;
|
||||||
command.createdUserId = request.user.sub;
|
command.createdUserId = request.user.sub;
|
||||||
command.createdFullName = request.user.name;
|
command.createdFullName = request.user.name;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue