Browse Source

리스크점검사유등록 쿼리 수정

SBK 1 year ago
parent
commit
581290a65f

+ 3 - 2
src/main/resources/sqlmap/mappers/co/co0102/CO01020001UMapper.xml

@@ -136,14 +136,15 @@
 						</if>
 						</if>
 					</if>
 					</if>
 				)
 				)
-		 WHERE
+		<where>
 		<if test="gubun == 'all'">										
 		<if test="gubun == 'all'">										
 		   AND (NON_CTMN <![CDATA[>=]]> #{unit}
 		   AND (NON_CTMN <![CDATA[>=]]> #{unit}
 		      OR NON_PYRQ <![CDATA[>=]]> #{unit} ) 
 		      OR NON_PYRQ <![CDATA[>=]]> #{unit} ) 
 		</if>		 
 		</if>		 
 		<if test="resnYn != '' and resnYn != null">
 		<if test="resnYn != '' and resnYn != null">
 		   AND (NVL(NPYRQ_RSN,'Y') = (CASE WHEN NON_PYRQ != 0 THEN 'Y' ELSE 'N' END) OR NVL(RCAMT_RSN,'Y') = (CASE WHEN NON_CTMN != 0 THEN 'Y' ELSE 'N' END))
 		   AND (NVL(NPYRQ_RSN,'Y') = (CASE WHEN NON_PYRQ != 0 THEN 'Y' ELSE 'N' END) OR NVL(RCAMT_RSN,'Y') = (CASE WHEN NON_CTMN != 0 THEN 'Y' ELSE 'N' END))
-		</if>		
+		</if>
+		</where>	
 		 ORDER BY CCGRP_CD, CC_CD
 		 ORDER BY CCGRP_CD, CC_CD
 	</select>
 	</select>