|
|
|
|
@ -8,35 +8,35 @@
|
|
|
|
|
============================ -->
|
|
|
|
|
|
|
|
|
|
<resultMap id="sndngRow" type="cokr.xit.fims.sndb.Sndng"> <!-- TB_SNDNG 발송 대장 -->
|
|
|
|
|
<result property="sndngId" column="SNDNG_ID" /> <!-- 발송 ID -->
|
|
|
|
|
<result property="sggCd" column="SGG_CD" /> <!-- 시군구 코드 -->
|
|
|
|
|
<result property="taskSeCd" column="TASK_SE_CD" /> <!-- 업무 구분 코드 -->
|
|
|
|
|
<result property="deptCd" column="DEPT_CD" /> <!-- 부서 코드 -->
|
|
|
|
|
<result property="sndngRegSeCd" column="SNDNG_REG_SE_CD" /> <!-- 발송 등록 구분 코드 -->
|
|
|
|
|
<result property="sndngSeCd" column="SNDNG_SE_CD" /> <!-- 발송 구분 코드 -->
|
|
|
|
|
<result property="vltnId" column="VLTN_ID" /> <!-- 위반 ID -->
|
|
|
|
|
<result property="levyBgngYmd" column="LEVY_BGNG_YMD" /> <!-- 부과 시작 일자 -->
|
|
|
|
|
<result property="levyEndYmd" column="LEVY_END_YMD" /> <!-- 부과 종료 일자 -->
|
|
|
|
|
<result property="sndngYmd" column="SNDNG_YMD" /> <!-- 발송 일자 -->
|
|
|
|
|
<result property="sndngEndYmd" column="SNDNG_END_YMD" /> <!-- 발송 종료 일자 -->
|
|
|
|
|
<result property="ttlNm" column="TTL_NM" /> <!-- 제목 명 -->
|
|
|
|
|
<result property="docNo" column="DOC_NO" /> <!-- 문서 번호 -->
|
|
|
|
|
<result property="etcCn" column="ETC_CN" /> <!-- 기타 내용 -->
|
|
|
|
|
<result property="tnocs" column="TNOCS" /> <!-- 총건수 -->
|
|
|
|
|
<result property="gramt" column="GRAMT" /> <!-- 총금액 -->
|
|
|
|
|
<result property="conKey" column="CON_KEY" /> <!-- 외부연계식별키 -->
|
|
|
|
|
<result property="divKb" column="DIV_KB" /> <!-- 취급 구분 -->
|
|
|
|
|
<result property="epostNoticeId" column="EPOST_NOTICE_ID" /> <!-- 전자우편 안내문 ID -->
|
|
|
|
|
<result property="sndngSttsCd" column="SNDNG_STTS_CD" /> <!-- 발송 상태 코드 -->
|
|
|
|
|
<result property="rsndYn" column="RSND_YN" /> <!-- 재발송 여부 -->
|
|
|
|
|
<result property="delYn" column="DEL_YN" /> <!-- 삭제 여부 -->
|
|
|
|
|
<result property="createdAt" column="REG_DT" /> <!-- 등록 일시 -->
|
|
|
|
|
<result property="createdBy" column="RGTR" /> <!-- 등록자 -->
|
|
|
|
|
<result property="lastModified" column="MDFCN_DT" /> <!-- 수정 일시 -->
|
|
|
|
|
<result property="modifiedBy" column="MDFR" /> <!-- 수정자 -->
|
|
|
|
|
<result property="delDt" column="DEL_DT" /> <!-- 삭제 일시 -->
|
|
|
|
|
<result property="dltr" column="DLTR" /> <!-- 삭제자 -->
|
|
|
|
|
<result property="delRsn" column="DEL_RSN" /> <!-- 삭제 사유 -->
|
|
|
|
|
<result property="sndngId" column="SNDNG_ID" /> <!-- 발송 ID -->
|
|
|
|
|
<result property="sggCd" column="SGG_CD" /> <!-- 시군구 코드 -->
|
|
|
|
|
<result property="taskSeCd" column="TASK_SE_CD" /> <!-- 업무 구분 코드 -->
|
|
|
|
|
<result property="deptCd" column="DEPT_CD" /> <!-- 부서 코드 -->
|
|
|
|
|
<result property="sndngRegSeCd" column="SNDNG_REG_SE_CD" /><!-- 발송 등록 구분 코드 -->
|
|
|
|
|
<result property="sndngSeCd" column="SNDNG_SE_CD" /> <!-- 발송 구분 코드 -->
|
|
|
|
|
<result property="vltnId" column="VLTN_ID" /> <!-- 위반 ID -->
|
|
|
|
|
<result property="levyBgngYmd" column="LEVY_BGNG_YMD" /> <!-- 부과 시작 일자 -->
|
|
|
|
|
<result property="levyEndYmd" column="LEVY_END_YMD" /> <!-- 부과 종료 일자 -->
|
|
|
|
|
<result property="sndngYmd" column="SNDNG_YMD" /> <!-- 발송 일자 -->
|
|
|
|
|
<result property="sndngEndYmd" column="SNDNG_END_YMD" /> <!-- 발송 종료 일자 -->
|
|
|
|
|
<result property="ttlNm" column="TTL_NM" /> <!-- 제목 명 -->
|
|
|
|
|
<result property="docNo" column="DOC_NO" /> <!-- 문서 번호 -->
|
|
|
|
|
<result property="etcCn" column="ETC_CN" /> <!-- 기타 내용 -->
|
|
|
|
|
<result property="tnocs" column="TNOCS" /> <!-- 총건수 -->
|
|
|
|
|
<result property="gramt" column="GRAMT" /> <!-- 총금액 -->
|
|
|
|
|
<result property="conKey" column="CON_KEY" /> <!-- 외부연계식별키 -->
|
|
|
|
|
<result property="divKb" column="DIV_KB" /> <!-- 취급 구분 -->
|
|
|
|
|
<result property="epostNoticeId" column="EPOST_NOTICE_ID" /><!-- 전자우편 안내문 ID -->
|
|
|
|
|
<result property="sndngSttsCd" column="SNDNG_STTS_CD" /> <!-- 발송 상태 코드 -->
|
|
|
|
|
<result property="rsndYn" column="RSND_YN" /> <!-- 재발송 여부 -->
|
|
|
|
|
<result property="delYn" column="DEL_YN" /> <!-- 삭제 여부 -->
|
|
|
|
|
<result property="createdAt" column="REG_DT" /> <!-- 등록 일시 -->
|
|
|
|
|
<result property="createdBy" column="RGTR" /> <!-- 등록자 -->
|
|
|
|
|
<result property="lastModified" column="MDFCN_DT" /> <!-- 수정 일시 -->
|
|
|
|
|
<result property="modifiedBy" column="MDFR" /> <!-- 수정자 -->
|
|
|
|
|
<result property="delDt" column="DEL_DT" /> <!-- 삭제 일시 -->
|
|
|
|
|
<result property="dltr" column="DLTR" /> <!-- 삭제자 -->
|
|
|
|
|
<result property="delRsn" column="DEL_RSN" /> <!-- 삭제 사유 -->
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectList">
|
|
|
|
|
@ -84,64 +84,36 @@
|
|
|
|
|
<include refid="utility.paging-prefix" />
|
|
|
|
|
<include refid="selectList" />
|
|
|
|
|
<where>
|
|
|
|
|
<if test="schSndngYmdFrom != null">
|
|
|
|
|
AND S.SNDNG_YMD <![CDATA[>=]]> #{schSndngYmdFrom} <!-- 발송 일자 시작 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schSndngYmdTo != null">
|
|
|
|
|
AND S.SNDNG_YMD <![CDATA[<=]]> #{schSndngYmdTo} <!-- 발송 일자 종료 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schSndngRegSeCd != null">
|
|
|
|
|
AND S.SNDNG_REG_SE_CD = #{schSndngRegSeCd} <!-- 발송 등록 구분 코드 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schSndngSeCd != null">
|
|
|
|
|
AND S.SNDNG_SE_CD = #{schSndngSeCd} <!-- 발송 구분 코드 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sndngSeCd != null">
|
|
|
|
|
AND S.SNDNG_SE_CD = #{sndngSeCd} <!-- 발송 구분 코드 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sndngSeCdFrom != null">
|
|
|
|
|
AND S.SNDNG_SE_CD <![CDATA[>=]]> #{sndngSeCdFrom} <!-- 발송 구분 코드 시작 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sndngSeCdTo != null">
|
|
|
|
|
AND S.SNDNG_SE_CD <![CDATA[<=]]> #{sndngSeCdTo} <!-- 발송 구분 코드 종료 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sggCd != null">
|
|
|
|
|
AND S.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="taskSeCd != null">
|
|
|
|
|
AND S.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
|
|
|
|
|
</if>
|
|
|
|
|
AND S.DEL_YN = 'N' <!-- 삭제 여부 -->
|
|
|
|
|
<if test="sndngIds != null">AND S.SNDNG_ID IN (<foreach collection="sndngIds" item="sndngId" separator=",">#{sndngId}</foreach>)</if><!-- 발송 Ids -->
|
|
|
|
|
<if test="sndngId != null">AND S.SNDNG_ID = #{sndngId}</if><!-- 발송 ID -->
|
|
|
|
|
<if test="schSndngYmdFrom != null">AND S.SNDNG_YMD <![CDATA[>=]]> #{schSndngYmdFrom} <!-- 발송 일자 시작 --></if>
|
|
|
|
|
<if test="schSndngYmdTo != null">AND S.SNDNG_YMD <![CDATA[<=]]> #{schSndngYmdTo} <!-- 발송 일자 종료 --></if>
|
|
|
|
|
<if test="schSndngRegSeCd != null">AND S.SNDNG_REG_SE_CD = #{schSndngRegSeCd} <!-- 발송 등록 구분 코드 --></if>
|
|
|
|
|
<if test="schSndngSeCd != null">AND S.SNDNG_SE_CD = #{schSndngSeCd} <!-- 발송 구분 코드 --></if>
|
|
|
|
|
<if test="sndngSeCd != null">AND S.SNDNG_SE_CD = #{sndngSeCd} <!-- 발송 구분 코드 --></if>
|
|
|
|
|
<if test="sndngSeCdFrom != null">AND S.SNDNG_SE_CD <![CDATA[>=]]> #{sndngSeCdFrom} <!-- 발송 구분 코드 시작 --></if>
|
|
|
|
|
<if test="sndngSeCdTo != null">AND S.SNDNG_SE_CD <![CDATA[<=]]> #{sndngSeCdTo} <!-- 발송 구분 코드 종료 --></if>
|
|
|
|
|
<if test="sggCd != null">AND S.SGG_CD = #{sggCd} <!-- 시군구 코드 --></if>
|
|
|
|
|
<if test="taskSeCd != null">AND S.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 --></if>
|
|
|
|
|
AND S.DEL_YN = 'N' <!-- 삭제 여부 -->
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="schRegDateOpt == 'regDt'">
|
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
|
AND S.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 등록 일자 시작 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
|
AND S.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 등록 일자 종료 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRegDateFrom != null">AND S.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 등록 일자 시작 --></if>
|
|
|
|
|
<if test="schRegDateTo != null">AND S.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 등록 일자 종료 --></if>
|
|
|
|
|
</when>
|
|
|
|
|
<when test="schRegDateOpt == 'mdfcnDt'">
|
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
|
AND S.MDFCN_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 수정 일자 시작 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
|
AND S.MDFCN_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 수정 일자 종료 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRegDateFrom != null">AND S.MDFCN_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 수정 일자 시작 --></if>
|
|
|
|
|
<if test="schRegDateTo != null">AND S.MDFCN_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 수정 일자 종료 --></if>
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="schRgtrOpt == 'rgtr'">
|
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
|
AND S.RGTR = #{schRgtrCd} <!-- 등록자 코드 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRgtrCd != null">AND S.RGTR = #{schRgtrCd} <!-- 등록자 코드 --></if>
|
|
|
|
|
</when>
|
|
|
|
|
<when test="schRgtrOpt == 'mdfr'">
|
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
|
AND S.MDFR = #{schRgtrCd} <!-- 수정자 코드 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRgtrCd != null">AND S.MDFR = #{schRgtrCd} <!-- 수정자 코드 --></if>
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
</otherwise>
|
|
|
|
|
@ -174,17 +146,11 @@
|
|
|
|
|
<include refid="utility.paging-suffix" />
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectSndngs" parameterType="map" resultType="dataobject">/* 발송 대장 객체 가져오기(sndngMapper.selectSndngs) */
|
|
|
|
|
<select id="selectSndngs" parameterType="map" resultMap="sndngRow">/* 발송 대장 객체 가져오기(sndngMapper.selectSndngs) */
|
|
|
|
|
<include refid="selectList" />
|
|
|
|
|
<where>
|
|
|
|
|
<if test="sndngIds != null">
|
|
|
|
|
AND S.SNDNG_ID IN ( <!-- 발송 Ids -->
|
|
|
|
|
<foreach collection="sndngIds" item="sndngId" separator=","> #{sndngId} </foreach>
|
|
|
|
|
)
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sndngId != null">
|
|
|
|
|
AND S.SNDNG_ID = #{sndngId} <!-- 발송 ID -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sndngIds != null">AND S.SNDNG_ID IN (<foreach collection="sndngIds" item="sndngId" separator=",">#{sndngId}</foreach>)</if><!-- 발송 Ids -->
|
|
|
|
|
<if test="sndngId != null">AND S.SNDNG_ID = #{sndngId}</if><!-- 발송 ID -->
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="delYn != null">
|
|
|
|
|
AND S.DEL_YN = #{delYn} <!-- 삭제 여부 -->
|
|
|
|
|
|