From f4607d07e50226a269bcf2020803c59bf3030f05 Mon Sep 17 00:00:00 2001 From: ysCha Date: Thu, 8 Jan 2026 16:58:53 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B8=EC=A6=9D=EC=9A=A9=EB=9F=89=20STORAGE?= =?UTF-8?q?=5FBATTERY?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mappers/estimate/estimateMapper.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/resources/mappers/estimate/estimateMapper.xml b/src/main/resources/mappers/estimate/estimateMapper.xml index 2a26647a..ad352846 100644 --- a/src/main/resources/mappers/estimate/estimateMapper.xml +++ b/src/main/resources/mappers/estimate/estimateMapper.xml @@ -405,6 +405,13 @@ WHERE P.OBJECT_NO = #{objectNo} AND P.PLAN_NO = #{planNo} -- 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