diff options
| -rw-r--r-- | app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_BIDDING_PROJECT/route.ts | 11 | ||||
| -rwxr-xr-x | public/wsdl/IF_ECC_EVCP_BIDDING_PROJECT.wsdl | 2 |
2 files changed, 9 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 = { diff --git a/public/wsdl/IF_ECC_EVCP_BIDDING_PROJECT.wsdl b/public/wsdl/IF_ECC_EVCP_BIDDING_PROJECT.wsdl index e74f6c8f..1edee7ed 100755 --- a/public/wsdl/IF_ECC_EVCP_BIDDING_PROJECT.wsdl +++ b/public/wsdl/IF_ECC_EVCP_BIDDING_PROJECT.wsdl @@ -69,6 +69,8 @@ <xs:element minOccurs="0" name="txt30" type="xs:string"/> <!-- 견적대표PM 성명 --> <xs:element minOccurs="0" name="estmPm" type="xs:string"/> + <!-- 조선/해양 구분. 조선일 경우 NULL, 해양일 경우 'X' --> + <xs:element minOccurs="0" name="shipMHull" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:complexType name="projectSeries"> |
