diff --git a/src/main/java/com/interplug/qcast/biz/displayItem/dto/ItemDetailResponse.java b/src/main/java/com/interplug/qcast/biz/displayItem/dto/ItemDetailResponse.java index ac739919..1ec523e8 100644 --- a/src/main/java/com/interplug/qcast/biz/displayItem/dto/ItemDetailResponse.java +++ b/src/main/java/com/interplug/qcast/biz/displayItem/dto/ItemDetailResponse.java @@ -40,6 +40,9 @@ public class ItemDetailResponse { @Schema(description = "File Upload Flag") private String fileUploadFlg; + @Schema(description = "오픈가 Flag") + private String openFlg; + @Schema(description = "Sale Price") private String salePrice; diff --git a/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java b/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java index cb478559..6d83fc46 100644 --- a/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java +++ b/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java @@ -394,6 +394,7 @@ public class EstimateService { itemRequest.setSalePrice(itemResponse.getSalePrice()); itemRequest.setFileUploadFlg(itemResponse.getFileUploadFlg()); itemRequest.setPkgMaterialFlg(itemResponse.getPkgMaterialFlg()); + itemRequest.setOpenFlg(itemResponse.getOpenFlg()); itemRequest.setItemGroup(itemResponse.getItemGroup()); itemRequest.setItemCtgGr(itemResponse.getItemCtgGr()); itemRequest.setPartAdd("0"); @@ -613,6 +614,8 @@ public class EstimateService { !StringUtils.isEmpty(itemRequest.getBomAmount()) ? itemRequest.getBomAmount() : "0"); itemRequest.setPartAdd( !StringUtils.isEmpty(itemRequest.getPartAdd()) ? itemRequest.getPartAdd() : "0"); + itemRequest.setOpenFlg( + !StringUtils.isEmpty(itemRequest.getOpenFlg()) ? itemRequest.getOpenFlg() : "0"); itemRequest.setItemChangeFlg( !StringUtils.isEmpty(itemRequest.getItemChangeFlg()) ? itemRequest.getItemChangeFlg() diff --git a/src/main/java/com/interplug/qcast/biz/estimate/dto/ItemRequest.java b/src/main/java/com/interplug/qcast/biz/estimate/dto/ItemRequest.java index 960a29a7..55dd700f 100644 --- a/src/main/java/com/interplug/qcast/biz/estimate/dto/ItemRequest.java +++ b/src/main/java/com/interplug/qcast/biz/estimate/dto/ItemRequest.java @@ -65,6 +65,9 @@ public class ItemRequest { @Schema(description = "아이템 특이사항 코드") private String specialNoteCd; + @Schema(description = "아이템 오픈가 여부") + private String openFlg; + @Schema(description = "아이템 변경 여부") private String itemChangeFlg; diff --git a/src/main/java/com/interplug/qcast/biz/estimate/dto/ItemResponse.java b/src/main/java/com/interplug/qcast/biz/estimate/dto/ItemResponse.java index 05ca03b7..7244fb32 100644 --- a/src/main/java/com/interplug/qcast/biz/estimate/dto/ItemResponse.java +++ b/src/main/java/com/interplug/qcast/biz/estimate/dto/ItemResponse.java @@ -62,6 +62,9 @@ public class ItemResponse { @Schema(description = "아이템 특이사항 코드") private String specialNoteCd; + @Schema(description = "아이템 오픈가 여부") + private String openFlg; + @Schema(description = "아이템 변경 여부") private String itemChangeFlg; diff --git a/src/main/resources/mappers/displayItem/displayItemMapper.xml b/src/main/resources/mappers/displayItem/displayItemMapper.xml index 157836c3..04a777c5 100644 --- a/src/main/resources/mappers/displayItem/displayItemMapper.xml +++ b/src/main/resources/mappers/displayItem/displayItemMapper.xml @@ -98,6 +98,7 @@ , MI.FILE_UPLOAD_FLG , MI.ITEM_CTG_GR , ISNULL(MPPM.SALE_PRICE, '0') AS SALE_PRICE + , CASE WHEN MPPM.SALE_PRICE = 0 THEN '1' ELSE '0' END AS OPEN_FLG FROM M_ITEM MI LEFT OUTER JOIN M_PRICE_PATTERN_MONEY MPPM ON MPPM.PRICE_PATTERN = '510' diff --git a/src/main/resources/mappers/estimate/estimateMapper.xml b/src/main/resources/mappers/estimate/estimateMapper.xml index 9e5b8f8a..b8e1d1f3 100644 --- a/src/main/resources/mappers/estimate/estimateMapper.xml +++ b/src/main/resources/mappers/estimate/estimateMapper.xml @@ -225,6 +225,7 @@ , PE.FILE_UPLOAD_FLG , PE.PKG_MATERIAL_FLG , PE.SPECIAL_NOTE_CD + , PE.OPEN_FLG , PE.ITEM_CHANGE_FLG , I.PNOW_W , I.ITEM_GROUP @@ -254,6 +255,7 @@ , I.FILE_UPLOAD_FLG , I.ITEM_CTG_GR , ISNULL(PPM.SALE_PRICE, '0') AS SALE_PRICE + , CASE WHEN PPM.SALE_PRICE = 0 THEN '1' ELSE '0' END AS OPEN_FLG FROM M_ITEM I WITH (NOLOCK) LEFT OUTER JOIN M_PRICE_PATTERN_MONEY PPM ON PPM.PRICE_PATTERN = '510' @@ -675,6 +677,7 @@ , FILE_UPLOAD_FLG , PKG_MATERIAL_FLG + , OPEN_FLG , ITEM_CHANGE_FLG ) VALUES ( #{objectNo} @@ -703,6 +706,7 @@ , #{fileUploadFlg} , #{pkgMaterialFlg} + , #{openFlg} , #{itemChangeFlg} ) @@ -730,6 +734,7 @@ , SPECIAL_NOTE_CD , PKG_MATERIAL_FLG + , OPEN_FLG , ITEM_CHANGE_FLG , FILE_UPLOAD_FLG , PART_ADD @@ -756,6 +761,7 @@ , #{specialNoteCd} , #{pkgMaterialFlg} + , #{openFlg} , #{itemChangeFlg} , #{fileUploadFlg} , #{partAdd}