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 a3441243..e3b2bfea 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 @@ -1,9 +1,9 @@ package com.interplug.qcast.biz.estimate.dto; +import java.util.List; import com.interplug.qcast.biz.file.dto.FileResponse; import com.interplug.qcast.biz.pwrGnrSimulation.dto.PwrGnrSimResponse; import io.swagger.v3.oas.annotations.media.Schema; -import java.util.List; import lombok.Data; @Data @@ -273,4 +273,10 @@ public class EstimateResponse { @Schema(description = "발전시뮬레이션 정보") PwrGnrSimResponse pwrGnrSim; + + @Schema(description = "SAP STORE ID") + private String sapSaleStoreId; + + @Schema(description = "SAP STORE CD") + private String sapSalesStoreCd; } diff --git a/src/main/resources/mappers/estimate/estimateMapper.xml b/src/main/resources/mappers/estimate/estimateMapper.xml index ca6a40d0..40b2c485 100644 --- a/src/main/resources/mappers/estimate/estimateMapper.xml +++ b/src/main/resources/mappers/estimate/estimateMapper.xml @@ -60,6 +60,8 @@ , O.OBJECT_NAME_OMIT , O.REMARKS AS OBJECT_REMARKS , O.SALE_STORE_ID + , B.SALE_STORE_ID AS SAP_SALE_STORE_ID + , B.SAP_SALES_STORE_CD , ISNULL(OI.COLD_REGION_FLG, '0') AS COLD_REGION_FLG , ISNULL(OI.SALT_AREA_FLG, '0') AS SALT_AREA_FLG , SS.FIRST_AGENT_ID @@ -74,6 +76,8 @@ ON P.OBJECT_NO = O.OBJECT_NO INNER JOIN T_OBJECT_INFO OI WITH (NOLOCK) ON O.OBJECT_NO = OI.OBJECT_NO + LEFT OUTER JOIN M_SALES_STORE_ID_FOR_SAP B + ON O.SALE_STORE_ID = B.SALE_STORE_ID INNER JOIN M_SALES_STORE SS WITH(NOLOCK) ON O.SALE_STORE_ID = SS.SALE_STORE_ID WHERE P.OBJECT_NO = #{objectNo}