|
|
|
@ -177,6 +177,16 @@ WHERE C.DEL_YN = 'N'
|
|
|
|
|
<if test="cvlcptPrcsPicNm != null">
|
|
|
|
|
AND CC.CVLCPT_PRCS_PIC_NM = #{cvlcptPrcsPicNm}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateFrom != null or schDateTo != null">
|
|
|
|
|
<if test="schDateOpt == 'regDt'">
|
|
|
|
|
<if test="schDateFrom != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateOpt == 'mdfcnDt'">
|
|
|
|
|
<if test="schDateFrom != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
|
|
|
|
@ -243,6 +253,16 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
<if test="cvlcptPrcsPicNm != null">
|
|
|
|
|
AND CC.CVLCPT_PRCS_PIC_NM = #{cvlcptPrcsPicNm}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateFrom != null or schDateTo != null">
|
|
|
|
|
<if test="schDateOpt == 'regDt'">
|
|
|
|
|
<if test="schDateFrom != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateOpt == 'mdfcnDt'">
|
|
|
|
|
<if test="schDateFrom != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
|
|
|
|
@ -350,7 +370,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
<if test='editDataExist == "Y"'>
|
|
|
|
|
, DSTRBNC_YN = NULLIF(#{crdnCvlcpt.dstrbncYn},'N') /* 방해 여부 */
|
|
|
|
|
</if>
|
|
|
|
|
WHERE CVLCPT_LINK_ID = #{cvlcptLinkId} /* 연계 ID */
|
|
|
|
|
WHERE CVLCPT_LINK_ID = #{crdnCvlcpt.cvlcptLinkId} /* 연계 ID */
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="updateCvlcptProcessSectionForSendBack" parameterType="cokr.xit.fims.cvlc.CrdnCvlcpt">
|
|
|
|
@ -422,6 +442,16 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
<if test="schCvlcptRcptYmdTo != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ <= ]]> #{schCvlcptRcptYmdTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cvlcptPrcsCd != null">AND CC.CVLCPT_PRCS_CD = #{cvlcptPrcsCd}</if>
|
|
|
|
|
<if test="schDateFrom != null or schDateTo != null">
|
|
|
|
|
<if test="schDateOpt == 'regDt'">
|
|
|
|
|
<if test="schDateFrom != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateOpt == 'mdfcnDt'">
|
|
|
|
|
<if test="schDateFrom != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
|
|
|
|
@ -525,7 +555,8 @@ SELECT CC.CVLCPT_LINK_ID /* 민원 연계 ID */
|
|
|
|
|
FROM TB_DEPT_INFO DI
|
|
|
|
|
WHERE DI.DEPT_CD = U.DEPT_CD
|
|
|
|
|
AND DI.SGG_CD = SI.SGG_CD
|
|
|
|
|
AND ROWNUM = 1
|
|
|
|
|
AND DI.USE_YN = 'Y'
|
|
|
|
|
LIMIT 1
|
|
|
|
|
) AS CVLCPT_PRCS_DEPT_NM /* 민원 처리 부서 명 */
|
|
|
|
|
, U.NSTT_CD AS CVLCPT_PRCS_NSTT_CD /* 민원 처리 기관 코드 */
|
|
|
|
|
, EI.PETI_ANC_CODE_V /* 민원 기관코드 */
|
|
|
|
|