refactor: docs 상세 기술

메소드 순서 변경
dev
gitea-관리자 1 year ago
parent 004c676da6
commit 642c67582a

@ -32,37 +32,51 @@ public interface IEnsBatchMapper {
// accept
//----------------------------------------------------------------------
/**
* <pre>
*
* @param t
* - tb_cntc_sndng_mastr, tb_ens_tmplat_manage
* @param t T
* @return List<EnsDTO.SndngMssageParam>
* </pre>
*/
<T> List<EnsDTO.SndngMssageParam> selectAcceptTgts(final T t);
/**
* <pre>
*
* @param t
* - tb_cntc_sndng_mastr, tb_cntc_sndng_detail
* @param t T
* @return List<EnsDTO.SndngMssageParam>
* </pre>
*/
<T> List<EnsDTO.sndngVali> selectAcceptVali(final T t);
/**
* <pre>
*
* - tb_ens_unity_sndng_mastr
* @param t status
* @return int
* </pre>
*/
<T> int insertUnitySndngMst(final T t);
/**
* <pre>
*
* - tb_ens_unity_sndng_detail
* @param t status
* @return int
* </pre>
*/
<T> int insertUnitySndngDtls(final T t);
/**
* <pre>
*
* - tb_cntc_sndng_mastr : sndng_process_sttus
* @param t status, newStatus
* @return int
* </pre>
*/
<T> int updateProcessSttusCntcSndngMst(final T t);
//----------------------------------------------------------------------
@ -73,15 +87,18 @@ public interface IEnsBatchMapper {
// make
//----------------------------------------------------------------------
/**
* <pre>
*
* @param t
* - tb_ens_unity_sndng_mastr
* @param t T
* @return List<EnsDTO.SndngMssageParam>
* </pre>
*/
<T> List<EnsDTO.SndngMssageParam> selectMakeTgts(final T t);
/**
* 2
* @param t
* @param t T
* @return int
*/
<T> int selectSendOkTgts(final T t);
@ -144,9 +161,13 @@ public interface IEnsBatchMapper {
// send
//----------------------------------------------------------------------
/**
*
* @param t
* <pre>
*
* - tb_ens_sndng_mastr, tb_ens_unity_sndng_mastr
* - sndng_process_sttus : make-ok
* @param t T
* @return List<EnsDTO.SndngMssageParam>
* </pre>
*/
<T> List<EnsDTO.SndngMssageParam> selectSendBulkTgts(final T t);

@ -100,8 +100,14 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
/**
* <pre>
* accept()
* - 'accept'
* - : ,
* - tb_ens_unity_sndng_mastr
* - tb_ens_unity_sndng_detail
* 'accept-ok'
* - : 'accept-fail'
*
* 1. : (accept)
* 1. : (accept)
* -> {@link IEnsBatchMapper#selectAcceptTgts selectAcceptTgts}
* - tb_cntc_sndng_mastr, tb_ens_tmplat_manage
*
@ -180,7 +186,13 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
/**
* <pre>
* make()
* make() -
* - 'accept-ok', 'sending1', 'sending2'
* - 'sending1,2' 2,3(sndng_dt_2,3)
* - : , ( )
* , 'make-ok'
* - : , 'make-fail1,2,3'
*
* 1.
* - (accept-ok)
* - 1, 2 (sending1, sending2)
@ -251,10 +263,18 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
}
/**
* () send bulks
* <pre>
* () send bulks - send
* - 'make-ok'
* - : ( )
* , , - 'send-ok'
* - : , , 'send-fail1,2,3'
*
* 1. : {@link IEnsBatchMapper#selectSendBulkTgts selectSendBulkTgts}
* - | E-GREEN | SMS 1. / 2. send()
*
* @param reqDTO BatchEnsRequest
* </pre>
*/
@Override
@Transactional
@ -269,8 +289,11 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
MDC.put("sndngMastrId", tgtDTO.getSndngMastrId());
MDC.put(SNDNG_PROCESS_STTUS, "send-fail" + tgtDTO.getTrySeq());
String[] tryVal = {Checks.checkVal(tgtDTO.getTry1(), ""),
Checks.checkVal(tgtDTO.getTry2(), ""), Checks.checkVal(tgtDTO.getTry3(), "")};
String[] tryVal = {
Checks.checkVal(tgtDTO.getTry1(), ""),
Checks.checkVal(tgtDTO.getTry2(), ""),
Checks.checkVal(tgtDTO.getTry3(), "")
};
// 마스터 상태 변경값을 파라메터에서 받은 상태값으로 set
tgtDTO.setNewSndngProcessSttus(reqDTO.getSndngProcessSttus());

@ -166,7 +166,8 @@
<insert id="insertSndngMst">
/** ens-mysql-mapper|insertSndngMst-발송마스터 생성|julim */
<selectKey keyProperty="sndngMastrId" resultType="string" order="BEFORE">
SELECT concat(date_format(now(), '%Y%m%d'), LPAD(NEXTVAL(tb_ens_sndng_mastr_seq), 12, '0')) from dual
SELECT concat(date_format(now(), '%Y%m%d'), LPAD(NEXTVAL(tb_ens_sndng_mastr_seq), 12, '0'))
FROM dual
</selectKey>
INSERT
INTO tb_ens_sndng_mastr (
@ -207,12 +208,12 @@
FROM tb_ens_unity_sndng_mastr teusm
WHERE teusm.unity_sndng_mastr_id = #{unitySndngMastrId}
AND teusm.sndng_process_sttus = #{sndngProcessSttus}
</insert>
</insert>
<insert id="insertKakaoMyDocs">
/** ens-mysql-mapper|insertKakaoMyDocs-카카오내문서함 생성|julim */
INSERT
INTO tb_ens_kakao_my_doc (
<insert id="insertKakaoMyDocs">
/** ens-mysql-mapper|insertKakaoMyDocs-카카오내문서함 생성|julim */
INSERT
INTO tb_ens_kakao_my_doc (
sndng_detail_id, /* 발송상세ID */
unity_sndng_detail_id, /* 통합발송상세ID */
sndng_mastr_id, /* 발송마스터ID */
@ -226,17 +227,17 @@ INTO tb_ens_kakao_my_doc (
recv_phone_number, /* 받는이 전화번호 */
recv_name, /* 받는이 이름 */
recv_birthday, /* 받는이 생년월일 */
recv_is_required_verify_name, /* 성명검증옵션 */
recv_is_required_verify_name,/* 성명검증옵션 */
prop_link, /* 모바일페이지 URL */
prop_payload,
prop_message,
prop_cs_number, /* 고객센터 전화번호 */
prop_cs_name, /* 고객센터 명 */
-- external_document_uuid, /* 외부문서 식별번호 */
-- external_document_uuid,/* 외부문서 식별번호 */
regist_dt,
register
)
SELECT LPAD(NEXTVAL(sndng_detail_id_seq), 20, '0')
)
SELECT LPAD(NEXTVAL(sndng_detail_id_seq), 20, '0')
, teusd.unity_sndng_detail_id
, #{sndngMastrId}
, teusm.signgu_code
@ -259,7 +260,7 @@ SELECT LPAD(NEXTVAL(sndng_detail_id_seq), 20, '0')
-- , null
, now()
, 'batch'
FROM tb_ens_unity_sndng_mastr teusm
FROM tb_ens_unity_sndng_mastr teusm
LEFT JOIN tb_ens_tmplat_manage tetm
ON teusm.tmplat_id = tetm.tmplat_id
LEFT JOIN tb_ens_unity_sndng_detail teusd
@ -410,7 +411,7 @@ FROM tb_ens_unity_sndng_mastr teusm
<!-- ================================ send ============================================= -->
<!-- =================================================================================== -->
<select id="selectSendBulkTgts" resultType="kr.xit.biz.ens.model.EnsDTO$SndngMssageParam">
/** ens-mysql-mapper|selectSendBulkTgts-통합발송 대상 조회|julim */
/** ens-mysql-mapper|selectSendBulkTgts-발송 대상 조회|julim */
SELECT tesm.sndng_mastr_id
, tesm.unity_sndng_mastr_id
, tesm.tmplat_id

Loading…
Cancel
Save