summaryrefslogtreecommitdiff
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
parent8d92c88ab341156d82156bae49c62a8101280e75 (diff)
(김준회) 기술영업 견적프로젝트 수신, 프로젝트 타입구분 목적의 인터페이스 정의서 변경 대응
-rw-r--r--app/api/(S-ERP)/(ECC)/IF_ECC_EVCP_BIDDING_PROJECT/route.ts11
-rwxr-xr-xpublic/wsdl/IF_ECC_EVCP_BIDDING_PROJECT.wsdl2
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">