diff --git a/src/main/java/com/interplug/qcast/biz/master/dto/pcs/ApiPcsRoofSurfaceRequest.java b/src/main/java/com/interplug/qcast/biz/master/dto/pcs/ApiPcsRoofSurfaceRequest.java index 6a0fd7b0..cd11703c 100644 --- a/src/main/java/com/interplug/qcast/biz/master/dto/pcs/ApiPcsRoofSurfaceRequest.java +++ b/src/main/java/com/interplug/qcast/biz/master/dto/pcs/ApiPcsRoofSurfaceRequest.java @@ -26,6 +26,10 @@ public class ApiPcsRoofSurfaceRequest { @NotNull private String roofSurfaceNorthYn; + @Schema(description = "북면모듈 설치여부") + @NotNull + private String roofSurfaceNorthModuleYn; + @Schema(description = "모듈아이템 List(도면에 설치된 모듈)") @NotNull private List moduleList; diff --git a/src/main/java/com/interplug/qcast/biz/master/dto/pcs/ApiPcsSerQtyRoofSurfaceDto.java b/src/main/java/com/interplug/qcast/biz/master/dto/pcs/ApiPcsSerQtyRoofSurfaceDto.java index 7aceec60..8d83f3b3 100644 --- a/src/main/java/com/interplug/qcast/biz/master/dto/pcs/ApiPcsSerQtyRoofSurfaceDto.java +++ b/src/main/java/com/interplug/qcast/biz/master/dto/pcs/ApiPcsSerQtyRoofSurfaceDto.java @@ -22,6 +22,9 @@ public class ApiPcsSerQtyRoofSurfaceDto { @Schema(description = "북면 여부") private String roofSurfaceNorthYn; + @Schema(description = "북면모듈 설치여부") + private String roofSurfaceNorthModuleYn; + @Schema(description = "모듈아이템 List(도면에 설치된 모듈)") private List moduleList; } diff --git a/src/main/resources/mappers/estimate/estimateMapper.xml b/src/main/resources/mappers/estimate/estimateMapper.xml index 0899fd55..ad352846 100644 --- a/src/main/resources/mappers/estimate/estimateMapper.xml +++ b/src/main/resources/mappers/estimate/estimateMapper.xml @@ -404,7 +404,14 @@ ON PE.ITEM_ID = I.ITEM_ID WHERE P.OBJECT_NO = #{objectNo} AND P.PLAN_NO = #{planNo} - AND I.POWER_COM_FLG = '1' /* PCS 아이템만 */ +-- AND I.POWER_COM_FLG = '1' /* PCS 아이템만 */ + AND ( + CASE + WHEN I.POWER_COM_FLG = '1' THEN 1 + WHEN I.POWER_COM_FLG != '1' AND I.ITEM_GROUP = 'STORAGE_BATTERY' AND ISNULL(I.PNOW_W, 0) > 0 THEN 1 + ELSE 0 + END + ) = 1 ) T