diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/mapper/IKkoTalkMapper.java b/src/main/java/cokr/xit/ens/modules/kkotalk/mapper/IKkoTalkMapper.java index 54a834d..d7cf03b 100644 --- a/src/main/java/cokr/xit/ens/modules/kkotalk/mapper/IKkoTalkMapper.java +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/mapper/IKkoTalkMapper.java @@ -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.*; /** *
@@ -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); ListfindAllBySendMastId(Long sendMastId); diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkMaker.java b/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkMaker.java index 30b4db9..19a8170 100644 --- a/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkMaker.java +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkMaker.java @@ -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(); diff --git a/src/main/resources/mybatis-mapper/modules/iup-kkotalk-mapper.xml b/src/main/resources/mybatis-mapper/modules/iup-kkotalk-mapper.xml index 1235d17..2b49bee 100644 --- a/src/main/resources/mybatis-mapper/modules/iup-kkotalk-mapper.xml +++ b/src/main/resources/mybatis-mapper/modules/iup-kkotalk-mapper.xml @@ -55,6 +55,33 @@ ) + + /** 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} + +