fix : 주문 > 주문 관리 > 전체주문조회 > 주문 상세 - 배송지 정보 개인통관부호 추가
This commit is contained in:
@@ -40,6 +40,9 @@ public class BOOrdrShippingVO extends AbstractVO {
|
||||
/** 받는자휴대폰번호 */
|
||||
private String recpntMbtlnb;
|
||||
|
||||
/** 개인통관부호 */
|
||||
private String cstmclerCd;
|
||||
|
||||
/** 배송지역코드 */
|
||||
private String dlvylcAreaCd;
|
||||
|
||||
|
||||
@@ -1061,6 +1061,14 @@ public class OrdrmngrController {
|
||||
throw new WnbtRestException(ValidateResultConverter.convert(bindingResult, gconeMessageSource));
|
||||
}
|
||||
|
||||
String cstmclerCd = ordrShippingVO.getCstmclerCd();
|
||||
String cstmclerCdReg = "^P\\d{12}$";
|
||||
if (cstmclerCd == null || cstmclerCd.trim().isEmpty()) {
|
||||
throw new WnbtRestException("개인통관번호은(는) 필수 입력값입니다.");
|
||||
}else if (!cstmclerCd.matches(cstmclerCdReg)) {
|
||||
throw new WnbtRestException("개인통관번호는 P로 시작하는 13자리 부호만 입력할 수 있습니다.");
|
||||
}
|
||||
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
ordrShippingVO.setUpdusr(user.getUserInnb());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user