fixed remove PostRetireToExprofile ย้ายไปรันใน cronjob ที่เดียว
This commit is contained in:
parent
09fd606b86
commit
0e8808e371
5 changed files with 178 additions and 254 deletions
|
|
@ -91,7 +91,7 @@ import { CommandCode } from "../entities/CommandCode";
|
|||
import { EmployeePosMaster } from "../entities/EmployeePosMaster";
|
||||
import { CreatePosMasterHistoryOfficer, getTopDegrees } from "../services/PositionService";
|
||||
import { ProfileLeaveService } from "../services/ProfileLeaveService";
|
||||
import { PostRetireToExprofile } from "./ExRetirementController";
|
||||
// import { PostRetireToExprofile } from "./ExRetirementController";
|
||||
import { getPosNumCodeSit } from "../services/CommandService";
|
||||
@Route("api/v1/org/profile")
|
||||
@Tags("Profile")
|
||||
|
|
@ -11380,20 +11380,6 @@ export class ProfileController extends Controller {
|
|||
].filter(Boolean);
|
||||
organizeName = names.join(" ");
|
||||
}
|
||||
PostRetireToExprofile(
|
||||
request,
|
||||
profile.citizenId ?? "",
|
||||
profile.prefix ?? "",
|
||||
profile.firstName ?? "",
|
||||
profile.lastName ?? "",
|
||||
requestBody.dateLeave?.getFullYear().toString() ?? "",
|
||||
profile.position,
|
||||
profile.posType?.posTypeName ?? "",
|
||||
profile.posLevel?.posLevelName ?? "",
|
||||
requestBody.dateLeave ?? new Date(),
|
||||
organizeName,
|
||||
"ถึงแก่กรรม",
|
||||
);
|
||||
return new HttpSuccess();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue