배송그룹 수정
This commit is contained in:
@@ -151,11 +151,15 @@ public class SetupDlvygrpController {
|
||||
if(bindingResult.hasErrors()) {
|
||||
throw new WnbtRestException(ValidateResultConverter.convert(bindingResult, gconeMessageSource));
|
||||
}
|
||||
|
||||
// VO Param setting
|
||||
// 기본배송비 null 일때 0으로 기본값 셋팅
|
||||
if(StringUtil.isEmpty(dlvyGroup.getDftDlvyAmt())) {
|
||||
dlvyGroup.setDftDlvyAmt("0");
|
||||
}
|
||||
if(StringUtil.isEmpty(dlvyGroup.getDftDlvyAmt2())) {
|
||||
dlvyGroup.setDftDlvyAmt2("0");
|
||||
}
|
||||
// 금액조건 여부가 Null 이거나 N 일때, 금액값 기본값 셋팅
|
||||
if(dlvyGroup.getAmtCndUseAt() == null || dlvyGroup.getAmtCndUseAt().equals("N")) {
|
||||
dlvyGroup.setAmtCndAditAmt("0");
|
||||
@@ -164,6 +168,13 @@ public class SetupDlvygrpController {
|
||||
dlvyGroup.setAmtCndUseAt("N");
|
||||
}
|
||||
}
|
||||
if(dlvyGroup.getAmtCndUseAt2() == null || dlvyGroup.getAmtCndUseAt2().equals("N")) {
|
||||
dlvyGroup.setAmtCndAditAmt2("0");
|
||||
// 금액조건2 여부가 null 일 때 N으로 기본값 셋팅
|
||||
if(dlvyGroup.getAmtCndUseAt2() == null) {
|
||||
dlvyGroup.setAmtCndUseAt2("N");
|
||||
}
|
||||
}
|
||||
// 개수조건 여부가 Null 이거나 N 일때, 금액값 기본값 셋팅
|
||||
if(dlvyGroup.getCntCndUseAt() == null || dlvyGroup.getCntCndUseAt().equals("N")) {
|
||||
dlvyGroup.setCntCndAditAmt("0");
|
||||
@@ -172,6 +183,13 @@ public class SetupDlvygrpController {
|
||||
dlvyGroup.setCntCndUseAt("N");
|
||||
}
|
||||
}
|
||||
if(dlvyGroup.getCntCndUseAt2() == null || dlvyGroup.getCntCndUseAt2().equals("N")) {
|
||||
dlvyGroup.setCntCndAditAmt2("0");
|
||||
// 개수조건2 여부가 null 일 때 N으로 기본값 셋팅
|
||||
if(dlvyGroup.getCntCndUseAt2() == null){
|
||||
dlvyGroup.setCntCndUseAt2("N");
|
||||
}
|
||||
}
|
||||
// 묶음배송 여부가 Null 이거나 N 일때, 금액값 기본값 셋팅
|
||||
if(dlvyGroup.getBundleDlvyUseAt() == null || dlvyGroup.getBundleDlvyUseAt().equals("N")){
|
||||
dlvyGroup.setBundleDlvyCndAmt("0");
|
||||
@@ -180,23 +198,42 @@ public class SetupDlvygrpController {
|
||||
dlvyGroup.setBundleDlvyUseAt("N");
|
||||
}
|
||||
}
|
||||
if(dlvyGroup.getBundleDlvyUseAt2() == null || dlvyGroup.getBundleDlvyUseAt2().equals("N")){
|
||||
dlvyGroup.setBundleDlvyCndAmt2("0");
|
||||
// 묶음배송 여부가 null 일 때 N으로 기본값 셋팅
|
||||
if(dlvyGroup.getBundleDlvyUseAt2() == null) {
|
||||
dlvyGroup.setBundleDlvyUseAt2("N");
|
||||
}
|
||||
}
|
||||
// 배송권역 여부가 Null 이거나 N 일때, 금액값 기본값 셋팅
|
||||
if(dlvyGroup.getDlvyAreaAditAt().equals("N")) {
|
||||
dlvyGroup.setAreaAditDlvyAmt("0");
|
||||
}
|
||||
if(dlvyGroup.getDlvyAreaAditAt2().equals("N")) {
|
||||
dlvyGroup.setAreaAditDlvyAmt2("0");
|
||||
}
|
||||
// 반품배송비 편도 null 일때 0으로 기본값 셋팅
|
||||
if(StringUtil.isEmpty(dlvyGroup.getDftDlvyAmt())) {
|
||||
if(StringUtil.isEmpty(dlvyGroup.getReturnDlvyAmt())) {
|
||||
dlvyGroup.setReturnDlvyAmt("0");
|
||||
}
|
||||
if(StringUtil.isEmpty(dlvyGroup.getReturnDlvyAmt2())) {
|
||||
dlvyGroup.setReturnDlvyAmt2("0");
|
||||
}
|
||||
// 반품배송비 왕복 null 일때 0으로 기본값 셋팅
|
||||
if(StringUtil.isEmpty(dlvyGroup.getDftDlvyAmt())) {
|
||||
if(StringUtil.isEmpty(dlvyGroup.getExchngDlvyAmt())) {
|
||||
dlvyGroup.setExchngDlvyAmt("0");
|
||||
}
|
||||
if(StringUtil.isEmpty(dlvyGroup.getExchngDlvyAmt2())) {
|
||||
dlvyGroup.setExchngDlvyAmt2("0");
|
||||
}
|
||||
|
||||
//반품 배송비 왕복금액 적용여부 null 일 경우 N 처리
|
||||
if(StringUtil.isEmpty(dlvyGroup.getReturnDlvyApplcAt())) {
|
||||
dlvyGroup.setReturnDlvyApplcAt("N");
|
||||
}
|
||||
if(StringUtil.isEmpty(dlvyGroup.getReturnDlvyApplcAt2())) {
|
||||
dlvyGroup.setReturnDlvyApplcAt2("N");
|
||||
}
|
||||
// 숫자(금액&갯수) ',' 제거
|
||||
dlvyGroup.setDftDlvyAmt(StringUtil.removeCommaChar(dlvyGroup.getDftDlvyAmt()));
|
||||
dlvyGroup.setAmtCndAditAmt(StringUtil.removeCommaChar(dlvyGroup.getAmtCndAditAmt()));
|
||||
@@ -206,6 +243,14 @@ public class SetupDlvygrpController {
|
||||
dlvyGroup.setReturnDlvyAmt(StringUtil.removeCommaChar(dlvyGroup.getReturnDlvyAmt()));
|
||||
dlvyGroup.setExchngDlvyAmt(StringUtil.removeCommaChar(dlvyGroup.getExchngDlvyAmt()));
|
||||
|
||||
dlvyGroup.setDftDlvyAmt2(StringUtil.removeCommaChar(dlvyGroup.getDftDlvyAmt2()));
|
||||
dlvyGroup.setAmtCndAditAmt2(StringUtil.removeCommaChar(dlvyGroup.getAmtCndAditAmt2()));
|
||||
dlvyGroup.setCntCndAditAmt2(StringUtil.removeCommaChar(dlvyGroup.getCntCndAditAmt2()));
|
||||
dlvyGroup.setAreaAditDlvyAmt2(StringUtil.removeCommaChar(dlvyGroup.getAreaAditDlvyAmt2()));
|
||||
dlvyGroup.setBundleDlvyCndAmt2(StringUtil.removeCommaChar(dlvyGroup.getBundleDlvyCndAmt2()));
|
||||
dlvyGroup.setReturnDlvyAmt2(StringUtil.removeCommaChar(dlvyGroup.getReturnDlvyAmt2()));
|
||||
dlvyGroup.setExchngDlvyAmt2(StringUtil.removeCommaChar(dlvyGroup.getExchngDlvyAmt2()));
|
||||
|
||||
//사용자 정보 추출 및 적용
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
dlvyGroup.setRegusr(user.getUserInnb());
|
||||
@@ -369,6 +414,9 @@ public class SetupDlvygrpController {
|
||||
if(StringUtil.isEmpty(dlvyGroup.getDftDlvyAmt())) {
|
||||
dlvyGroup.setDftDlvyAmt("0");
|
||||
}
|
||||
if(StringUtil.isEmpty(dlvyGroup.getDftDlvyAmt2())) {
|
||||
dlvyGroup.setDftDlvyAmt2("0");
|
||||
}
|
||||
// 금액조건 여부가 Null 이거나 N 일때, 금액값 기본값 셋팅
|
||||
if(dlvyGroup.getAmtCndUseAt() == null || dlvyGroup.getAmtCndUseAt().equals("N")) {
|
||||
dlvyGroup.setAmtCndAditAmt("0");
|
||||
@@ -377,6 +425,13 @@ public class SetupDlvygrpController {
|
||||
dlvyGroup.setAmtCndUseAt("N");
|
||||
}
|
||||
}
|
||||
if(dlvyGroup.getAmtCndUseAt2() == null || dlvyGroup.getAmtCndUseAt2().equals("N")) {
|
||||
dlvyGroup.setAmtCndAditAmt2("0");
|
||||
// 금액조건2 여부가 null 일 때 N으로 기본값 셋팅
|
||||
if(dlvyGroup.getAmtCndUseAt2() == null) {
|
||||
dlvyGroup.setAmtCndUseAt2("N");
|
||||
}
|
||||
}
|
||||
// 개수조건 여부가 Null 이거나 N 일때, 금액값 기본값 셋팅
|
||||
if(dlvyGroup.getCntCndUseAt() == null || dlvyGroup.getCntCndUseAt().equals("N")) {
|
||||
dlvyGroup.setCntCndAditAmt("0");
|
||||
@@ -385,6 +440,13 @@ public class SetupDlvygrpController {
|
||||
dlvyGroup.setCntCndUseAt("N");
|
||||
}
|
||||
}
|
||||
if(dlvyGroup.getCntCndUseAt2() == null || dlvyGroup.getCntCndUseAt2().equals("N")) {
|
||||
dlvyGroup.setCntCndAditAmt2("0");
|
||||
// 개수조건2 여부가 null 일 때 N으로 기본값 셋팅
|
||||
if(dlvyGroup.getCntCndUseAt2() == null){
|
||||
dlvyGroup.setCntCndUseAt2("N");
|
||||
}
|
||||
}
|
||||
// 묶음배송 여부가 Null 이거나 N 일때, 금액값 기본값 셋팅
|
||||
if(dlvyGroup.getBundleDlvyUseAt() == null || dlvyGroup.getBundleDlvyUseAt().equals("N")){
|
||||
dlvyGroup.setBundleDlvyCndAmt("0");
|
||||
@@ -393,26 +455,43 @@ public class SetupDlvygrpController {
|
||||
dlvyGroup.setBundleDlvyUseAt("N");
|
||||
}
|
||||
}
|
||||
if(dlvyGroup.getBundleDlvyUseAt2() == null || dlvyGroup.getBundleDlvyUseAt2().equals("N")){
|
||||
dlvyGroup.setBundleDlvyCndAmt2("0");
|
||||
// 묶음배송 여부가 null 일 때 N으로 기본값 셋팅
|
||||
if(dlvyGroup.getBundleDlvyUseAt2() == null) {
|
||||
dlvyGroup.setBundleDlvyUseAt2("N");
|
||||
}
|
||||
}
|
||||
// 배송권역 여부가 Null 이거나 N 일때, 금액값 기본값 셋팅
|
||||
if(dlvyGroup.getDlvyAreaAditAt().equals("N")) {
|
||||
dlvyGroup.setAreaAditDlvyAmt("0");
|
||||
}
|
||||
|
||||
if(dlvyGroup.getDlvyAreaAditAt2().equals("N")) {
|
||||
dlvyGroup.setAreaAditDlvyAmt2("0");
|
||||
}
|
||||
// 반품배송비 편도 null 일때 0으로 기본값 셋팅
|
||||
if(StringUtil.isEmpty(dlvyGroup.getDftDlvyAmt())) {
|
||||
if(StringUtil.isEmpty(dlvyGroup.getReturnDlvyAmt())) {
|
||||
dlvyGroup.setReturnDlvyAmt("0");
|
||||
}
|
||||
if(StringUtil.isEmpty(dlvyGroup.getReturnDlvyAmt2())) {
|
||||
dlvyGroup.setReturnDlvyAmt2("0");
|
||||
}
|
||||
// 반품배송비 왕복 null 일때 0으로 기본값 셋팅
|
||||
if(StringUtil.isEmpty(dlvyGroup.getDftDlvyAmt())) {
|
||||
if(StringUtil.isEmpty(dlvyGroup.getExchngDlvyAmt())) {
|
||||
dlvyGroup.setExchngDlvyAmt("0");
|
||||
}
|
||||
|
||||
if(StringUtil.isEmpty(dlvyGroup.getExchngDlvyAmt2())) {
|
||||
dlvyGroup.setExchngDlvyAmt2("0");
|
||||
}
|
||||
//반품 배송비 왕복금액 적용여부 null 일 경우 N 처리
|
||||
if(StringUtil.isEmpty(dlvyGroup.getReturnDlvyApplcAt())) {
|
||||
dlvyGroup.setReturnDlvyApplcAt("N");
|
||||
}
|
||||
if(StringUtil.isEmpty(dlvyGroup.getReturnDlvyApplcAt2())) {
|
||||
dlvyGroup.setReturnDlvyApplcAt2("N");
|
||||
}
|
||||
|
||||
// 숫자(금액&갯수) , 제거
|
||||
// 숫자(금액&갯수) ',' 제거
|
||||
dlvyGroup.setDftDlvyAmt(StringUtil.removeCommaChar(dlvyGroup.getDftDlvyAmt()));
|
||||
dlvyGroup.setAmtCndAditAmt(StringUtil.removeCommaChar(dlvyGroup.getAmtCndAditAmt()));
|
||||
dlvyGroup.setCntCndAditAmt(StringUtil.removeCommaChar(dlvyGroup.getCntCndAditAmt()));
|
||||
@@ -421,6 +500,14 @@ public class SetupDlvygrpController {
|
||||
dlvyGroup.setReturnDlvyAmt(StringUtil.removeCommaChar(dlvyGroup.getReturnDlvyAmt()));
|
||||
dlvyGroup.setExchngDlvyAmt(StringUtil.removeCommaChar(dlvyGroup.getExchngDlvyAmt()));
|
||||
|
||||
dlvyGroup.setDftDlvyAmt2(StringUtil.removeCommaChar(dlvyGroup.getDftDlvyAmt2()));
|
||||
dlvyGroup.setAmtCndAditAmt2(StringUtil.removeCommaChar(dlvyGroup.getAmtCndAditAmt2()));
|
||||
dlvyGroup.setCntCndAditAmt2(StringUtil.removeCommaChar(dlvyGroup.getCntCndAditAmt2()));
|
||||
dlvyGroup.setAreaAditDlvyAmt2(StringUtil.removeCommaChar(dlvyGroup.getAreaAditDlvyAmt2()));
|
||||
dlvyGroup.setBundleDlvyCndAmt2(StringUtil.removeCommaChar(dlvyGroup.getBundleDlvyCndAmt2()));
|
||||
dlvyGroup.setReturnDlvyAmt2(StringUtil.removeCommaChar(dlvyGroup.getReturnDlvyAmt2()));
|
||||
dlvyGroup.setExchngDlvyAmt2(StringUtil.removeCommaChar(dlvyGroup.getExchngDlvyAmt2()));
|
||||
|
||||
//배송그룹 등록처리 결과 메시지(JSON) 처리
|
||||
//사용자 정보 추출 및 적용
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
|
||||
Reference in New Issue
Block a user