|
@@ -129,23 +129,32 @@
|
|
|
<where>
|
|
|
<if test="gubun == 'all'">
|
|
|
AND (NON_CTMN <![CDATA[>=]]> #{unit}
|
|
|
- OR NON_PYRQ <![CDATA[>=]]> #{unit} )
|
|
|
+ OR NON_PYRQ <![CDATA[>=]]> #{unit} )
|
|
|
+ <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) OR NVL(PROG_ACT_RT_RSN,'Y') = (CASE WHEN PROG_ACT_O_RT_DIFF > 0 THEN 'Y' ELSE 'N' END))
|
|
|
+ </if>
|
|
|
</if>
|
|
|
<if test="gubun == 'CTMN'">
|
|
|
- AND NON_CTMN <![CDATA[>=]]> #{unit}
|
|
|
+ AND NON_CTMN <![CDATA[>]]> #{unit}
|
|
|
+ <if test="resnYn != '' and resnYn != null">
|
|
|
+ AND NVL(RCAMT_RSN,'Y') = (CASE WHEN NON_CTMN != 0 THEN 'Y' ELSE 'N' END)
|
|
|
+ </if>
|
|
|
</if>
|
|
|
<if test="gubun == 'PYRQ'">
|
|
|
- AND NON_PYRQ <![CDATA[>=]]> #{unit}
|
|
|
+ AND NON_PYRQ <![CDATA[>]]> #{unit}
|
|
|
+ <if test="resnYn != '' and resnYn != null">
|
|
|
+ AND NVL(NPYRQ_RSN,'Y') = (CASE WHEN NON_PYRQ != 0 THEN 'Y' ELSE 'N' END)
|
|
|
+ </if>
|
|
|
</if>
|
|
|
<if test="gubun == 'PAOR'">
|
|
|
<if test="processGap != 0">
|
|
|
AND PROG_ACT_O_RT_DIFF <![CDATA[>=]]> #{processGap}
|
|
|
</if>
|
|
|
- </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 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)
|
|
|
+ </if>
|
|
|
</if>
|
|
|
- </where>
|
|
|
+ </where>
|
|
|
ORDER BY CCGRP_CD, CC_CD
|
|
|
</select>
|
|
|
|