main
jjh 10 months ago
parent 6ef4a39ae5
commit a1433b76dc

@ -11,7 +11,6 @@ import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.sndb.Svbtc; import cokr.xit.fims.sndb.Svbtc;
import cokr.xit.fims.sndb.SndbQuery; import cokr.xit.fims.sndb.SndbQuery;
import cokr.xit.fims.sndb.SndngDtl;
import cokr.xit.fims.sndb.service.SvbtcService; import cokr.xit.fims.sndb.service.SvbtcService;
/** . /** .

@ -183,7 +183,7 @@ SELECT CON_ORG <!-- 외부기관구분코드
<result property="regVarData3" column="REG_VAR_DATA3" /> <!-- 추가 데이터3 --> <result property="regVarData3" column="REG_VAR_DATA3" /> <!-- 추가 데이터3 -->
<result property="regVarData4" column="REG_VAR_DATA4" /> <!-- 추가 데이터4 --> <result property="regVarData4" column="REG_VAR_DATA4" /> <!-- 추가 데이터4 -->
<result property="regVarData5" column="REG_VAR_DATA5" /> <!-- 추가 데이터5 --> <result property="regVarData5" column="REG_VAR_DATA5" /> <!-- 추가 데이터5 -->
<result property="postProcStt" column="POST_PRCS_STTS__CD" /> <!-- 우편 처리 상태 --> <result property="postProcStt" column="POST_PRCS_STTS_CD" /> <!-- 우편 처리 상태 -->
<result property="rceptYmd" column="RCEPT_YMD" /> <!-- 접수 일자 --> <result property="rceptYmd" column="RCEPT_YMD" /> <!-- 접수 일자 -->
<result property="delYn" column="DEL_YN" /> <!-- 삭제 여부 --> <result property="delYn" column="DEL_YN" /> <!-- 삭제 여부 -->
<result property="createdAt" column="REG_DT" /> <!-- 등록 일시 --> <result property="createdAt" column="REG_DT" /> <!-- 등록 일시 -->
@ -250,7 +250,7 @@ SELECT CON_ORG <!-- 외부기관구분코드
<if test="conKeys != null">AND CON_KEY IN (<foreach collection="conKeys" item="conKey" separator=",">#{conKey}</foreach>)</if> <if test="conKeys != null">AND CON_KEY IN (<foreach collection="conKeys" item="conKey" separator=",">#{conKey}</foreach>)</if>
<if test="conKeys == null"> <if test="conKeys == null">
AND RCEPT_YMD BETWEEN #{fromRegDate} AND #{toRegDate} AND RCEPT_YMD BETWEEN #{fromRegDate} AND #{toRegDate}
<if test="statusList != null">AND POST_PRCS_STTS__CD IN (<foreach collection="statusList" item="status" separator=",">#{status}</foreach>)</if> <if test="statusList != null">AND POST_PRCS_STTS_CD IN (<foreach collection="statusList" item="status" separator=",">#{status}</foreach>)</if>
AND DEL_YN = 'N' AND DEL_YN = 'N'
</if> </if>
</where> </where>
@ -408,7 +408,7 @@ UPDATE TB_EPOST_RCPT_REG SET
, REG_VAR_DATA3 = #{emailRequest.regVarData3} <!-- 추가 데이터3 --> , REG_VAR_DATA3 = #{emailRequest.regVarData3} <!-- 추가 데이터3 -->
, REG_VAR_DATA4 = #{emailRequest.regVarData4} <!-- 추가 데이터4 --> , REG_VAR_DATA4 = #{emailRequest.regVarData4} <!-- 추가 데이터4 -->
, REG_VAR_DATA5 = #{emailRequest.regVarData5} <!-- 추가 데이터5 --> , REG_VAR_DATA5 = #{emailRequest.regVarData5} <!-- 추가 데이터5 -->
, POST_PRCS_STTS__CD = #{emailRequest.postProcStt} <!-- 우편 처리 상태 --> , POST_PRCS_STTS_CD = #{emailRequest.postProcStt} <!-- 우편 처리 상태 -->
, RCEPT_YMD = #{emailRequest.rceptYmd} <!-- 접수 일자 --> , RCEPT_YMD = #{emailRequest.rceptYmd} <!-- 접수 일자 -->
, DEL_YN = #{emailRequest.delYn} <!-- 삭제 여부 --> , DEL_YN = #{emailRequest.delYn} <!-- 삭제 여부 -->
, DEL_DT = #{emailRequest.removedAt} <!-- 삭제 일시 --> , DEL_DT = #{emailRequest.removedAt} <!-- 삭제 일시 -->
@ -417,7 +417,7 @@ UPDATE TB_EPOST_RCPT_REG SET
<update id="updateRequestStatus" parameterType="map">/* 전자우편 신청 상태 변경(emailRequestMapper.updateRequestStatus) */ <update id="updateRequestStatus" parameterType="map">/* 전자우편 신청 상태 변경(emailRequestMapper.updateRequestStatus) */
UPDATE TB_EPOST_RCPT_REG SET UPDATE TB_EPOST_RCPT_REG SET
POST_PRCS_STTS__CD = #{status} POST_PRCS_STTS_CD = #{status}
<if test='resultType == "registration"'> , RCEPT_YMD = CASE CON_KEY<foreach collection="results" item="result"> <if test='resultType == "registration"'> , RCEPT_YMD = CASE CON_KEY<foreach collection="results" item="result">
WHEN #{result.reletcdata} THEN #{result.rceptYmd}</foreach> WHEN #{result.reletcdata} THEN #{result.rceptYmd}</foreach>
ELSE RCEPT_YMD END</if> ELSE RCEPT_YMD END</if>
@ -428,12 +428,12 @@ UPDATE TB_EPOST_RCPT_REG SET
<if test='resultType == "production"'><foreach collection="results" item="result" separator=",">#{result.conKey}</foreach></if> <if test='resultType == "production"'><foreach collection="results" item="result" separator=",">#{result.conKey}</foreach></if>
<if test='resultType == "delivery"'><foreach collection="results" item="result" separator=",">#{result.reletcdata}</foreach></if> <if test='resultType == "delivery"'><foreach collection="results" item="result" separator=",">#{result.reletcdata}</foreach></if>
) )
AND POST_PRCS_STTS__CD &lt; #{maxStatus}</update> AND POST_PRCS_STTS_CD &lt; #{maxStatus}</update>
<update id="updateRequestAsDelivered" parameterType="map">/* 전자우편 배달 완료 처리(emailRequestMapper.updateRequestAsDelivered) */ <update id="updateRequestAsDelivered" parameterType="map">/* 전자우편 배달 완료 처리(emailRequestMapper.updateRequestAsDelivered) */
UPDATE TB_EPOST_RCPT_REG SET UPDATE TB_EPOST_RCPT_REG SET
POST_PRCS_STTS__CD = #{status} POST_PRCS_STTS_CD = #{status}
WHERE POST_PRCS_STTS__CD = '27' <!-- 배달중 --> WHERE POST_PRCS_STTS_CD = '27' <!-- 배달중 -->
AND DEL_YN = 'N' AND DEL_YN = 'N'
AND REG_DT &lt; CONCAT(DATE_FORMAT(DATE_SUB(CURRENT_DATE, INTERVAL #{expiryDays} DAY), '%Y%m%d'), '000000')</update> AND REG_DT &lt; CONCAT(DATE_FORMAT(DATE_SUB(CURRENT_DATE, INTERVAL #{expiryDays} DAY), '%Y%m%d'), '000000')</update>

Loading…
Cancel
Save