docs: mapper javadoc fix

dev
gitea-관리자 1 year ago
parent b7524b1403
commit e5b1c38d62

@ -97,52 +97,74 @@ public interface IEnsBatchMapper {
<T> List<EnsDTO.SndngMssageParam> selectMakeTgts(final T t);
/**
* <pre>
* 2
* - tb_ens_sndng_mastr, tb_ens_kakao_my_doc
* - (NOT (tekmd.doc_box_status = 'READ' AND tekmd.error_code IS NULL)
* OR (tekmd.doc_box_status IS NULL and tekmd.error_code IS NULL))
* @param t T
* @return int
* </pre>
*/
<T> int selectSendOkTgts(final T t);
/**
* <pre>
*
* - tb_ens_sndng_mastr
* @param t status
* @return int
* </pre>
*/
<T> int insertSndngMst(final T t);
/**
* <pre>
*
* @param t
* - tb_ens_kakao_my_doc
* @param t T
* @return int
* </pre>
*/
<T> int insertKakaoMyDocs(final T t);
/**
* <pre>
*
* @param t
* - tb_ens_mobile_page_manage
* @param t T
* @return int
* </pre>
*/
<T> int insertMobilePageManage(final T t);
/**
* <pre>
*
* @param t
* - tb_ens_sms_sndng
* @param t T
* @return int
* </pre>
*/
<T> int insertSmsSndng(final T t);
/**
* <pre>
*
* @param t
* - tb_ens_post_sndng
* @param t T
* @return int
* </pre>
*/
<T> int insertPostSndng(final T t);
/**
* <pre>
*
* - tb_ens_unity_sndng_mastr : sndng_process_sttus
* @param t status, newStatus
* @return int
* </pre>
*/
<T> int updateProcessSttusUnitySndngMst(final T t);
//----------------------------------------------------------------------
@ -152,6 +174,17 @@ public interface IEnsBatchMapper {
//----------------------------------------------------------------------
// close
//----------------------------------------------------------------------
/**
* <pre>
* close
* - tb_cntc_sndng_mastr
* - sndng_process_sttus IN ('send-ok', 'sending1', 'sending2')
* - clos_dt < date_format(adddate(now(), -1), '%Y%m%d%H%i%S')
* @param sndngPprocessSttus
* @return List<String>
* </pre>
*/
List<String> selectCloseTgts(final String sndngPprocessSttus);
//----------------------------------------------------------------------
// close
@ -172,45 +205,64 @@ public interface IEnsBatchMapper {
<T> List<EnsDTO.SndngMssageParam> selectSendBulkTgts(final T t);
/**
* <pre>
*
* - tb_ens_sndng_mastr, tb_ens_kakao_my_doc, tb_ens_ci
* @param t status
* @return List<EnsDTO.SendKakaoTgt>
* </pre>
*/
<T> List<EnsDTO.SendKakaoTgt> selectKakaoSendTgts(final T t);
/**
* <pre>
* E-GREEN
* - tb_ens_sndng_mastr, tb_ens_post_sndng
* @param t status
* @return List<EnsDTO.PostSndng>
* </pre>
*/
<T> List<EnsDTO.PostSndng> selectPostTgts(final T t);
/**
* <pre>
* SMS
* - tb_ens_sndng_mastr, tb_ens_sms_sndng
* @param t status
* @return List<EnsDTO.SmsSndng>
* </pre>
*/
<T> List<EnsDTO.SmsSndng> selectSmsSendTgts(final T t);
/**
* <pre>
* :
* @param t
* - tb_ens_sndng_mastr, tb_ens_unity_sndng_mastr
* @param t T
* @return EnsDTO.SndngMssageParam
* </pre>
*/
<T> Optional<EnsDTO.SndngMssageParam> selectSndProcessStatus(final T t);
/**
* <pre>
*
* - tb_ens_kakao_my_doc
* @param t ID, , , ID
* @return int
* </pre>
*/
<T> int updateKakaoSendBulksResult(final T t);
/**
* <pre>
*
* - tb_ens_sndng_mastr
* @param t status, newStatus
* @return int
* </pre>
*/
<T> int updateProcessSttusSndngMst(final T t);
//----------------------------------------------------------------------
@ -222,9 +274,12 @@ public interface IEnsBatchMapper {
//----------------------------------------------------------------------
/**
* <pre>
*
* - tb_ens_sndng_mastr
* @param t status, newStatus
* @return int
* </pre>
*/
<T> int updateProcessSttusBulkSndngMst(final T t);
//----------------------------------------------------------------------
@ -236,18 +291,23 @@ public interface IEnsBatchMapper {
//----------------------------------------------------------------------
/**
* <pre>
*
* - tb_ens_sndng_mastr, tb_ens_kakao_my_doc
* @param sndngPprocessSttus
* @return List<String>
* </pre>
*/
List<String> selectKakaoStatusTgts(final String sndngPprocessSttus);
/**
* <pre>
*
* - tb_ens_kakao_my_doc
* @param dto EnsDTO.KakaoMyDoc
* @return int
* </pre>
*/
//int updateKakaoStatusInfo(final EnsDTO.KakaoMyDoc dto);
int updateKakaoStatusInfo(final BulkStatus dto);
//----------------------------------------------------------------------
// status
@ -261,16 +321,41 @@ public interface IEnsBatchMapper {
/**
* <pre>
*
* - tb_cntc_sndng_result, tb_ens_unity_sndng_detail
* @param dto , , ()/()/ ,
* @return int
* </pre>
*/
int insertCntcSndngResult(final CntcDTO.SndngResult dto);
int updateCntcSndngResult(final CntcDTO.SndngResult dto);
/**
* -
* - tb_cntc_sndng_result, tb_ens_kakao_my_doc
* @param dto
* @return
*/
int updateCntcSndngResultByKkoMyDoc(final CntcDTO.SndngResult dto);
//----------------------------------------------------------------------
// result
//----------------------------------------------------------------------
/**
* <pre>
* 릿
* - tb_ens_tmplat_manage
* @param tmplatId String
* @return Optional<EnsDTO.TmplatManage>
* </pre>
*/
Optional<EnsDTO.TmplatManage> selectTmplat(final String tmplatId);
EnsDTO.MobilePageManage selectMobilePage(final OneTimeToken dto);
/**
* <pre>
*
* - tb_ens_kakao_my_doc, tb_ens_mobile_page_manage
* @param dto OneTimeToken
* @return EnsDTO.MobilePageManage
* </pre>
*/
EnsDTO.MobilePageManage selectKkoMobilePage(final OneTimeToken dto);
}

@ -363,7 +363,7 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
resList.forEach(o ->
o.getDocuments().forEach(t -> {
mapper.updateKakaoStatusInfo(t);
mapper.updateCntcSndngResult(CntcDTO.SndngResult.builder()
mapper.updateCntcSndngResultByKkoMyDoc(CntcDTO.SndngResult.builder()
.documentBinderUuid(t.getDocument_binder_uuid())
.sndngResultSttus(StringUtils.defaultString(String.valueOf(t.getStatus_data().getDoc_box_status()), "FAIL"))
.requstDt(Checks.isEmpty(t.getStatus_data().getDoc_box_sent_at())? null: t.getStatus_data().getDoc_box_sent_at().toString())

@ -401,7 +401,7 @@
SELECT unity_sndng_mastr_id
FROM tb_cntc_sndng_mastr
WHERE sndng_process_sttus IN ('send-ok', 'sending1', 'sending2')
AND clos_dt <![CDATA[<]]> date_format(adddate(now(), -1), '%Y%m%d%H%i%S')
AND clos_dt &lt; date_format(adddate(now(), -1), '%Y%m%d%H%i%S')
</select>
<!-- =================================================================================== -->
<!-- ================================ close =========================================== -->
@ -619,8 +619,8 @@
, updt_dt = now()
, updusr = 'batch'
WHERE unity_sndng_detail_id = (SELECT tekmd.unity_sndng_detail_id
FROM tb_ens_kakao_my_doc tekmd
WHERE tekmd.document_binder_uuid = #{document_binder_uuid})
FROM tb_ens_kakao_my_doc tekmd
WHERE tekmd.document_binder_uuid = #{document_binder_uuid})
</update>
<!-- =================================================================================== -->
<!-- ================================ status ============================================= -->
@ -635,32 +635,32 @@
INSERT
INTO tb_cntc_sndng_result (
unity_sndng_detail_id, /* 통합 발송 상세 ID*/
sndng_se_code, /* 발송구분코드 */
signgu_code, /* 시군구코드 */
ffnlg_code, /* 과태료코드 */
sndng_se_code, /* 발송구분코드 */
signgu_code, /* 시군구코드 */
ffnlg_code, /* 과태료코드 */
sndng_result_sttus,
requst_dt, /* 송신(요청) 일시 */
inqire_dt, /* 수신(조회) 일시 */
readng_dt, /* 최초열람일시 */
error_cn, /* 에러내용 */
requst_dt, /* 송신(요청) 일시 */
inqire_dt, /* 수신(조회) 일시 */
readng_dt, /* 최초열람일시 */
error_cn, /* 에러내용 */
regist_dt,
register
) SELECT unity_sndng_detail_id /* 통합 발송 상세 ID*/
, #{sndngSeCode} /* 발송구분코드 - KAKAO-MY-DOC */
, signgu_code /* 시군구코드 */
, ffnlg_code /* 과태료코드 */
) SELECT unity_sndng_detail_id/* 통합 발송 상세 ID*/
, #{sndngSeCode} /* 발송구분코드 - KAKAO-MY-DOC */
, signgu_code /* 시군구코드 */
, ffnlg_code /* 과태료코드 */
, #{sndngResultSttus}
, from_unixtime(#{requstDt}, '%Y%m%d%H%i%s') /* 송신(요청) 일시 */
, from_unixtime(#{inqireDt}, '%Y%m%d%H%i%s') /* 수신(조회) 일시 */
, from_unixtime(#{readngDt}, '%Y%m%d%H%i%s') /* 최초열람일시 */
, #{errorCn} /* 에러내용 */
, #{errorCn} /* 에러내용 */
, now()
, 'batch'
FROM tb_ens_unity_sndng_detail
FROM tb_ens_unity_sndng_detail
WHERE unity_sndng_detail_id = #{unitySndngDetailId}
</insert>
<insert id="updateCntcSndngResult">
<insert id="updateCntcSndngResultByKkoMyDoc">
/** ens-mysql-mapper|updateCntcSndngResult-연계발송결과반영|julim */
UPDATE tb_cntc_sndng_result
SET sndng_result_sttus = #{sndngResultSttus}
@ -678,7 +678,7 @@
<!-- ================================ result ============================================= -->
<!-- =================================================================================== -->
<select id="selectMobilePage" resultType="kr.xit.biz.ens.model.EnsDTO$MobilePageManage">
<select id="selectKkoMobilePage" resultType="kr.xit.biz.ens.model.EnsDTO$MobilePageManage">
/** ens-mysql-mapper|selectMobilePage-모바일페이지콘텐트조회|julim */
SELECT tempm.sndng_detail_id
, tempm.sndng_se_code

Loading…
Cancel
Save