Browse Source

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

SBK 1 year ago
parent
commit
ad5c8be39d

+ 4 - 1
src/main/resources/sqlmap/mappers/co/co0102/CO01020001UMapper.xml

@@ -129,12 +129,15 @@
 					   AND A.STD_YM = #{stdYm}
 					   AND A.STD_YM = #{stdYm}
 					   AND A.CC_CD NOT IN (SELECT SPEC_CD FROM SM_COM_COMMCD_D A, SM_COM_COMMCD B WHERE A.COMM_CD_ID = B.COMM_CD_ID AND B.COMM_CD = 'CO004' AND A.USE_YN = 'Y')
 					   AND A.CC_CD NOT IN (SELECT SPEC_CD FROM SM_COM_COMMCD_D A, SM_COM_COMMCD B WHERE A.COMM_CD_ID = B.COMM_CD_ID AND B.COMM_CD = 'CO004' AND A.USE_YN = 'Y')
 					   AND A.CC_CD LIKE '%'||#{ccCd}||'%'
 					   AND A.CC_CD LIKE '%'||#{ccCd}||'%'
-					   
+				   
 					<if test="complCd != 'all'">
 					<if test="complCd != 'all'">
 					   AND E.COMPL_CD = #{complCd}
 					   AND E.COMPL_CD = #{complCd}
 					</if>
 					</if>
 				)
 				)
 		<where>
 		<where>
+		<if test="ccgrpCd != 'all'">
+		   AND CCGRP_CD = #{ccgrpCd}
+		</if>
 		<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} )