no message

This commit is contained in:
kittapath 2024-09-25 21:05:16 +07:00
parent 7697d6d46a
commit c0b920819d
6 changed files with 56 additions and 6 deletions

View file

@ -110,6 +110,7 @@ export class CommandController extends Controller {
: `${commandTypeId}`,
},
)
.orderBy("commandSalary.createdAt", "ASC")
.skip((page - 1) * pageSize)
.take(pageSize)
.getManyAndCount();
@ -196,6 +197,8 @@ export class CommandController extends Controller {
detailHeader: command.detailHeader,
detailBody: command.detailBody,
detailFooter: command.detailFooter,
isBangkok: command.isBangkok,
isAttachment: command.isAttachment,
commandAffectDate: command.commandAffectDate,
commandExcecuteDate: command.commandExcecuteDate,
commandTypeName: command.commandType?.name || null,
@ -224,6 +227,7 @@ export class CommandController extends Controller {
detailFooter: string | null;
commandAffectDate: Date | null;
commandExcecuteDate: Date | null;
isBangkok: boolean | null;
},
@Request() request: RequestWithUser,
) {
@ -268,7 +272,7 @@ export class CommandController extends Controller {
id: x.id,
citizenId: x.citizenId,
prefix: x.prefix,
fristName: x.fristName,
firstName: x.firstName,
lastName: x.lastName,
profileId: x.profileId,
order: x.order,
@ -320,7 +324,7 @@ export class CommandController extends Controller {
return new HttpSuccess();
}
@Get("tap2/swap/{direction}/{commandReciveId}")
@Get("tab2/swap/{direction}/{commandReciveId}")
public async swapSalary(
@Path() direction: string,
commandReciveId: string,
@ -448,7 +452,7 @@ export class CommandController extends Controller {
id: item.id,
citizenId: item.citizenId,
prefix: item.prefix,
fristName: item.fristName,
firstName: item.firstName,
lastName: item.lastName,
position: item.position,
org: item.org,
@ -501,7 +505,7 @@ export class CommandController extends Controller {
commandSend.citizenId = profile.citizenId;
commandSend.prefix =
profile.rank != null && profile.rank != "" ? profile.rank : profile.prefix;
commandSend.fristName = profile.firstName;
commandSend.firstName = profile.firstName;
commandSend.lastName = profile.lastName;
commandSend.position = profile.position;
commandSend.org =