From 786e8b6a8beec8083ec84fd014af2f8281ec834d Mon Sep 17 00:00:00 2001 From: cha Date: Fri, 4 Apr 2025 16:26:15 +0900 Subject: [PATCH] =?UTF-8?q?952-2=EC=B0=A8=20SAP=20=ED=8C=90=EB=A7=A4?= =?UTF-8?q?=EC=A0=90=EC=BD=94=EB=93=9C=20=EC=A0=80=EC=9E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../interplug/qcast/biz/estimate/dto/EstimateRequest.java | 4 ++++ .../interplug/qcast/biz/estimate/dto/EstimateResponse.java | 3 +++ src/main/resources/mappers/estimate/estimateMapper.xml | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/src/main/java/com/interplug/qcast/biz/estimate/dto/EstimateRequest.java b/src/main/java/com/interplug/qcast/biz/estimate/dto/EstimateRequest.java index 6f7e2a59..01fde921 100644 --- a/src/main/java/com/interplug/qcast/biz/estimate/dto/EstimateRequest.java +++ b/src/main/java/com/interplug/qcast/biz/estimate/dto/EstimateRequest.java @@ -212,4 +212,8 @@ public class EstimateRequest { @Schema(description = "발전시뮬레이션 타입") private String pwrGnrSimType; + + @Schema(description = "2차 SAP 판매점코드") + private String secSapSalesStoreCd; + } diff --git a/src/main/java/com/interplug/qcast/biz/estimate/dto/EstimateResponse.java b/src/main/java/com/interplug/qcast/biz/estimate/dto/EstimateResponse.java index e3b2bfea..9810d227 100644 --- a/src/main/java/com/interplug/qcast/biz/estimate/dto/EstimateResponse.java +++ b/src/main/java/com/interplug/qcast/biz/estimate/dto/EstimateResponse.java @@ -279,4 +279,7 @@ public class EstimateResponse { @Schema(description = "SAP STORE CD") private String sapSalesStoreCd; + + @Schema(description = "2차 SAP 판매점코드") + private String secSapSalesStoreCd; } diff --git a/src/main/resources/mappers/estimate/estimateMapper.xml b/src/main/resources/mappers/estimate/estimateMapper.xml index d912f1fa..c265fccc 100644 --- a/src/main/resources/mappers/estimate/estimateMapper.xml +++ b/src/main/resources/mappers/estimate/estimateMapper.xml @@ -56,6 +56,7 @@ , PI.SYNC_FLG , PI.CREATE_DATETIME , PI.CREATE_USER + , PI.SEC_SAP_SALES_STORE_CD , O.OBJECT_NAME , O.OBJECT_NAME_OMIT , O.REMARKS AS OBJECT_REMARKS @@ -679,6 +680,7 @@ UPDATE T_PLAN_INFO SET ESTIMATE_TYPE = #{estimateType} + , SEC_SAP_SALES_STORE_CD = #{secSapSalesStoreCd} , CONSTRUCT_SPECIFICATION_MULTI = #{constructSpecificationMulti} @@ -731,6 +733,7 @@ , PKG_ASP = NULL , PRICE_CD = #{priceCd} , TEMP_FLG = CASE WHEN TEMP_FLG = '0' THEN '0' ELSE #{tempFlg} END + , SEC_SAP_SALES_STORE_CD = #{secSapSalesStoreCd} WHERE OBJECT_NO = #{objectNo} AND PLAN_NO = #{planNo} @@ -1167,6 +1170,7 @@ , SYNC_FLG , CREATE_DATETIME , CREATE_USER + , SEC_SAP_SALES_STORE_CD ) SELECT #{copyObjectNo} AS OBJECT_NO @@ -1187,6 +1191,7 @@ , '0' AS SYNC_FLG , GETDATE() AS CREATE_DATETIME , #{userId} AS CREATE_USER + , PI.SEC_SAP_SALES_STORE_CD FROM T_PLAN_INFO PI WITH (NOLOCK) WHERE PI.OBJECT_NO = #{objectNo} AND PI.PLAN_NO = #{planNo}