no message

This commit is contained in:
kittapath 2025-03-06 00:39:50 +07:00
parent 596083b8ee
commit abe581f0e5

View file

@ -237,26 +237,28 @@ export class ProfileSalaryController extends Controller {
throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว");
}
const record = await this.salaryRepo.find({
where: {
profileId: profile.id,
commandCode: In([
"0",
"9",
"1",
"2",
"3",
"4",
"8",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
IsNull(),
]),
},
where: [
{
profileId: profile.id,
commandCode: In([
"0",
"9",
"1",
"2",
"3",
"4",
"8",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
]),
},
{ profileId: profile.id, commandCode: IsNull() },
],
// order: { order: "ASC" },
order: { commandDateAffect: "ASC" },
});
@ -281,26 +283,28 @@ export class ProfileSalaryController extends Controller {
if (_workflow == false)
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", profileId);
const record = await this.salaryRepo.find({
where: {
profileId: profileId,
commandCode: In([
"0",
"9",
"1",
"2",
"3",
"4",
"8",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
IsNull(),
]),
},
where: [
{
profileId: profileId,
commandCode: In([
"0",
"9",
"1",
"2",
"3",
"4",
"8",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
]),
},
{ profileId: profileId, commandCode: IsNull() },
],
// order: { order: "ASC" },
order: { commandDateAffect: "ASC" },
});