|
|
@ -70,6 +70,7 @@
|
|
|
|
, OS.PIC_RVW_OPNN <!-- 담당자 검토 의견 -->
|
|
|
|
, OS.PIC_RVW_OPNN <!-- 담당자 검토 의견 -->
|
|
|
|
, OS.OPNN_SBMSN_STTS_CD <!-- 의견 제출 상태 코드 -->
|
|
|
|
, OS.OPNN_SBMSN_STTS_CD <!-- 의견 제출 상태 코드 -->
|
|
|
|
, (SELECT GET_CODE_NM('FIM031', OS.OPNN_SBMSN_STTS_CD) FROM DUAL) AS OPNN_SBMSN_STTS_NM <!-- 의견 제출 상태 명 -->
|
|
|
|
, (SELECT GET_CODE_NM('FIM031', OS.OPNN_SBMSN_STTS_CD) FROM DUAL) AS OPNN_SBMSN_STTS_NM <!-- 의견 제출 상태 명 -->
|
|
|
|
|
|
|
|
, OS.ANS_YMD <!-- 답변 일자 -->
|
|
|
|
, (CONCAT(OS.ANS_YMD, OS.ANS_TM)) AS ANS_YMD_TM <!-- 답변 일시 -->
|
|
|
|
, (CONCAT(OS.ANS_YMD, OS.ANS_TM)) AS ANS_YMD_TM <!-- 답변 일시 -->
|
|
|
|
, OS.ANS_CN <!-- 답변 내용 -->
|
|
|
|
, OS.ANS_CN <!-- 답변 내용 -->
|
|
|
|
, OS.DEL_YN <!-- 삭제 여부 -->
|
|
|
|
, OS.DEL_YN <!-- 삭제 여부 -->
|
|
|
@ -97,6 +98,7 @@
|
|
|
|
, V.VLTN_CD <!-- 위반 코드 -->
|
|
|
|
, V.VLTN_CD <!-- 위반 코드 -->
|
|
|
|
, V.VLTN_ARTCL <!-- 위반 항목 -->
|
|
|
|
, V.VLTN_ARTCL <!-- 위반 항목 -->
|
|
|
|
, P.RTPYR_ID <!-- 납부자 ID -->
|
|
|
|
, P.RTPYR_ID <!-- 납부자 ID -->
|
|
|
|
|
|
|
|
, P.RTPYR_SE_CD <!-- 납부자 구분 코드 -->
|
|
|
|
, (SELECT GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM <!-- 납부자 구분 명 -->
|
|
|
|
, (SELECT GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM <!-- 납부자 구분 명 -->
|
|
|
|
, P.RTPYR_NO <!-- 납부자 번호 -->
|
|
|
|
, P.RTPYR_NO <!-- 납부자 번호 -->
|
|
|
|
, P.RTPYR_NM <!-- 납부자 명 -->
|
|
|
|
, P.RTPYR_NM <!-- 납부자 명 -->
|
|
|
@ -112,7 +114,7 @@
|
|
|
|
FROM TB_OPNN_SBMSN OS
|
|
|
|
FROM TB_OPNN_SBMSN OS
|
|
|
|
INNER JOIN TB_CRDN C ON (OS.CRDN_ID = C.CRDN_ID)
|
|
|
|
INNER JOIN TB_CRDN C ON (OS.CRDN_ID = C.CRDN_ID)
|
|
|
|
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
|
|
|
|
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
|
|
|
|
INNER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID)
|
|
|
|
LEFT OUTER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID)
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
LEFT OUTER JOIN TB_PAYER_ADDR PA ON (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN)
|
|
|
|
LEFT OUTER JOIN TB_PAYER_ADDR PA ON (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN)
|
|
|
|
LEFT OUTER JOIN TB_RDUCT R ON (C.CRDN_ID = R.CRDN_ID AND R.DEL_YN = 'N')
|
|
|
|
LEFT OUTER JOIN TB_RDUCT R ON (C.CRDN_ID = R.CRDN_ID AND R.DEL_YN = 'N')
|
|
|
@ -205,19 +207,24 @@
|
|
|
|
<when test="by == 'opnnSbmsnSttsCd'"> OS.OPNN_SBMSN_STTS_CD </when>
|
|
|
|
<when test="by == 'opnnSbmsnSttsCd'"> OS.OPNN_SBMSN_STTS_CD </when>
|
|
|
|
<when test="by == 'opnnSbmsnSeCd'"> OS.OPNN_SBMSN_SE_CD </when>
|
|
|
|
<when test="by == 'opnnSbmsnSeCd'"> OS.OPNN_SBMSN_SE_CD </when>
|
|
|
|
<when test="by == 'opnnSbmsnGist'"> OS.OPNN_SBMSN_GIST </when>
|
|
|
|
<when test="by == 'opnnSbmsnGist'"> OS.OPNN_SBMSN_GIST </when>
|
|
|
|
|
|
|
|
<when test="by == 'docNo'"> OS.DOC_NO </when>
|
|
|
|
|
|
|
|
<when test="by == 'ansYmd'"> OS.ANS_YMD </when>
|
|
|
|
|
|
|
|
<when test="by == 'ansCn'"> OS.ANS_CN </when>
|
|
|
|
<when test="by == 'crdnYmd'"> C.CRDN_YMD </when>
|
|
|
|
<when test="by == 'crdnYmd'"> C.CRDN_YMD </when>
|
|
|
|
<when test="by == 'vhrno'"> C.VHRNO </when>
|
|
|
|
<when test="by == 'vhrno'"> C.VHRNO </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnStdgNm'"> C.CRDN_STDG_NM </when>
|
|
|
|
<when test="by == 'crdnPlc'"> C.CRDN_PLC </when>
|
|
|
|
<when test="by == 'crdnPlc'"> C.CRDN_PLC </when>
|
|
|
|
<when test="by == 'ffnlgCrdnAmt'"> C.FFNLG_CRDN_AMT </when>
|
|
|
|
<when test="by == 'ffnlgCrdnAmt'"> C.FFNLG_CRDN_AMT </when>
|
|
|
|
<when test="by == 'ffnlgAmt'"> C.FFNLG_AMT </when>
|
|
|
|
<when test="by == 'ffnlgAmt'"> C.FFNLG_AMT </when>
|
|
|
|
<when test="by == 'advntceAmt'"> C.ADVNTCE_AMT </when>
|
|
|
|
<when test="by == 'advntceAmt'"> C.ADVNTCE_AMT </when>
|
|
|
|
<when test="by == 'crdnSttsCd'"> C.CRDN_STTS_CD </when>
|
|
|
|
<when test="by == 'crdnSttsCd'"> C.CRDN_STTS_CD </when>
|
|
|
|
<when test="by == 'docNo'"> OS.DOC_NO </when>
|
|
|
|
<when test="by == 'rtpyrSeCd'"> P.RTPYR_SE_CD </when>
|
|
|
|
<when test="by == 'ansYmd'"> OS.ANS_YMD </when>
|
|
|
|
|
|
|
|
<when test="by == 'ansCn'"> OS.ANS_CN </when>
|
|
|
|
|
|
|
|
<when test="by == 'rtpyrNm'"> P.RTPYR_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'rtpyrNo'"> P.RTPYR_NO </when>
|
|
|
|
<when test="by == 'rtpyrNo'"> P.RTPYR_NO </when>
|
|
|
|
<when test="by == 'rtpyrBrdt'"> P.RTPYR_BRDT </when>
|
|
|
|
<when test="by == 'rtpyrNm'"> P.RTPYR_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'zip'"> PA.ZIP </when>
|
|
|
|
|
|
|
|
<when test="by == 'addr'"> PA.ADDR </when>
|
|
|
|
|
|
|
|
<when test="by == 'dtlAddr'"> PA.DTL_ADDR </when>
|
|
|
|
|
|
|
|
<when test="by == 'vltnArtcl'"> V.VLTN_ARTCL </when>
|
|
|
|
</choose>
|
|
|
|
</choose>
|
|
|
|
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
|
|
|
|
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
@ -225,10 +232,10 @@
|
|
|
|
</otherwise>
|
|
|
|
</otherwise>
|
|
|
|
</choose>
|
|
|
|
</choose>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
|
|
|
|
AND C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
|
|
|
|
AND C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
|
|
|
|
AND C.DEL_YN = 'N' <!-- 단속 삭제 여부 -->
|
|
|
|
AND C.DEL_YN = 'N' <!-- 단속 삭제 여부 -->
|
|
|
|
|
|
|
|
</where>
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
<include refid="utility.paging-suffix" />
|
|
|
|
<include refid="utility.paging-suffix" />
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
@ -312,9 +319,9 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="crdnId != null">
|
|
|
|
<if test="crdnId != null">
|
|
|
|
AND C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
|
|
|
|
AND C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
|
|
|
|
|
|
|
|
AND C.DEL_YN = 'N' <!-- 단속 삭제 여부 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
AND C.DEL_YN = 'N' <!-- 단속 삭제 여부 -->
|
|
|
|
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|