|
@@ -205,10 +205,10 @@
|
|
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')
|
|
<if test="gubun == '02'">
|
|
<if test="gubun == '02'">
|
|
- AND C.CD_SITE IS NOT NULL
|
|
|
|
|
|
+ AND ( NVL(C.RT_PROG_PLAN_O,0) > 0 OR NVL(C.RT_PROG_ACT_O,0) > 0 )
|
|
</if>
|
|
</if>
|
|
<if test="gubun == '03'">
|
|
<if test="gubun == '03'">
|
|
- AND C.CD_SITE IS NULL
|
|
|
|
|
|
+ AND ( NVL(C.RT_PROG_PLAN_O,0) = 0 AND NVL(C.RT_PROG_ACT_O,0) = 0 )
|
|
</if>
|
|
</if>
|
|
ORDER BY A.CMPN_CD, A.STD_YM, A.CCGRP_CD, A.CC_CD
|
|
ORDER BY A.CMPN_CD, A.STD_YM, A.CCGRP_CD, A.CC_CD
|
|
</select>
|
|
</select>
|