feat: 카카오톡 추가 반영 - accept

main
Jonguk. Lim 2 months ago
parent b1b85e6786
commit 14d7a58c37

@ -1,13 +1,12 @@
package cokr.xit.ens.modules.kkotalk.mapper;
import java.util.List;
import java.util.Optional;
import java.util.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.*;
import cokr.xit.ens.modules.common.domain.SendMast;
import cokr.xit.ens.modules.kkomydoc.domain.SendDetailKkoMydoc;
import cokr.xit.ens.modules.kkotalk.model.KkotalkDTO;
import cokr.xit.ens.modules.common.domain.*;
import cokr.xit.ens.modules.kkomydoc.domain.*;
import cokr.xit.ens.modules.kkotalk.model.*;
/**
* <pre>
@ -27,6 +26,7 @@ import cokr.xit.ens.modules.kkotalk.model.KkotalkDTO;
@Mapper
public interface IKkoTalkMapper {
void saveSndDtlKkoTalk(KkotalkDTO.SendDetailKkoTalkDTO sendDetailKkoTalk);
void updateSndDtlKkoTalk(KkotalkDTO.SendDetailKkoTalkDTO sendDetailKkoTalk);
List<KkotalkDTO.SendDetailKkoTalkDTO> findAllBySendMastId(Long sendMastId);

@ -150,7 +150,7 @@ public class KkoTalkMaker extends MakeProcTemplate {
})
.reduce(Integer::sum);
sendDetails.forEach(kkoTalkMapper::updateSndDtlKkoTalk);
if (cntSuccess.get() > 0)
respVO = EnsResponseVO.okBuilder().resultInfo(String.format("총 %d건 중 %d건 제작 성공. [ sendMastId %s ]", sendDetails.size(), cntSuccess.get(), sendMastId)).build();

@ -55,6 +55,33 @@
)
</insert>
<update id="updateSndDtlKkoTalk" parameterType="cokr.xit.ens.modules.kkotalk.model.KkotalkDTO$SendDetailKkoTalkDTO">
/** iup-kkotalk-mapper|updateSndDtlKkoTalk-카카오톡발송상세변경|julim */
UPDATE ens_snd_dtl_kko_talk
SET title = #{title}
, hash = #{hash}
, guide = #{guide}
, payload = #{payload}
, use_non_personalized_noti = #{useNonPersonalizedNotification}
, ci = #{ci}
, phone_number = #{phoneNumber}
, name = #{name}
, birthday = #{birthday}
, external_id = #{externalId}
, error_code = #{errorCode}
, error_message = #{errorMessage}
, last_updt_dt = sysdate
WHERE send_detail_id = #{sendDetailId}
</update>
<!--
, link = #{link}
, read_expires_at = #{readExpiresAt},
, review_expires_at = #{reviewExpiresAt}
, mk_jid = #{mkJid}
, mk_tmplt_msg_json_data = #{mkTmpltMsgJsonData}
, bill_uid = #{billUid}
, send_mast_id = #{sendMastId}
-->
<select id="findAllBySendMastId" parameterType="long" resultType="cokr.xit.ens.modules.kkotalk.model.KkotalkDTO$SendDetailKkoTalkDTO">
/** iup-kkotalk-mapper|findAllBySendMastId-카카오톡발송대상 조회|julim */
SELECT send_detail_id,

Loading…
Cancel
Save