2 Commits 64805e27bc ... 60c71a35ff

Author SHA1 Message Date
  SBK 60c71a35ff Merge branch 'master' of http://211.38.140.247:3000/sgc/sgc-portal 1 year ago
  SBK 581290a65f 리스크점검사유등록 쿼리 수정 1 year ago

+ 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>