summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-07-29 09:48:20 +0000
committerjoonhoekim <26rote@gmail.com>2025-07-29 09:48:20 +0000
commit8ff20b58f595cc15319387b9641340fd3e8725d1 (patch)
treef29d3f78221e5e82a905f9d095be8a6ee9b607ac /app
parent8d92c88ab341156d82156bae49c62a8101280e75 (diff)
(김준회) 기술영업 견적프로젝트 수신, 프로젝트 타입구분 목적의 인터페이스 정의서 변경 대응
Diffstat (limited to 'app')
-rw-r--r--app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_BIDDING_PROJECT/route.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_BIDDING_PROJECT/route.ts b/app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_BIDDING_PROJECT/route.ts
index 0c36974f..ba2849a3 100644
--- a/app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_BIDDING_PROJECT/route.ts
+++ b/app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_BIDDING_PROJECT/route.ts
@@ -30,6 +30,7 @@ interface BiddingProject {
txt04?: string;
txt30?: string;
estmPm?: string;
+ shipMHull?: string; // SHIP(조선), HULL(해양) 구분으로, 조선일 경우 NULL, 해양일 경우 'X'
}
interface ProjectSeries {
@@ -279,12 +280,14 @@ async function saveToDatabase(data: RequestData) {
where: eq(biddingProjects.pspid, project.pspid)
});
- // sector 값에 따라 pjtType 결정
+ // shipMHull 값을 기준으로 pjtType 결정
let pjtType: 'SHIP' | 'HULL' | null = null;
- if (project.sector === 'S') {
- pjtType = 'SHIP';
- } else if (project.sector === 'M') {
+ if (project.shipMHull) {
+ // shipMHull 값이 존재하면 해양(HULL)
pjtType = 'HULL';
+ } else {
+ // shipMHull 값이 없으면 조선(SHIP)
+ pjtType = 'SHIP';
}
const projectValues: NewBiddingProject = {