fix : 주문 > 주문 관리 > 전체주문조회 > 주문 상세 - 배송지 정보 개인통관부호 추가
This commit is contained in:
@@ -40,6 +40,9 @@ public class BOOrdrShippingVO extends AbstractVO {
|
|||||||
/** 받는자휴대폰번호 */
|
/** 받는자휴대폰번호 */
|
||||||
private String recpntMbtlnb;
|
private String recpntMbtlnb;
|
||||||
|
|
||||||
|
/** 개인통관부호 */
|
||||||
|
private String cstmclerCd;
|
||||||
|
|
||||||
/** 배송지역코드 */
|
/** 배송지역코드 */
|
||||||
private String dlvylcAreaCd;
|
private String dlvylcAreaCd;
|
||||||
|
|
||||||
|
|||||||
@@ -1061,6 +1061,14 @@ public class OrdrmngrController {
|
|||||||
throw new WnbtRestException(ValidateResultConverter.convert(bindingResult, gconeMessageSource));
|
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();
|
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||||
ordrShippingVO.setUpdusr(user.getUserInnb());
|
ordrShippingVO.setUpdusr(user.getUserInnb());
|
||||||
|
|
||||||
|
|||||||
@@ -2042,6 +2042,7 @@
|
|||||||
ELSE
|
ELSE
|
||||||
CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50))
|
CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50))
|
||||||
END AS RECPNT_MBTLNB
|
END AS RECPNT_MBTLNB
|
||||||
|
, FOS.CSTMCLER_CD
|
||||||
, FOS.DLVYLC_ZIP
|
, FOS.DLVYLC_ZIP
|
||||||
, FOS.DLVYLC_ADRES_DV_CD
|
, FOS.DLVYLC_ADRES_DV_CD
|
||||||
, CASE WHEN FOS.DLVYLC_ADRES_DV_CD = '01'
|
, CASE WHEN FOS.DLVYLC_ADRES_DV_CD = '01'
|
||||||
@@ -2391,6 +2392,9 @@
|
|||||||
SET FOS.RECPNT_NM = #{recpntNm}
|
SET FOS.RECPNT_NM = #{recpntNm}
|
||||||
, FOS.RECPNT_TELNB = HEX(AES_ENCRYPT(REPLACE(#{recpntTelnb}, '-', ''), '1df5be2f7e90ae36'))
|
, FOS.RECPNT_TELNB = HEX(AES_ENCRYPT(REPLACE(#{recpntTelnb}, '-', ''), '1df5be2f7e90ae36'))
|
||||||
, FOS.RECPNT_MBTLNB = HEX(AES_ENCRYPT(REPLACE(#{recpntMbtlnb}, '-', ''), '1df5be2f7e90ae36'))
|
, FOS.RECPNT_MBTLNB = HEX(AES_ENCRYPT(REPLACE(#{recpntMbtlnb}, '-', ''), '1df5be2f7e90ae36'))
|
||||||
|
<if test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(cstmclerCd)">
|
||||||
|
, FOS.CSTMCLER_CD = #{cstmclerCd}
|
||||||
|
</if>
|
||||||
, FOS.DLVYLC_ZIP = #{dlvylcZip}
|
, FOS.DLVYLC_ZIP = #{dlvylcZip}
|
||||||
, FOS.DLVYLC_ADRES_DV_CD = #{dlvylcAdresDvCd}
|
, FOS.DLVYLC_ADRES_DV_CD = #{dlvylcAdresDvCd}
|
||||||
, FOS.DLVYLC_LNB_ADRES = #{dlvylcLnbAdres}
|
, FOS.DLVYLC_LNB_ADRES = #{dlvylcLnbAdres}
|
||||||
|
|||||||
@@ -1518,7 +1518,10 @@
|
|||||||
$("#overlay").fadeOut();
|
$("#overlay").fadeOut();
|
||||||
|
|
||||||
if (!data.responseJSON.resBody.message) {
|
if (!data.responseJSON.resBody.message) {
|
||||||
alert('<spring:message code="error.internal-server"/>');
|
if(!data.responseJSON.resBody.result)
|
||||||
|
alert('<spring:message code="error.internal-server"/>');
|
||||||
|
else
|
||||||
|
alert(data.responseJSON.resBody.result);
|
||||||
} else {
|
} else {
|
||||||
if (fn_check_json(data.responseJSON.resBody.message)) {
|
if (fn_check_json(data.responseJSON.resBody.message)) {
|
||||||
const errorObject = JSON.parse(data.responseJSON.resBody.message);
|
const errorObject = JSON.parse(data.responseJSON.resBody.message);
|
||||||
|
|||||||
@@ -63,7 +63,9 @@
|
|||||||
<col style="width: auto;">
|
<col style="width: auto;">
|
||||||
<col style="width: auto;">
|
<col style="width: auto;">
|
||||||
<col style="width: auto;">
|
<col style="width: auto;">
|
||||||
<col style="width: 40%;">
|
<col style="width: auto;">
|
||||||
|
<col style="width: auto;">
|
||||||
|
<col style="width: 20%;">
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -103,6 +105,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
<th class="text-right">개인통관부호</th>
|
||||||
|
<td>
|
||||||
|
<div class="td-inner">
|
||||||
|
<input type="text" class="input-text" name="cstmclerCd" id="cstmclerCd" value="${orderShipping.cstmclerCd}" maxlength="13" placeholder="P로 시작하는 13자리 부호를 입력하세요"/>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user