Browse Source

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

SBK 1 year ago
parent
commit
581290a65f
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/main/resources/sqlmap/mappers/co/co0102/CO01020001UMapper.xml

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

@@ -136,14 +136,15 @@
 						</if>
 					</if>
 				)
-		 WHERE
+		<where>
 		<if test="gubun == 'all'">										
 		   AND (NON_CTMN <![CDATA[>=]]> #{unit}
 		      OR NON_PYRQ <![CDATA[>=]]> #{unit} ) 
 		</if>		 
 		<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))
-		</if>		
+		</if>
+		</where>	
 		 ORDER BY CCGRP_CD, CC_CD
 	</select>