From 5bd23444bd7ce0daf9f7329bec273a657dbedfc0 Mon Sep 17 00:00:00 2001 From: kjh Date: Mon, 9 Sep 2024 11:59:48 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20PostSeCd=20kkoTalk=20=EC=9C=BC=EB=A1=9C?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ens/modules/kkotalk/service/KkoTalkService.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/service/KkoTalkService.java b/src/main/java/cokr/xit/ens/modules/kkotalk/service/KkoTalkService.java index 95036e7..72ff823 100644 --- a/src/main/java/cokr/xit/ens/modules/kkotalk/service/KkoTalkService.java +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/service/KkoTalkService.java @@ -82,7 +82,7 @@ public class KkoTalkService { SendMast sendMast = sendMastRepository.findById(sendMastId) .orElseThrow(() -> new EnsException(EnsErrCd.SEND404, "일치하는 자료가 없습니다.")); if (!PostSeCd.kkoTalk.equals(sendMast.getPostSe())) - throw new EnsException(EnsErrCd.SEND404, String.format("%s 자료가 아닙니다.", PostSeCd.kkoMydoc.getCodeNm())); + throw new EnsException(EnsErrCd.SEND404, String.format("%s 자료가 아닙니다.", PostSeCd.kkoTalk.getCodeNm())); if (!(StatCd.accept.equals(sendMast.getStatCd()) || StatCd.makefail.equals(sendMast.getStatCd()))) throw new EnsException(EnsErrCd.SEND404, "접수/제작실패(accept/makefail) 단계가 아닙니다."); @@ -106,7 +106,7 @@ public class KkoTalkService { */ @Transactional(propagation = Propagation.SUPPORTS) public EnsResponseVO makeAll() { - List sendMastIds = sendMastRepository.findAllByPostSeAndStatCdIn(PostSeCd.kkoMydoc, Arrays.asList(StatCd.accept)) + List sendMastIds = sendMastRepository.findAllByPostSeAndStatCdIn(PostSeCd.kkoTalk, Arrays.asList(StatCd.accept)) .stream() .map(row -> row.getSendMastId()) .collect(Collectors.toList()); @@ -175,8 +175,8 @@ public class KkoTalkService { try { SendMast sendMast = sendMastRepository.findById(sendMastId) .orElseThrow(() -> new EnsException(EnsErrCd.SEND404, "일치하는 자료가 없습니다.")); - if (!PostSeCd.kkoMydoc.equals(sendMast.getPostSe())) - throw new EnsException(EnsErrCd.SEND404, String.format("%s 자료가 아닙니다.", PostSeCd.kkoMydoc.getCodeNm())); + if (!PostSeCd.kkoTalk.equals(sendMast.getPostSe())) + throw new EnsException(EnsErrCd.SEND404, String.format("%s 자료가 아닙니다.", PostSeCd.kkoTalk.getCodeNm())); if (!StatCd.makeok.equals(sendMast.getStatCd())) throw new EnsException(EnsErrCd.SEND404, "제작성공(makeok) 단계가 아닙니다."); } catch (EnsException e) { @@ -201,7 +201,7 @@ public class KkoTalkService { */ @Transactional(propagation = Propagation.SUPPORTS) public EnsResponseVO sendBulkAll() { - List sendMastIds = sendMastRepository.findAllByPostSeAndStatCdInAndSendDtBefore(PostSeCd.kkoMydoc, Arrays.asList(StatCd.makeok), LocalDateTime.now()) + List sendMastIds = sendMastRepository.findAllByPostSeAndStatCdInAndSendDtBefore(PostSeCd.kkoTalk, Arrays.asList(StatCd.makeok), LocalDateTime.now()) .stream() .map(row -> row.getSendMastId()) .collect(Collectors.toList());