ปรับออกคำสั่งลงตำแหน่ง

This commit is contained in:
kittapath 2025-02-21 19:10:27 +07:00
parent c5e0fcc4f7
commit e305ea7a88
20 changed files with 1317 additions and 1183 deletions

View file

@ -34,7 +34,6 @@ class FunctionMain {
createdFullName: req.user.name,
lastUpdateUserId: req.user.sub,
lastUpdateFullName: req.user.name,
refCommandDate: new Date(),
createdAt: new Date(),
lastUpdatedAt: new Date(),
};

View file

@ -51,7 +51,7 @@ export async function calculateGovAge(profileId: string, type: string) {
where: {
[isEmployee ? "profileEmployeeId" : "profileId"]: profileId,
},
select: ["date", "dateGovernment", "isGovernment"],
select: ["commandDateAffect", "dateGovernment", "isGovernment"],
order: { order: "ASC" },
});