|
|
|
@ -227,65 +227,6 @@ AND (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT(
|
|
|
|
|
<include refid="utility.paging-suffix"/>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectCivilComplaintAnswerTargetDataList" parameterType="map" resultType="dataobject">
|
|
|
|
|
/* 민원답변대상자료 목록 조회(crdnCvlcptMapper.selectCivilComplaintAnswerTargetDataList) */
|
|
|
|
|
<include refid="utility.paging-prefix"/>
|
|
|
|
|
SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
, C.CRDN_REG_SE_CD <!-- 단속 등록 구분 코드 -->
|
|
|
|
|
, (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) AS VLTN_ARTCL <!-- 위반내용 -->
|
|
|
|
|
, CC.CVLCPT_APLCNT_NM <!-- 민원 신청인 명 -->
|
|
|
|
|
, CC.CVLCPT_PRCS_PIC_NM <!-- 민원 처리 담당자 명 -->
|
|
|
|
|
, (SELECT TELNO FROM TB_USER WHERE USER_ID = CC.CVLCPT_PRCS_PIC) AS CVLCPT_PRCS_PIC_TELNO <!-- 민원 처리 담당자 전화번호 -->
|
|
|
|
|
, CC.CVLCPT_RCPT_YMD <!-- 민원 접수 일자 -->
|
|
|
|
|
, CC.CVLCPT_PRCS_PRNMNT_DT <!-- 민원 처리 예정 일시 -->
|
|
|
|
|
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
|
|
|
|
|
, CC.CVLCPT_RCPT_NO <!-- 민원 접수 번호 -->
|
|
|
|
|
, C.VHRNO <!-- 차량번호 -->
|
|
|
|
|
, LE.LEVY_EXCL_RSN_CD
|
|
|
|
|
, C.ETC_CN
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID)
|
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
|
AND C.CRDN_STTS_CD IN ('21','81','83')
|
|
|
|
|
AND C.CRDN_REG_SE_CD = '02'
|
|
|
|
|
AND CC.CVLCPT_PRCS_CD IN ('02','03','04')
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
|
|
|
|
|
<include refid="dynamicSearch.start" />
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="by == 'crdnRegSeCd'">C.CRDN_REG_SE_CD</when>
|
|
|
|
|
<when test="by == 'cvlcptAplcntNm'">CC.CVLCPT_APLCNT_NM</when>
|
|
|
|
|
<when test="by == 'cvlcptPrcsPicNm'">CC.CVLCPT_PRCS_PIC_NM</when>
|
|
|
|
|
<when test="by == 'cvlcptPrcsPicTelno'">CC.CVLCPT_PRCS_PIC_TELNO</when>
|
|
|
|
|
<when test="by == 'cvlcptRcptYmd'">CC.CVLCPT_RCPT_YMD</when>
|
|
|
|
|
<when test="by == 'cvlcptPrcsPrnmntDt'">CC.CVLCPT_PRCS_PRNMNT_DT</when>
|
|
|
|
|
<when test="by == 'crdnYmd'">C.CRDN_YMD</when>
|
|
|
|
|
<when test="by == 'cvlcptRcptNo'">CC.CVLCPT_RCPT_NO</when>
|
|
|
|
|
<when test="by == 'vhrno'">C.VHRNO</when>
|
|
|
|
|
<when test="by == 'levyExclRsnCd'">LE.LEVY_EXCL_RSN_CD</when>
|
|
|
|
|
<when test="by == 'etcCn'">C.ETC_CN</when>
|
|
|
|
|
</choose>
|
|
|
|
|
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
<if test="by == 'vltnArtcl'">
|
|
|
|
|
AND (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schCvlcptRcptYmdFrom != null or schCvlcptRcptYmdTo != null">
|
|
|
|
|
<if test="schCvlcptRcptYmdFrom != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ >= ]]> #{schCvlcptRcptYmdFrom} </if>
|
|
|
|
|
<if test="schCvlcptRcptYmdTo != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ <= ]]> #{schCvlcptRcptYmdTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cvlcptPrcsCd != null">AND CC.CVLCPT_PRCS_CD = #{cvlcptPrcsCd}</if>
|
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
|
<include refid="utility.paging-suffix"/>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectCivilComplaintOriginalInfo" parameterType="map" resultType="dataobject">
|
|
|
|
|
/* 민원내역 원본 보기(crdnCvlcptMapper.selectCivilComplaintOriginalInfo) */
|
|
|
|
|
SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
@ -317,17 +258,6 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
AND C.CRDN_ID = #{crdnId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectAnswerPreview" parameterType="map" resultType="dataobject">
|
|
|
|
|
/* 민원답변 미리보기(crdnCvlcptMapper.selectAnswerPreview) */
|
|
|
|
|
SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
, CC.CVLCPT_APLY_CN <!-- 민원 신청 내용 -->
|
|
|
|
|
, CC.CVLCPT_PRCS_RSLT_CN <!-- 민원 처리 결과 내용 -->
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
AND C.CRDN_ID = #{crdnId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectCivilComplaintReceiptInitialDataInfo" parameterType="map" resultType="dataobject">
|
|
|
|
|
/* 민원접수 초기자료 상세조회(crdnCvlcptMapper.selectCivilComplaintReceiptInitialDataInfo) */
|
|
|
|
|
SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
@ -620,4 +550,85 @@ SELECT #{newCrdnId}
|
|
|
|
|
WHERE CRDN_ID = #{crdnId}
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectCivilComplaintAnswerTargetDataList" parameterType="map" resultType="dataobject">
|
|
|
|
|
/* 민원답변대상자료 목록 조회(crdnCvlcptMapper.selectCivilComplaintAnswerTargetDataList) */
|
|
|
|
|
<include refid="utility.paging-prefix"/>
|
|
|
|
|
SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
, C.CRDN_REG_SE_CD <!-- 단속 등록 구분 코드 -->
|
|
|
|
|
, (SELECT VLTN_ARTCL
|
|
|
|
|
FROM TB_VLTN_INFO
|
|
|
|
|
WHERE VLTN_ID = C.VLTN_ID) AS VLTN_ARTCL <!-- 위반내용 -->
|
|
|
|
|
, CC.CVLCPT_APLCNT_NM <!-- 민원 신청인 명 -->
|
|
|
|
|
, CC.CVLCPT_PRCS_PIC_NM <!-- 민원 처리 담당자 명 -->
|
|
|
|
|
, (SELECT TELNO
|
|
|
|
|
FROM TB_USER
|
|
|
|
|
WHERE USER_ID = CC.CVLCPT_PRCS_PIC
|
|
|
|
|
) AS CVLCPT_PRCS_PIC_TELNO <!-- 민원 처리 담당자 전화번호 -->
|
|
|
|
|
, CC.CVLCPT_RCPT_YMD <!-- 민원 접수 일자 -->
|
|
|
|
|
, CC.CVLCPT_PRCS_PRNMNT_DT <!-- 민원 처리 예정 일시 -->
|
|
|
|
|
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
|
|
|
|
|
, CC.CVLCPT_RCPT_NO <!-- 민원 접수 번호 -->
|
|
|
|
|
, C.VHRNO <!-- 차량번호 -->
|
|
|
|
|
, LE.LEVY_EXCL_RSN_CD <!-- 부과 제외 사유 코드 -->
|
|
|
|
|
, C.ETC_CN <!-- 기타 내용 -->
|
|
|
|
|
, (CASE
|
|
|
|
|
WHEN C.CRDN_ID IN (SELECT DISTINCT(A.BFR_CRDN_ID) FROM TB_CRDN A WHERE A.DEL_YN = 'N' AND A.CRDN_REG_SE_CD = '04')
|
|
|
|
|
THEN 'Y'
|
|
|
|
|
ELSE 'N'
|
|
|
|
|
END) AS COPY_EXIST_YN <!-- 복사 자료 존재 여부 -->
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID)
|
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
|
AND C.CRDN_STTS_CD IN ('21','81','83')
|
|
|
|
|
AND C.CRDN_REG_SE_CD = '02'
|
|
|
|
|
AND CC.CVLCPT_PRCS_CD IN ('02','03','04')
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
|
|
|
|
|
<include refid="dynamicSearch.start" />
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="by == 'crdnRegSeCd'">C.CRDN_REG_SE_CD</when>
|
|
|
|
|
<when test="by == 'cvlcptAplcntNm'">CC.CVLCPT_APLCNT_NM</when>
|
|
|
|
|
<when test="by == 'cvlcptPrcsPicNm'">CC.CVLCPT_PRCS_PIC_NM</when>
|
|
|
|
|
<when test="by == 'cvlcptPrcsPicTelno'">CC.CVLCPT_PRCS_PIC_TELNO</when>
|
|
|
|
|
<when test="by == 'cvlcptRcptYmd'">CC.CVLCPT_RCPT_YMD</when>
|
|
|
|
|
<when test="by == 'cvlcptPrcsPrnmntDt'">CC.CVLCPT_PRCS_PRNMNT_DT</when>
|
|
|
|
|
<when test="by == 'crdnYmd'">C.CRDN_YMD</when>
|
|
|
|
|
<when test="by == 'cvlcptRcptNo'">CC.CVLCPT_RCPT_NO</when>
|
|
|
|
|
<when test="by == 'vhrno'">C.VHRNO</when>
|
|
|
|
|
<when test="by == 'levyExclRsnCd'">LE.LEVY_EXCL_RSN_CD</when>
|
|
|
|
|
<when test="by == 'etcCn'">C.ETC_CN</when>
|
|
|
|
|
</choose>
|
|
|
|
|
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
<if test="by == 'vltnArtcl'">
|
|
|
|
|
AND (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schCvlcptRcptYmdFrom != null or schCvlcptRcptYmdTo != null">
|
|
|
|
|
<if test="schCvlcptRcptYmdFrom != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ >= ]]> #{schCvlcptRcptYmdFrom} </if>
|
|
|
|
|
<if test="schCvlcptRcptYmdTo != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ <= ]]> #{schCvlcptRcptYmdTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cvlcptPrcsCd != null">AND CC.CVLCPT_PRCS_CD = #{cvlcptPrcsCd}</if>
|
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
|
<include refid="utility.paging-suffix"/>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectAnswerPreview" parameterType="map" resultType="dataobject">
|
|
|
|
|
/* 민원답변 미리보기(crdnCvlcptMapper.selectAnswerPreview) */
|
|
|
|
|
SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
, CC.CVLCPT_APLY_CN <!-- 민원 신청 내용 -->
|
|
|
|
|
, CC.CVLCPT_PRCS_RSLT_CN <!-- 민원 처리 결과 내용 -->
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
AND C.CRDN_ID = #{crdnId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|