diff options
| author | joonhoekim <26rote@gmail.com> | 2025-07-02 04:46:24 +0000 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-07-02 04:46:24 +0000 |
| commit | a42873419d14652d3639d2ae02d2ea54653b4749 (patch) | |
| tree | 3823f94d9c919f88f05fdfa5f262ea093447e24a /app/api | |
| parent | 2acf5f8966a40c1c9a97680c8dc263ee3f1ad3d1 (diff) | |
(김준회) 견적프로젝트 해양 TOP - nonsap(견적물량관리시스템) 데이터 가져오기 추가
Diffstat (limited to 'app/api')
| -rw-r--r-- | app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_BIDDING_PROJECT/route.ts | 11 |
1 files changed, 10 insertions, 1 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 a63fff40..0c36974f 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 @@ -279,6 +279,14 @@ async function saveToDatabase(data: RequestData) { where: eq(biddingProjects.pspid, project.pspid) }); + // sector 값에 따라 pjtType 결정 + let pjtType: 'SHIP' | 'HULL' | null = null; + if (project.sector === 'S') { + pjtType = 'SHIP'; + } else if (project.sector === 'M') { + pjtType = 'HULL'; + } + const projectValues: NewBiddingProject = { pspid: project.pspid, projNm: project.projNm, @@ -296,7 +304,8 @@ async function saveToDatabase(data: RequestData) { pmodelUom: project.pmodelUom, txt04: project.txt04, txt30: project.txt30, - estmPm: project.estmPm + estmPm: project.estmPm, + pjtType: pjtType }; if (existingProject) { |
