Browse Source

리스크점검사유등록 공정율 조건 쿼리 수정

SBK 1 year ago
parent
commit
0c6f99c1be

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

@@ -134,7 +134,7 @@
 			   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) OR NVL(PROG_ACT_RT_RSN,'Y') = (CASE WHEN PROG_ACT_O_RT_DIFF > 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) OR NVL(PROG_ACT_RT_RSN,'Y') = (CASE WHEN PROG_ACT_O_RT_DIFF > 0 THEN 'Y' ELSE 'N' END))
 			</if>
 			</if>
 		</if>
 		</if>
-		<if test="gubun == 'CTMN'">				
+		<if test="gubun == 'CTMN'">
 		   AND NON_CTMN <![CDATA[>]]> #{unit}
 		   AND NON_CTMN <![CDATA[>]]> #{unit}
 			<if test="resnYn != '' and resnYn != null">
 			<if test="resnYn != '' and resnYn != null">
 			   AND NVL(RCAMT_RSN,'Y') = (CASE WHEN NON_CTMN != 0 THEN 'Y' ELSE 'N' END)
 			   AND NVL(RCAMT_RSN,'Y') = (CASE WHEN NON_CTMN != 0 THEN 'Y' ELSE 'N' END)
@@ -145,11 +145,9 @@
 			<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)
 			   AND NVL(NPYRQ_RSN,'Y') = (CASE WHEN NON_PYRQ != 0 THEN 'Y' ELSE 'N' END)
 			</if>
 			</if>
-		</if>	
+		</if>
 		<if test="gubun == 'PAOR'">
 		<if test="gubun == 'PAOR'">
-			<if test="processGap != 0">
-				AND PROG_ACT_O_RT_DIFF <![CDATA[>=]]> #{processGap}
-			</if>
+			AND PROG_ACT_O_RT_DIFF <![CDATA[>]]> #{processGap}
 			<if test="resnYn != '' and resnYn != null">
 			<if test="resnYn != '' and resnYn != null">
 			   AND NVL(PROG_ACT_RT_RSN,'Y') = (CASE WHEN PROG_ACT_O_RT_DIFF > 0 THEN 'Y' ELSE 'N' END)
 			   AND NVL(PROG_ACT_RT_RSN,'Y') = (CASE WHEN PROG_ACT_O_RT_DIFF > 0 THEN 'Y' ELSE 'N' END)
 			</if>
 			</if>