diff --git a/src/main/java/cokr/xit/fims/wpm/WoopyonMoa.java b/src/main/java/cokr/xit/fims/wpm/WoopyonMoa.java index 4132766e..db766807 100644 --- a/src/main/java/cokr/xit/fims/wpm/WoopyonMoa.java +++ b/src/main/java/cokr/xit/fims/wpm/WoopyonMoa.java @@ -161,7 +161,8 @@ public class WoopyonMoa extends AbstractObject { public void update(SndngDtl sndngDtl) { sndngDtl.setRgNo(ifEmpty(registeredNo, registrationNo)); // 등기번호 - sndngDtl.setDlvrYmd(blankIfEmpty(deliveryDate).replace("-", "")); // 배달일 + String dlvrYmd = blankIfEmpty(deliveryDate).replace("-", ""); + sndngDtl.setDlvrYmd(dlvrYmd.length() > 8 ? dlvrYmd.substring(0, 8) : dlvrYmd); // 배달일 sndngDtl.setActlRcpnNm(recipient); // 실제 수령인 sndngDtl.setRcpnRelNm(recipientRelation); // 수령인 관계명 setUndelivered(sndngDtl); // 미배달 사유