fix: curStatCd NULL 처리 롤백

main
kjh 2 months ago
parent cce7157f90
commit ec0e259fa6

@ -48,14 +48,8 @@ public class IntgrnSendDetailRepositoryImpl implements IntgrnSendDetailRepositor
@Override @Override
public void modifyDetailStatCdByIntgrnDetailStatVO(List<IntgrnDetailStatVO> list) { public void modifyDetailStatCdByIntgrnDetailStatVO(List<IntgrnDetailStatVO> list) {
list.forEach(data -> { 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) 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.docSentDt, data.getDocSentDt())
.set(intgrnSendDetail.docReceivedDt, data.getDocReceivedDt()) .set(intgrnSendDetail.docReceivedDt, data.getDocReceivedDt())
.set(intgrnSendDetail.docAuthFrstDt, data.getDocAuthFrstDt()) .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.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())) .set(intgrnSendDetail.error.errorMessage, data.getMastErrorCode() == null && data.getErrorCode() == null ? null : String.format("[M]%s. [D]%s", data.getMastErrorMessage(), data.getErrorMessage()))
// FIXME: 카카오톡 추가 : 변경일시 추가 // FIXME: 카카오톡 추가 : 변경일시 추가
.set(intgrnSendDetail.lastUpdtDt, LocalDateTime.now()) // .set(intgrnSendDetail.lastUpdtDt, LocalDateTime.now())
.where(intgrnSendDetail.intSendDetailId.eq(data.getIntSendDetailId())) .where(intgrnSendDetail.intSendDetailId.eq(data.getIntSendDetailId()))
.execute(); .execute();
} }

Loading…
Cancel
Save