From ec0e259fa601e72734aa3c11ad6e345012a07651 Mon Sep 17 00:00:00 2001 From: kjh Date: Tue, 10 Sep 2024 13:59:50 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20curStatCd=20NULL=20=EC=B2=98=EB=A6=AC=20?= =?UTF-8?q?=EB=A1=A4=EB=B0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repository/IntgrnSendDetailRepositoryImpl.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/cokr/xit/ens/modules/common/ctgy/intgrnnoti/domain/repository/IntgrnSendDetailRepositoryImpl.java b/src/main/java/cokr/xit/ens/modules/common/ctgy/intgrnnoti/domain/repository/IntgrnSendDetailRepositoryImpl.java index ca2d210..842c474 100644 --- a/src/main/java/cokr/xit/ens/modules/common/ctgy/intgrnnoti/domain/repository/IntgrnSendDetailRepositoryImpl.java +++ b/src/main/java/cokr/xit/ens/modules/common/ctgy/intgrnnoti/domain/repository/IntgrnSendDetailRepositoryImpl.java @@ -48,14 +48,8 @@ public class IntgrnSendDetailRepositoryImpl implements IntgrnSendDetailRepositor @Override public void modifyDetailStatCdByIntgrnDetailStatVO(List list) { list.forEach(data -> { - // FIXME: 카카오톡 추가 : null 처리 - IntgrnDtlStatCd intgrnDtlStatCd = CmmnUtil.isEmpty(data.getCurStatCd()) ? - IntgrnDtlStatCd.UNKNOWN : - (IntgrnDtlStatCd.ACPT_CMPLT.equals(data.getCurStatCd().getIntgrnDtlStatCd()) ? - (CmmnUtil.isEmpty(data.getMastErrorCode()) ? data.getCurStatCd().getIntgrnDtlStatCd() : IntgrnDtlStatCd.FAIL) - : data.getCurStatCd().getIntgrnDtlStatCd()); query.update(intgrnSendDetail) - .set(intgrnSendDetail.curStatCd, intgrnDtlStatCd) + .set(intgrnSendDetail.curStatCd, IntgrnDtlStatCd.ACPT_CMPLT.equals(data.getCurStatCd().getIntgrnDtlStatCd()) ? (CmmnUtil.isEmpty(data.getMastErrorCode()) ? data.getCurStatCd().getIntgrnDtlStatCd() : IntgrnDtlStatCd.FAIL) : data.getCurStatCd().getIntgrnDtlStatCd()) .set(intgrnSendDetail.docSentDt, data.getDocSentDt()) .set(intgrnSendDetail.docReceivedDt, data.getDocReceivedDt()) .set(intgrnSendDetail.docAuthFrstDt, data.getDocAuthFrstDt()) @@ -65,7 +59,7 @@ public class IntgrnSendDetailRepositoryImpl implements IntgrnSendDetailRepositor .set(intgrnSendDetail.error.errorCode, data.getMastErrorCode() == null && data.getErrorCode() == null ? null : String.format("[M]%s. [D]%s", data.getMastErrorCode(), data.getErrorCode())) .set(intgrnSendDetail.error.errorMessage, data.getMastErrorCode() == null && data.getErrorCode() == null ? null : String.format("[M]%s. [D]%s", data.getMastErrorMessage(), data.getErrorMessage())) // FIXME: 카카오톡 추가 : 변경일시 추가 - .set(intgrnSendDetail.lastUpdtDt, LocalDateTime.now()) + // .set(intgrnSendDetail.lastUpdtDt, LocalDateTime.now()) .where(intgrnSendDetail.intSendDetailId.eq(data.getIntSendDetailId())) .execute(); }