배송그룹 수정
This commit is contained in:
@@ -88,18 +88,21 @@ public interface BODlvygrpMapper {
|
||||
* @param dlvyGroup
|
||||
*/
|
||||
void updateBODlvyGroupRtnlc(BODlvygrpVO dlvyGroup);
|
||||
void updateBODlvyGroupRtnlc2(BODlvygrpVO dlvyGroup);
|
||||
|
||||
/**
|
||||
* 배송그룹 반송지 등록
|
||||
* @param dlvyGroup
|
||||
*/
|
||||
void insertBODlvyGroupAddress(BODlvygrpVO dlvyGroup);
|
||||
void insertBODlvyGroupAddress2(BODlvygrpVO dlvyGroup);
|
||||
|
||||
/**
|
||||
* 배송그룹 반송지 삭제 (Y -> N)
|
||||
* @param dlvyGroup
|
||||
*/
|
||||
void deleteBODlvyGroupRtnlc(BODlvygrpVO dlvyGroup);
|
||||
void deleteBODlvyGroupRtnlc2(BODlvygrpVO dlvyGroup);
|
||||
|
||||
/**
|
||||
* 배송 반송지 조회
|
||||
|
||||
@@ -76,9 +76,11 @@ public class BODlvygrpService {
|
||||
public Map<String, Object> insertBODlvyGroup(BODlvygrpVO dlvyGroup) {
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
try {
|
||||
|
||||
|
||||
// KR 반송지 등록
|
||||
mapper.insertBODlvyGroupAddress(dlvyGroup);
|
||||
// JP 반송지 등록
|
||||
mapper.insertBODlvyGroupAddress2(dlvyGroup);
|
||||
// 배송그룹 등록
|
||||
mapper.insertBODlvyGroup(dlvyGroup);
|
||||
message.put("dlvyGroupInnb", dlvyGroup.getDlvyGroupInnb());
|
||||
message.put("result", "success");
|
||||
@@ -113,6 +115,7 @@ public class BODlvygrpService {
|
||||
try {
|
||||
|
||||
mapper.updateBODlvyGroupRtnlc(dlvyGroup);
|
||||
mapper.updateBODlvyGroupRtnlc2(dlvyGroup);
|
||||
int result = mapper.updateBODlvyGroupDtl(dlvyGroup);
|
||||
message.put("result", "success");
|
||||
message.put("dlvyGroupInnb", dlvyGroup.getDlvyGroupInnb());
|
||||
@@ -137,7 +140,9 @@ public class BODlvygrpService {
|
||||
int goodsEa = mapper.isIncludeGoods(dlvyGroup);
|
||||
if(goodsEa < 1) {
|
||||
try {
|
||||
|
||||
dlvyGroup = mapper.selectBODlvyGroupDtlForm(dlvyGroup);
|
||||
mapper.deleteBODlvyGroupRtnlc(dlvyGroup);
|
||||
mapper.deleteBODlvyGroupRtnlc2(dlvyGroup);
|
||||
int result = mapper.deleteBODlvyGroup(dlvyGroup);
|
||||
message.put("result", "success");
|
||||
} catch (WnbtRestException wre){
|
||||
|
||||
@@ -73,12 +73,66 @@ public class BODlvygrpVO extends AbstractVO {
|
||||
private String rtnlcTelnb;
|
||||
|
||||
|
||||
/*반품배송비왕복금액적용여부*/
|
||||
/** 반품배송비왕복금액적용여부 */
|
||||
private String returnDlvyApplcAt;
|
||||
|
||||
/*반품배송비금액*/
|
||||
/** 반품배송비금액 */
|
||||
private String returnDlvyAmt;
|
||||
|
||||
/*왕복배송비금액*/
|
||||
/** 왕복배송비금액 */
|
||||
private String exchngDlvyAmt;
|
||||
|
||||
|
||||
/** 반송지2(JP) 고유번호 */
|
||||
private Integer rtnlcInnb2;
|
||||
|
||||
/** 반송지 우편번호2(JP) */
|
||||
private String rtnlcZip2;
|
||||
|
||||
/** 반송지 주소2(JP) */
|
||||
private String rtnlcAdres2;
|
||||
|
||||
/** 반송지 상세주소2(JP) */
|
||||
@Length(min=0, max=100, message = "반송지(JP상세주소)")
|
||||
private String rtnlcDtlAdres2;
|
||||
|
||||
/** 반송지 전화번호2(JP) */
|
||||
private String rtnlcTelnb2;
|
||||
|
||||
/** 기본배송비2(JP) */
|
||||
private String dftDlvyAmt2;
|
||||
|
||||
/** 금액조건2(JP) */
|
||||
private String amtCndUseAt2;
|
||||
|
||||
/** 금액조건 추가금액2(JP) */
|
||||
private String amtCndAditAmt2;
|
||||
|
||||
/** 개수조건2(JP) */
|
||||
private String cntCndUseAt2;
|
||||
|
||||
/** 개수조건 추가금액2(JP) */
|
||||
private String cntCndAditAmt2;
|
||||
|
||||
/** 배송지역추가여부2(JP) */
|
||||
private String dlvyAreaAditAt2;
|
||||
|
||||
/** 지역추가배송비2(JP) */
|
||||
private String areaAditDlvyAmt2;
|
||||
|
||||
/** 묶음배송 사용여부2(JP) */
|
||||
private String bundleDlvyUseAt2;
|
||||
|
||||
/** 묶음배송 조건금액2(JP) */
|
||||
private String bundleDlvyCndAmt2;
|
||||
|
||||
/** 반품배송비왕복금액적용여부2(JP) */
|
||||
private String returnDlvyApplcAt2;
|
||||
|
||||
/** 반품배송비금액2(JP) */
|
||||
private String returnDlvyAmt2;
|
||||
|
||||
/** 왕복배송비금액2(JP) */
|
||||
private String exchngDlvyAmt2;
|
||||
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -129,6 +129,19 @@
|
||||
,RETURN_DLVY_APPLC_AT
|
||||
,RETURN_DLVY_AMT
|
||||
,EXCHNG_DLVY_AMT
|
||||
,RTNLC_INNB2
|
||||
,DFT_DLVY_AMT2
|
||||
,AMT_CND_USE_AT2
|
||||
,AMT_CND_ADIT_AMT2
|
||||
,CNT_CND_USE_AT2
|
||||
,CNT_CND_ADIT_AMT2
|
||||
,DLVY_AREA_ADIT_AT2
|
||||
,AREA_ADIT_DLVY_AMT2
|
||||
,BUNDLE_DLVY_USE_AT2
|
||||
,BUNDLE_DLVY_CND_AMT2
|
||||
,RETURN_DLVY_APPLC_AT2
|
||||
,RETURN_DLVY_AMT2
|
||||
,EXCHNG_DLVY_AMT2
|
||||
,USE_AT
|
||||
,REGUSR
|
||||
,REGIST_DT
|
||||
@@ -154,6 +167,19 @@
|
||||
,#{returnDlvyApplcAt}
|
||||
,#{returnDlvyAmt}
|
||||
,#{exchngDlvyAmt}
|
||||
,#{rtnlcInnb2}
|
||||
,#{dftDlvyAmt2}
|
||||
,#{amtCndUseAt2}
|
||||
,#{amtCndAditAmt2}
|
||||
,#{cntCndUseAt2}
|
||||
,#{cntCndAditAmt2}
|
||||
,#{dlvyAreaAditAt2}
|
||||
,#{areaAditDlvyAmt2}
|
||||
,#{bundleDlvyUseAt2}
|
||||
,#{bundleDlvyCndAmt2}
|
||||
,#{returnDlvyApplcAt2}
|
||||
,#{returnDlvyAmt2}
|
||||
,#{exchngDlvyAmt2}
|
||||
,'Y'
|
||||
,#{regusr}
|
||||
,now()
|
||||
@@ -200,12 +226,50 @@
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!-- 배송 반송지 등록 -->
|
||||
<insert id="insertBODlvyGroupAddress2" parameterType="com.wb.domainserver.domain.gcone.setup.dlvygrp.vo.BODlvygrpVO">
|
||||
<selectKey keyProperty="rtnlcInnb2"
|
||||
resultType="java.lang.Integer"
|
||||
order="BEFORE">
|
||||
SELECT IFNULL(MAX(RTNLC_INNB),0) + 1 FROM GC_SHIPPING_ADDRESS WHERE SOPMAL_CD = #{sopmalCd}
|
||||
</selectKey>
|
||||
INSERT INTO GC_SHIPPING_ADDRESS
|
||||
(
|
||||
RTNLC_INNB
|
||||
, SOPMAL_CD
|
||||
, RTNLC_ZIP
|
||||
, RTNLC_ADRES
|
||||
, RTNLC_DTL_ADRES
|
||||
, RTNLC_TELNB
|
||||
, USE_AT
|
||||
, REGUSR
|
||||
, REGIST_DT
|
||||
, UPDUSR
|
||||
, UPDT_DT
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
#{rtnlcInnb2}
|
||||
, #{sopmalCd}
|
||||
, #{rtnlcZip2}
|
||||
, #{rtnlcAdres2}
|
||||
, #{rtnlcDtlAdres2}
|
||||
, #{rtnlcTelnb2}
|
||||
, 'Y'
|
||||
, #{regusr}
|
||||
, now()
|
||||
, #{regusr}
|
||||
, now()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!-- 배송그룹 정보 조회 -->
|
||||
<select id="selectBODlvyGroupDtlForm"
|
||||
parameterType="com.wb.domainserver.domain.gcone.setup.dlvygrp.vo.BODlvygrpVO"
|
||||
resultType="com.wb.domainserver.domain.gcone.setup.dlvygrp.vo.BODlvygrpVO">
|
||||
SELECT
|
||||
SG.DLVY_GROUP_INNB
|
||||
,SG.SOPMAL_CD
|
||||
,SG.DLVY_GROUP_DV_CD
|
||||
,SG.DLVY_GROUP_NM
|
||||
,SG.DFT_DLVY_AMT
|
||||
@@ -220,19 +284,41 @@
|
||||
,SG.RETURN_DLVY_APPLC_AT
|
||||
,SG.RETURN_DLVY_AMT
|
||||
,SG.EXCHNG_DLVY_AMT
|
||||
,SG.DFT_DLVY_AMT2
|
||||
,SG.AMT_CND_USE_AT2
|
||||
,SG.AMT_CND_ADIT_AMT2
|
||||
,SG.CNT_CND_USE_AT2
|
||||
,SG.CNT_CND_ADIT_AMT2
|
||||
,SG.DLVY_AREA_ADIT_AT2
|
||||
,SG.AREA_ADIT_DLVY_AMT2
|
||||
,SG.BUNDLE_DLVY_USE_AT2
|
||||
,SG.BUNDLE_DLVY_CND_AMT2
|
||||
,SG.RETURN_DLVY_APPLC_AT2
|
||||
,SG.RETURN_DLVY_AMT2
|
||||
,SG.EXCHNG_DLVY_AMT2
|
||||
,SG.RTNLC_INNB
|
||||
,SA.RTNLC_ZIP
|
||||
,SA.RTNLC_ADRES
|
||||
,SA.RTNLC_DTL_ADRES
|
||||
,SA.RTNLC_TELNB
|
||||
,SG.RTNLC_INNB2
|
||||
,SA1.RTNLC_ZIP
|
||||
,SA1.RTNLC_ADRES
|
||||
,SA1.RTNLC_DTL_ADRES
|
||||
,SA1.RTNLC_TELNB
|
||||
,SA2.RTNLC_ZIP AS RTNLC_ZIP2
|
||||
,SA2.RTNLC_ADRES AS RTNLC_ADRES2
|
||||
,SA2.RTNLC_DTL_ADRES AS RTNLC_DTL_ADRES2
|
||||
,SA2.RTNLC_TELNB AS RTNLC_TELNB2
|
||||
,SG.RETURN_DLVY_AMT
|
||||
,SG.EXCHNG_DLVY_AMT
|
||||
FROM GC_SHIPPING_GROUPING SG
|
||||
LEFT JOIN GC_SHIPPING_ADDRESS SA
|
||||
ON SG.RTNLC_INNB = SA.RTNLC_INNB
|
||||
AND SG.SOPMAL_CD = SA.SOPMAL_CD
|
||||
AND SG.USE_AT = 'Y'
|
||||
AND SA.USE_AT = 'Y'
|
||||
LEFT JOIN GC_SHIPPING_ADDRESS SA1
|
||||
ON SG.RTNLC_INNB = SA1.RTNLC_INNB
|
||||
AND SG.SOPMAL_CD = SA1.SOPMAL_CD
|
||||
AND SG.USE_AT = 'Y'
|
||||
AND SA1.USE_AT = 'Y'
|
||||
LEFT JOIN GC_SHIPPING_ADDRESS SA2
|
||||
ON SG.RTNLC_INNB2 = SA2.RTNLC_INNB
|
||||
AND SG.SOPMAL_CD = SA2.SOPMAL_CD
|
||||
AND SG.USE_AT = 'Y'
|
||||
AND SA2.USE_AT = 'Y'
|
||||
WHERE 1=1
|
||||
AND SG.SOPMAL_CD = #{sopmalCd}
|
||||
AND DLVY_GROUP_INNB = #{dlvyGroupInnb}
|
||||
@@ -257,6 +343,18 @@
|
||||
,RETURN_DLVY_APPLC_AT = #{returnDlvyApplcAt}
|
||||
,RETURN_DLVY_AMT = #{returnDlvyAmt}
|
||||
,EXCHNG_DLVY_AMT = #{exchngDlvyAmt}
|
||||
,DFT_DLVY_AMT2 = #{dftDlvyAmt2}
|
||||
,AMT_CND_USE_AT2 = #{amtCndUseAt2}
|
||||
,AMT_CND_ADIT_AMT2 = #{amtCndAditAmt2}
|
||||
,CNT_CND_USE_AT2 = #{cntCndUseAt2}
|
||||
,CNT_CND_ADIT_AMT2 = #{cntCndAditAmt2}
|
||||
,DLVY_AREA_ADIT_AT2 = #{dlvyAreaAditAt2}
|
||||
,AREA_ADIT_DLVY_AMT2 = #{areaAditDlvyAmt2}
|
||||
,BUNDLE_DLVY_USE_AT2 = #{bundleDlvyUseAt2}
|
||||
,BUNDLE_DLVY_CND_AMT2 = #{bundleDlvyCndAmt2}
|
||||
,RETURN_DLVY_APPLC_AT2 = #{returnDlvyApplcAt2}
|
||||
,RETURN_DLVY_AMT2 = #{returnDlvyAmt2}
|
||||
,EXCHNG_DLVY_AMT2 = #{exchngDlvyAmt2}
|
||||
,UPDUSR = #{updusr}
|
||||
,UPDT_DT = NOW()
|
||||
]]>
|
||||
@@ -278,11 +376,27 @@
|
||||
AND SOPMAL_CD = #{sopmalCd}
|
||||
</update>
|
||||
|
||||
<!-- 배송그룹 수정 -->
|
||||
<update id="updateBODlvyGroupRtnlc2"
|
||||
parameterType="com.wb.domainserver.domain.gcone.setup.dlvygrp.vo.BODlvygrpVO">
|
||||
UPDATE GC_SHIPPING_ADDRESS
|
||||
SET RTNLC_ZIP = #{rtnlcZip2}
|
||||
, RTNLC_ADRES = #{rtnlcAdres2}
|
||||
, RTNLC_DTL_ADRES = #{rtnlcDtlAdres2}
|
||||
, RTNLC_TELNB = #{rtnlcTelnb2}
|
||||
, UPDUSR = #{updusr}
|
||||
, UPDT_DT = NOW()
|
||||
WHERE 1=1
|
||||
AND RTNLC_INNB = #{rtnlcInnb2}
|
||||
AND SOPMAL_CD = #{sopmalCd}
|
||||
</update>
|
||||
|
||||
<!-- 배송그룹 삭제(사용여부 Update y > n) -->
|
||||
<update id="deleteBODlvyGroup" parameterType="com.wb.domainserver.domain.gcone.setup.dlvygrp.vo.BODlvygrpVO">
|
||||
<![CDATA[
|
||||
UPDATE GC_SHIPPING_GROUPING
|
||||
SET USE_AT = 'N'
|
||||
, UPDT_DT = NOW()
|
||||
]]>
|
||||
<include refid="selectDlvyKeyWhere"/>
|
||||
</update>
|
||||
@@ -291,10 +405,20 @@
|
||||
<update id="deleteBODlvyGroupRtnlc" parameterType="com.wb.domainserver.domain.gcone.setup.dlvygrp.vo.BODlvygrpVO">
|
||||
UPDATE GC_SHIPPING_ADDRESS
|
||||
SET USE_AT = 'N'
|
||||
, UPDT_DT = NOW()
|
||||
WHERE RTNLC_INNB = #{rtnlcInnb}
|
||||
AND SOPMAL_CD = #{sopmalCd}
|
||||
</update>
|
||||
|
||||
<!-- 배송그룹 삭제(사용여부 Update y > n) -->
|
||||
<update id="deleteBODlvyGroupRtnlc2" parameterType="com.wb.domainserver.domain.gcone.setup.dlvygrp.vo.BODlvygrpVO">
|
||||
UPDATE GC_SHIPPING_ADDRESS
|
||||
SET USE_AT = 'N'
|
||||
, UPDT_DT = NOW()
|
||||
WHERE RTNLC_INNB = #{rtnlcInnb2}
|
||||
AND SOPMAL_CD = #{sopmalCd}
|
||||
</update>
|
||||
|
||||
<!-- 배송그룹 고유키로 연결 상품의 갯수 검색 -->
|
||||
<select id="isIncludeGoods"
|
||||
parameterType="com.wb.domainserver.domain.gcone.setup.dlvygrp.vo.BODlvygrpVO"
|
||||
|
||||
@@ -22,6 +22,13 @@
|
||||
fn_check_BoxControl(amtCndUseAt,amtCndAditAmt);
|
||||
fn_check_BoxControl(cntCndUseAt,cntCndAditAmt);
|
||||
|
||||
const amtCndUseAt2 = document.querySelector('#amtCndUseAt2');
|
||||
const amtCndAditAmt2 = document.querySelector('#amtCndAditAmt2');
|
||||
const cntCndUseAt2 = document.querySelector('#cntCndUseAt2');
|
||||
const cntCndAditAmt2 = document.querySelector('#cntCndAditAmt2');
|
||||
fn_check_BoxControl(amtCndUseAt2,amtCndAditAmt2);
|
||||
fn_check_BoxControl(cntCndUseAt2,cntCndAditAmt2);
|
||||
|
||||
/** 묶음배송 체크박스 컨트롤 */
|
||||
const bundleDlvyY = document.querySelector('#bundleDlvyY');
|
||||
const bundleDlvyN = document.querySelector('#bundleDlvyN');
|
||||
@@ -29,16 +36,30 @@
|
||||
fn_click_bundleDlvy(bundleDlvyY, bundleDlvyCndAmt);
|
||||
fn_click_bundleDlvy(bundleDlvyN, bundleDlvyCndAmt);
|
||||
|
||||
const bundleDlvyY2 = document.querySelector('#bundleDlvyY2');
|
||||
const bundleDlvyN2 = document.querySelector('#bundleDlvyN2');
|
||||
const bundleDlvyCndAmt2 = document.querySelector('#bundleDlvyCndAmt2');
|
||||
fn_click_bundleDlvy(bundleDlvyY2, bundleDlvyCndAmt2);
|
||||
fn_click_bundleDlvy(bundleDlvyN2, bundleDlvyCndAmt2);
|
||||
|
||||
/** 배송권역 셀렉트박스 컨트롤 */
|
||||
const dlvyAreaAditAt1 = document.querySelector('#dlvyAreaAditAt');
|
||||
const areaAditDlvyAmt1 = document.querySelector('#areaAditDlvyAmt');
|
||||
fn_change_dlvyArea(dlvyAreaAditAt1, areaAditDlvyAmt1);
|
||||
|
||||
const dlvyAreaAditAt2 = document.querySelector('#dlvyAreaAditAt2');
|
||||
const areaAditDlvyAmt2 = document.querySelector('#areaAditDlvyAmt2');
|
||||
fn_change_dlvyArea(dlvyAreaAditAt2, areaAditDlvyAmt2);
|
||||
|
||||
//왕복 여부 체크박스 컨트롤
|
||||
const returnDlvyApplcAt = document.querySelector('#returnDlvyApplcAt');
|
||||
const exchngDlvyAmt = document.querySelector('#exchngDlvyAmt');
|
||||
const returnDlvyApplcAt = document.querySelector('#returnDlvyApplcAt');
|
||||
const exchngDlvyAmt = document.querySelector('#exchngDlvyAmt');
|
||||
fn_check_BoxControl(returnDlvyApplcAt,exchngDlvyAmt);
|
||||
|
||||
const returnDlvyApplcAt2 = document.querySelector('#returnDlvyApplcAt2');
|
||||
const exchngDlvyAmt2 = document.querySelector('#exchngDlvyAmt2');
|
||||
fn_check_BoxControl(returnDlvyApplcAt2,exchngDlvyAmt2);
|
||||
|
||||
if ($(".input-text.number").val() === '' || $(".input-text.number").val() == null) {
|
||||
$(".input-text.number").val('0');
|
||||
}
|
||||
@@ -59,14 +80,14 @@
|
||||
<h3 class="content-section__title">배송비</h3>
|
||||
<div class="table-wrapper">
|
||||
<table class="table">
|
||||
<caption>배송그룹 배송비</caption>
|
||||
<caption>배송그룹 배송비(KR)</caption>
|
||||
<colgroup>
|
||||
<col style="width: 12%;">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>기본 배송비</th>
|
||||
<th>기본 배송비(KR)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
@@ -80,18 +101,28 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>조건(다중선택가능)</th>
|
||||
<th>조건(다중선택가능)(KR)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="b-checkbox-container">
|
||||
<label class="b-checkbox checkbox">
|
||||
<input type="checkbox" id="amtCndUseAt" name="amtCndUseAt" value="Y" <c:if test="${ resultMap.dlvyGroup.amtCndUseAt eq 'Y' }">checked="checked"</c:if>>
|
||||
<input type="checkbox" id="amtCndUseAt" name="amtCndUseAt"
|
||||
<c:choose>
|
||||
<c:when test="${ resultMap.dlvyGroup.amtCndUseAt eq 'Y' }"> value="Y" </c:when>
|
||||
<c:otherwise> value="N" </c:otherwise>
|
||||
</c:choose>
|
||||
<c:if test="${ resultMap.dlvyGroup.amtCndUseAt eq 'Y' }">checked="checked"</c:if>>
|
||||
<span style="margin-right: 5px;" class="check"></span>
|
||||
<input type="text" class="input-text sm right number" <c:if test="${ resultMap.dlvyGroup.amtCndUseAt ne 'Y' }">disabled="disabled"</c:if> value="<fmt:formatNumber value='${resultMap.dlvyGroup.amtCndAditAmt}' pattern="#,###" />" title="금액 조건" id="amtCndAditAmt" name="amtCndAditAmt" maxlength="13">
|
||||
</label>
|
||||
<span class="control-label">${curUnit} 이상일 때 무료배송</span>
|
||||
<label class="b-checkbox checkbox">
|
||||
<input type="checkbox" id="cntCndUseAt" name="cntCndUseAt" value="Y" <c:if test="${ resultMap.dlvyGroup.cntCndUseAt eq 'Y' }">checked="checked"</c:if>>
|
||||
<input type="checkbox" id="cntCndUseAt" name="cntCndUseAt"
|
||||
<c:choose>
|
||||
<c:when test="${ resultMap.dlvyGroup.cntCndUseAt eq 'Y' }"> value="Y" </c:when>
|
||||
<c:otherwise> value="N" </c:otherwise>
|
||||
</c:choose>
|
||||
<c:if test="${ resultMap.dlvyGroup.cntCndUseAt eq 'Y' }">checked="checked"</c:if>>
|
||||
<span style="margin-right: 5px;" class="check"></span>
|
||||
<input type="text" class="input-text sm right number" <c:if test="${ resultMap.dlvyGroup.cntCndUseAt ne 'Y' }">disabled="disabled"</c:if> value="<fmt:formatNumber value='${resultMap.dlvyGroup.cntCndAditAmt}' pattern="#,###" />" title="구매 개수 조건" id="cntCndAditAmt" name="cntCndAditAmt" maxlength="13">
|
||||
</label>
|
||||
@@ -101,7 +132,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">묶음배송</th>
|
||||
<th rowspan="2">묶음배송(KR)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="custom-radio-container">
|
||||
@@ -144,7 +175,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">배송 권역</th>
|
||||
<th rowspan="2">배송 권역(KR)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="select-box">
|
||||
@@ -173,7 +204,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">반품배송비</th>
|
||||
<th rowspan="2">반품배송비(KR)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
@@ -184,7 +215,12 @@
|
||||
</div>
|
||||
<div class="b-checkbox-container">
|
||||
<label class="b-checkbox checkbox">
|
||||
<input type="checkbox" id="returnDlvyApplcAt" name="returnDlvyApplcAt" value="Y" <c:if test="${ resultMap.dlvyGroup.returnDlvyApplcAt eq 'Y' }">checked="checked"</c:if>>
|
||||
<input type="checkbox" id="returnDlvyApplcAt" name="returnDlvyApplcAt"
|
||||
<c:choose>
|
||||
<c:when test="${ resultMap.dlvyGroup.returnDlvyApplcAt eq 'Y' }"> value="Y" </c:when>
|
||||
<c:otherwise> value="N" </c:otherwise>
|
||||
</c:choose>
|
||||
<c:if test="${ resultMap.dlvyGroup.returnDlvyApplcAt eq 'Y' }">checked="checked"</c:if>>
|
||||
<span style="margin-right: 5px;" class="check"></span>
|
||||
</label>
|
||||
<span class="control-label">왕복 여부</span>
|
||||
@@ -205,4 +241,167 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="table-wrapper">
|
||||
<table class="table">
|
||||
<caption>배송그룹 배송비(JP)</caption>
|
||||
<colgroup>
|
||||
<col style="width: 12%;">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>기본 배송비(JP)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
<input type="text" class="input-text sm right number"
|
||||
value="<fmt:formatNumber value='${resultMap.dlvyGroup.dftDlvyAmt2}' pattern="#,###" />"
|
||||
title="기본배송비" name="dftDlvyAmt2" maxlength="13" >
|
||||
<span class="input-unit-text">${curUnit}</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>조건(다중선택가능)(JP)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="b-checkbox-container">
|
||||
<label class="b-checkbox checkbox">
|
||||
<input type="checkbox" id="amtCndUseAt2" name="amtCndUseAt2"
|
||||
<c:choose>
|
||||
<c:when test="${ resultMap.dlvyGroup.amtCndUseAt2 eq 'Y' }"> value="Y" </c:when>
|
||||
<c:otherwise> value="N" </c:otherwise>
|
||||
</c:choose>
|
||||
<c:if test="${ resultMap.dlvyGroup.amtCndUseAt2 eq 'Y' }">checked="checked"</c:if>>
|
||||
<span style="margin-right: 5px;" class="check"></span>
|
||||
<input type="text" class="input-text sm right number" <c:if test="${ resultMap.dlvyGroup.amtCndUseAt2 ne 'Y' }">disabled="disabled"</c:if> value="<fmt:formatNumber value='${resultMap.dlvyGroup.amtCndAditAmt2}' pattern="#,###" />" title="금액 조건" id="amtCndAditAmt2" name="amtCndAditAmt2" maxlength="13">
|
||||
</label>
|
||||
<span class="control-label">${curUnit} 이상일 때 무료배송</span>
|
||||
<label class="b-checkbox checkbox">
|
||||
<input type="checkbox" id="cntCndUseAt2" name="cntCndUseAt2"
|
||||
<c:choose>
|
||||
<c:when test="${ resultMap.dlvyGroup.cntCndUseAt2 eq 'Y' }"> value="Y" </c:when>
|
||||
<c:otherwise> value="N" </c:otherwise>
|
||||
</c:choose>
|
||||
<c:if test="${ resultMap.dlvyGroup.cntCndUseAt2 eq 'Y' }">checked="checked"</c:if>>
|
||||
<span style="margin-right: 5px;" class="check"></span>
|
||||
<input type="text" class="input-text sm right number" <c:if test="${ resultMap.dlvyGroup.cntCndUseAt2 ne 'Y' }">disabled="disabled"</c:if> value="<fmt:formatNumber value='${resultMap.dlvyGroup.cntCndAditAmt2}' pattern="#,###" />" title="구매 개수 조건" id="cntCndAditAmt2" name="cntCndAditAmt2" maxlength="13">
|
||||
</label>
|
||||
<span class="control-label">개 이상일 때 무료배송</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">묶음배송(JP)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="custom-radio-container">
|
||||
<div class="custom-radio">
|
||||
<input type="radio" id="bundleDlvyY2" name="bundleDlvyUseAt2" value="Y"
|
||||
<c:if test="${resultMap.dlvyGroup.bundleDlvyUseAt2 eq 'Y' }">checked="checked"</c:if> <c:if test="${empty resultMap.dlvyGroup.bundleDlvyUseAt2}">checked="checked"</c:if> >
|
||||
<label for="bundleDlvyY2">사용함</label>
|
||||
</div>
|
||||
<div class="custom-radio">
|
||||
<input type="radio" id="bundleDlvyN2" name="bundleDlvyUseAt2" value="N"
|
||||
<c:if test="${resultMap.dlvyGroup.bundleDlvyUseAt2 eq 'N' }">checked="checked"</c:if>>
|
||||
<label for="bundleDlvyN2">사용안함</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="td-inner vertical">
|
||||
<div class="input-container">
|
||||
<span class="mr-10">묶음배송 상품 금액 합이</span>
|
||||
<input type="text" class="input-text sm right number"
|
||||
<c:if test="${resultMap.dlvyGroup.bundleDlvyUseAt2 eq 'N' }">disabled="disabled"</c:if>
|
||||
value="<fmt:formatNumber value='${resultMap.dlvyGroup.bundleDlvyCndAmt2}' pattern="#,###" />"
|
||||
title="묶음배송 조건" id="bundleDlvyCndAmt2" name="bundleDlvyCndAmt2" maxlength="13">
|
||||
<span class="input-unit-text mr-8">${curUnit}</span>
|
||||
<span>이상일 때 무료배송</span>
|
||||
</div>
|
||||
<div class="gray-7">
|
||||
<p class="fyi">값을 1${curUnit} 이상 입력 하신 경우 설정이 가능 합니다.</p>
|
||||
<p class="fyi">묶음배송을 사용함으로 설정하신 상품의 경우에만 해당 조건이 적용됩니다.</p>
|
||||
<p class="fyi">묶음배송 상품이 아닌 경우, 상품별로 각각 배송비가 부과될 수 있습니다.</p>
|
||||
<p class="fyi">묶음배송 상품은 2개 이상 주문해야 무료배송 조건이 적용됩니다.</p>
|
||||
<p class="fyi">무료배송 처리된 묶음배송 상품이 있을 경우, 전체 묶음배송 상품이 무료배송 처리됩니다.
|
||||
</p>
|
||||
<p class="fyi">묶음배송 상품인 경우, 금액이 가장 높은 기본 배송비를 한 번만 부과합니다.</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">배송 권역(JP)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="select-box">
|
||||
<select title="배송권역 사용여부" id="dlvyAreaAditAt2" name="dlvyAreaAditAt2">
|
||||
<option value="N" <c:if test="${ resultMap.dlvyGroup.dlvyAreaAditAt2 ne 'Y' }">selected="selected"</c:if>>사용안함</option>
|
||||
<option value="Y" <c:if test="${ resultMap.dlvyGroup.dlvyAreaAditAt2 eq 'Y' }">selected="selected"</c:if>>2권역</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="td-inner vertical">
|
||||
<div class="input-container">
|
||||
<span class="mr-10 fw-500">도서산간지역 추가 배송비</span>
|
||||
<input type="text" class="input-text sm right number" id="areaAditDlvyAmt2"
|
||||
name="areaAditDlvyAmt2" <c:if test="${ resultMap.dlvyGroup.dlvyAreaAditAt2 ne 'Y' }">disabled="disabled"</c:if>
|
||||
value="<fmt:formatNumber value='${resultMap.dlvyGroup.areaAditDlvyAmt2}' pattern="#,###" />"
|
||||
title="배송권역에 대한 추가 배송비" maxlength="13">
|
||||
<span class="input-unit-text mr-8">${curUnit}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">반품배송비(JP)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
<span>편도 :
|
||||
<input type="text" class="input-text sm right number" value="<fmt:formatNumber value='${resultMap.dlvyGroup.returnDlvyAmt2}' pattern="#,###" />" title="편도반품배송비" id="returnDlvyAmt2" name="returnDlvyAmt2" maxlength="13">
|
||||
${curUnit}
|
||||
</span>
|
||||
</div>
|
||||
<div class="b-checkbox-container">
|
||||
<label class="b-checkbox checkbox">
|
||||
<input type="checkbox" id="returnDlvyApplcAt2" name="returnDlvyApplcAt2"
|
||||
<c:choose>
|
||||
<c:when test="${ resultMap.dlvyGroup.returnDlvyApplcAt2 eq 'Y' }"> value="Y" </c:when>
|
||||
<c:otherwise> value="N" </c:otherwise>
|
||||
</c:choose>
|
||||
<c:if test="${ resultMap.dlvyGroup.returnDlvyApplcAt2 eq 'Y' }">checked="checked"</c:if>>
|
||||
<span style="margin-right: 5px;" class="check"></span>
|
||||
</label>
|
||||
<span class="control-label">왕복 여부</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="input-container">
|
||||
<span>왕복 :
|
||||
<input type="text" class="input-text sm right number" value="<fmt:formatNumber value='${resultMap.dlvyGroup.exchngDlvyAmt2}' pattern="#,###" />" title="왕복반품배송비" id="exchngDlvyAmt2" name="exchngDlvyAmt2" maxlength="13" <c:if test="${resultMap.dlvyGroup.returnDlvyApplcAt2 ne 'Y'}"> disabled="disabled" </c:if> >
|
||||
${curUnit}
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
@@ -134,12 +134,14 @@ since : 2023.11.28 전일찬 최초 생성11
|
||||
******************************************************** */
|
||||
const fn_check_BoxControl = function(checkbox, textbox) {
|
||||
$(checkbox).on('click', function(){
|
||||
let targetValue = checkbox.value;
|
||||
// let targetValue = checkbox.value;
|
||||
if(checkbox.checked == true){
|
||||
targetValue = 'Y';
|
||||
// targetValue = 'Y';
|
||||
checkbox.value = "Y";
|
||||
textbox.disabled = false;
|
||||
} else {
|
||||
targetValue = 'N';
|
||||
// targetValue = 'N';
|
||||
checkbox.value = "N";
|
||||
textbox.disabled = true;
|
||||
textbox.value= '0';
|
||||
}
|
||||
@@ -205,6 +207,46 @@ since : 2023.11.28 전일찬 최초 생성11
|
||||
$('#address').val(data.roadAddress);
|
||||
}
|
||||
}
|
||||
|
||||
/**********************************************
|
||||
ibsnet api 호출
|
||||
***********************************************/
|
||||
const fn_select_postcodeJp = function (callback) {
|
||||
let postcode2 = $('#postcode2').val();
|
||||
if(postcode2 == ''){
|
||||
alert('우편번호를 입력하세요.');
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: 'https://zipcloud.ibsnet.co.jp/api/search?zipcode=' + $('#postcode2').val(),
|
||||
dataType: 'jsonp',
|
||||
success: function (data) {
|
||||
// console.log("status1:", data);
|
||||
if(data.status == 200) {
|
||||
let result = data.results[0];
|
||||
|
||||
let adres = result.address1;
|
||||
let dtlAdres = [result.address2, result.address3].join(" ");
|
||||
// let prefcode = result.prefcode;
|
||||
|
||||
$("#address2").val(adres);
|
||||
$("#detailAddress2").val(dtlAdres);
|
||||
// $("#prefcode").val(prefcode); // 도도부현코드
|
||||
} else {
|
||||
alert('주소 조회가 실패하였습니다. 정상적인 우편번호를 입력하세요.');
|
||||
}
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
console.log("status:", status);
|
||||
console.log("error:", error);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
<body>
|
||||
|
||||
@@ -258,7 +300,7 @@ since : 2023.11.28 전일찬 최초 생성11
|
||||
<div id="PayDlvy" class="content-tab__content">
|
||||
</div>
|
||||
<section class="content-section">
|
||||
<h3 class="content-section__title">반송지</h3>
|
||||
<h3 class="content-section__title">반송지(KR)</h3>
|
||||
<div class="table-wrapper">
|
||||
<table class="table">
|
||||
<colgroup>
|
||||
@@ -306,6 +348,55 @@ since : 2023.11.28 전일찬 최초 생성11
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<section class="content-section">
|
||||
<h3 class="content-section__title">반송지(JP)</h3>
|
||||
<div class="table-wrapper">
|
||||
<table class="table">
|
||||
<colgroup>
|
||||
<col style="width: 12%;">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>주소</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="address-group">
|
||||
<div class="address-line">
|
||||
<span class="address-line__title">우편번호</span>
|
||||
<input type="text" class="input-text xsm mr-2" value=""
|
||||
title="반송지 우편번호" id="postcode2" name="rtnlcZip2">
|
||||
<button type="button" onclick="fn_select_postcodeJp(); return false;" class="address-line__find-btn">주소찾기</button>
|
||||
</div>
|
||||
<div class="address-line">
|
||||
<span class="address-line__title">주소</span>
|
||||
<input type="text" class="input-text lg" value="" readonly
|
||||
title="반송지 주소" id="address2" name="rtnlcAdres2">
|
||||
</div>
|
||||
<div class="address-line">
|
||||
<span class="address-line__title">상세주소</span>
|
||||
<input type="text" class="input-text md" value="" maxlength="35"
|
||||
title="반송지 상세주소" id="detailAddress2" name="rtnlcDtlAdres2">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>전화번호</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="phone-container">
|
||||
<input type="text" class="input-text sm phone" value=""
|
||||
title="전화번호" id="rtnlcTelnb2" maxlength="13" name="rtnlcTelnb2">
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</div>
|
||||
<button class="scroll-to-top"><span class="visually-hidden">위로가기</span></button>
|
||||
|
||||
@@ -122,6 +122,45 @@
|
||||
}
|
||||
}
|
||||
|
||||
/**********************************************
|
||||
ibsnet api 호출
|
||||
***********************************************/
|
||||
const fn_select_postcodeJp = function (callback) {
|
||||
let postcode2 = $('#postcode2').val();
|
||||
if(postcode2 == ''){
|
||||
alert('우편번호를 입력하세요.');
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: 'https://zipcloud.ibsnet.co.jp/api/search?zipcode=' + $('#postcode2').val(),
|
||||
dataType: 'jsonp',
|
||||
success: function (data) {
|
||||
// console.log("status1:", data);
|
||||
if(data.status == 200) {
|
||||
let result = data.results[0];
|
||||
|
||||
let adres = result.address1;
|
||||
let dtlAdres = [result.address2, result.address3].join(" ");
|
||||
// let prefcode = result.prefcode;
|
||||
|
||||
$("#address2").val(adres);
|
||||
$("#detailAddress2").val(dtlAdres);
|
||||
// $("#prefcode").val(prefcode); // 도도부현코드
|
||||
} else {
|
||||
alert('주소 조회가 실패하였습니다. 정상적인 우편번호를 입력하세요.');
|
||||
}
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
console.log("status:", status);
|
||||
console.log("error:", error);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* ********************************************************
|
||||
* 배송권역 변경 시 value 값 변경
|
||||
******************************************************** */
|
||||
@@ -157,12 +196,14 @@
|
||||
******************************************************** */
|
||||
const fn_check_BoxControl = function(checkbox, textbox) {
|
||||
$(checkbox).on('click', function(){
|
||||
let targetValue = checkbox.value;
|
||||
// let targetValue = checkbox.value;
|
||||
if(checkbox.checked == true){
|
||||
targetValue = "Y";
|
||||
// targetValue = "Y";
|
||||
checkbox.value = "Y";
|
||||
textbox.disabled = false;
|
||||
} else {
|
||||
targetValue = "N";
|
||||
// targetValue = "N";
|
||||
checkbox.value = "N";
|
||||
textbox.disabled = true;
|
||||
textbox.value= '0';
|
||||
}
|
||||
@@ -227,6 +268,7 @@
|
||||
<form id="DlvyForm" method="post" action="/mngr/setup/dlvygrp/updateDlvyGroupDtl">
|
||||
<input type="hidden" id="dlvyGroupInnb" name="dlvyGroupInnb" value="<c:out value="${resultMap.dlvyGroup.dlvyGroupInnb}"/>"/>
|
||||
<input type="hidden" id="rtnlcInnb" name="rtnlcInnb" value="<c:out value="${resultMap.dlvyGroup.rtnlcInnb}"/>"/>
|
||||
<input type="hidden" id="rtnlcInnb2" name="rtnlcInnb2" value="<c:out value="${resultMap.dlvyGroup.rtnlcInnb2}"/>"/>
|
||||
<section class="content-section">
|
||||
<h3 class="content-section__title">배송그룹명</h3>
|
||||
<div class="table-wrapper">
|
||||
@@ -256,7 +298,7 @@
|
||||
<div id="PayDlvy" class="content-tab__content">
|
||||
</div>
|
||||
<section class="content-section">
|
||||
<h3 class="content-section__title">반송지</h3>
|
||||
<h3 class="content-section__title">반송지(KR)</h3>
|
||||
<div class="table-wrapper">
|
||||
<table class="table">
|
||||
<colgroup>
|
||||
@@ -300,6 +342,51 @@
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<section class="content-section">
|
||||
<h3 class="content-section__title">반송지(JP)</h3>
|
||||
<div class="table-wrapper">
|
||||
<table class="table">
|
||||
<colgroup>
|
||||
<col style="width: 12%;">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>주소</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="address-group">
|
||||
<div class="address-line">
|
||||
<span class="address-line__title">우편번호</span>
|
||||
<input type="text" class="input-text xsm mr-2" value="<c:out value="${resultMap.dlvyGroup.rtnlcZip2}"/>" title="반송지 우편번호" id="rtnlcZip2" name="rtnlcZip2">
|
||||
<button type="button" onclick="fn_select_postcodeJp(); return false;" class="address-line__find-btn">주소찾기</button>
|
||||
</div>
|
||||
<div class="address-line">
|
||||
<span class="address-line__title">주소</span>
|
||||
<input type="text" class="input-text lg" value="<c:out value="${resultMap.dlvyGroup.rtnlcAdres2}"/>" title="반송지 주소" id="rtnlcAdres2" name="rtnlcAdres2">
|
||||
</div>
|
||||
<div class="address-line">
|
||||
<span class="address-line__title">상세주소</span>
|
||||
<input type="text" class="input-text md" value="<c:out value="${resultMap.dlvyGroup.rtnlcDtlAdres2}"/>" maxlength="35" title="반송지 상세주소" id="rtnlcDtlAdres2" name="rtnlcDtlAdres2">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>전화번호</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="phone-container">
|
||||
<input type="text" class="input-text m phone" value="<c:out value="${resultMap.dlvyGroup.rtnlcTelnb2}"/>" title="전화번호" id="rtnlcTelnb2" maxlength="13" name="rtnlcTelnb2">
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</div>
|
||||
<button class="scroll-to-top"><span class="visually-hidden">위로가기</span></button>
|
||||
|
||||
@@ -19,6 +19,10 @@
|
||||
const areaAditDlvyAmt = document.querySelector('#areaAditDlvyAmt');
|
||||
fn_change_dlvyArea(dlvyAreaAditAt, areaAditDlvyAmt);
|
||||
|
||||
const dlvyAreaAditAt2 = document.querySelector('#dlvyAreaAditAt2');
|
||||
const areaAditDlvyAmt2 = document.querySelector('#areaAditDlvyAmt2');
|
||||
fn_change_dlvyArea(dlvyAreaAditAt2, areaAditDlvyAmt2);
|
||||
|
||||
if ($(".input-text.number").val() === '' || $(".input-text.number").val() == null) {
|
||||
$(".input-text.number").val('0');
|
||||
}
|
||||
@@ -34,6 +38,10 @@
|
||||
const returnDlvyApplcAt = document.querySelector('#returnDlvyApplcAt');
|
||||
const exchngDlvyAmt = document.querySelector('#exchngDlvyAmt');
|
||||
fn_check_BoxControl(returnDlvyApplcAt,exchngDlvyAmt);
|
||||
|
||||
const returnDlvyApplcAt2 = document.querySelector('#returnDlvyApplcAt2');
|
||||
const exchngDlvyAmt2 = document.querySelector('#exchngDlvyAmt2');
|
||||
fn_check_BoxControl(returnDlvyApplcAt2,exchngDlvyAmt2);
|
||||
});
|
||||
</script>
|
||||
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
||||
@@ -42,14 +50,14 @@
|
||||
<h3 class="content-section__title">배송비</h3>
|
||||
<div class="table-wrapper">
|
||||
<table class="table">
|
||||
<caption>배송그룹 배송비</caption>
|
||||
<caption>배송그룹 배송비(KR)</caption>
|
||||
<colgroup>
|
||||
<col style="width: 12%;">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th rowspan="2">배송 권역</th>
|
||||
<th rowspan="2">배송 권역(KR)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="select-box">
|
||||
@@ -78,7 +86,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">반품배송비</th>
|
||||
<th rowspan="2">반품배송비(KR)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
@@ -89,7 +97,12 @@
|
||||
</div>
|
||||
<div class="b-checkbox-container">
|
||||
<label class="b-checkbox checkbox">
|
||||
<input type="checkbox" id="returnDlvyApplcAt" name="returnDlvyApplcAt" value="Y" <c:if test="${ resultMap.dlvyGroup.returnDlvyApplcAt eq 'Y' }">checked="checked"</c:if>>
|
||||
<input type="checkbox" id="returnDlvyApplcAt" name="returnDlvyApplcAt"
|
||||
<c:choose>
|
||||
<c:when test="${ resultMap.dlvyGroup.returnDlvyApplcAt eq 'Y' }"> value="Y" </c:when>
|
||||
<c:otherwise> value="N" </c:otherwise>
|
||||
</c:choose>
|
||||
<c:if test="${ resultMap.dlvyGroup.returnDlvyApplcAt eq 'Y' }">checked="checked"</c:if>>
|
||||
<span style="margin-right: 5px;" class="check"></span>
|
||||
</label>
|
||||
<span class="control-label">왕복 여부</span>
|
||||
@@ -110,4 +123,79 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="table-wrapper">
|
||||
<table class="table">
|
||||
<caption>배송그룹 배송비(JP)</caption>
|
||||
<colgroup>
|
||||
<col style="width: 12%;">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th rowspan="2">배송 권역(JP)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="select-box">
|
||||
<select title="배송권역 사용여부" id="dlvyAreaAditAt2" name="dlvyAreaAditAt2">
|
||||
<option value="N" <c:if test="${ resultMap.dlvyGroup.dlvyAreaAditAt2 ne 'Y' }">selected="selected"</c:if>>사용안함</option>
|
||||
<option value="Y" <c:if test="${ resultMap.dlvyGroup.dlvyAreaAditAt2 eq 'Y' }">selected="selected"</c:if>>2권역</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="td-inner vertical">
|
||||
<div class="input-container">
|
||||
<span class="mr-10 fw-500">도서산간지역 추가 배송비</span>
|
||||
<input type="text" class="input-text sm right number" id="areaAditDlvyAmt2"
|
||||
name="areaAditDlvyAmt2" <c:if test="${ resultMap.dlvyGroup.dlvyAreaAditAt ne 'Y' }">disabled="disabled"</c:if>
|
||||
value="<fmt:formatNumber value='${resultMap.dlvyGroup.areaAditDlvyAmt}' pattern="#,###" />"
|
||||
title="배송권역에 대한 추가 배송비" maxlength="13">
|
||||
<span class="input-unit-text mr-8">${curUnit}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">반품배송비(JP)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
<span>편도 :
|
||||
<input type="text" class="input-text sm right number" value="<fmt:formatNumber value='${resultMap.dlvyGroup.returnDlvyAmt2}' pattern="#,###" />" title="편도반품배송비" id="returnDlvyAmt2" name="returnDlvyAmt2" maxlength="13">
|
||||
${curUnit}
|
||||
</span>
|
||||
</div>
|
||||
<div class="b-checkbox-container">
|
||||
<label class="b-checkbox checkbox">
|
||||
<input type="checkbox" id="returnDlvyApplcAt2" name="returnDlvyApplcAt2"
|
||||
<c:choose>
|
||||
<c:when test="${ resultMap.dlvyGroup.returnDlvyApplcAt eq 'Y' }"> value="Y" </c:when>
|
||||
<c:otherwise> value="N" </c:otherwise>
|
||||
</c:choose>
|
||||
<c:if test="${ resultMap.dlvyGroup.returnDlvyApplcAt2 eq 'Y' }">checked="checked"</c:if>>
|
||||
<span style="margin-right: 5px;" class="check"></span>
|
||||
</label>
|
||||
<span class="control-label">왕복 여부</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="input-container">
|
||||
<span>왕복 :
|
||||
<input type="text" class="input-text sm right number" value="<fmt:formatNumber value='${resultMap.dlvyGroup.exchngDlvyAmt2}' pattern="#,###" />" title="왕복반품배송비" id="exchngDlvyAmt2" name="exchngDlvyAmt2" maxlength="13" <c:if test="${resultMap.dlvyGroup.returnDlvyApplcAt2 ne 'Y'}"> disabled="disabled" </c:if> >
|
||||
${curUnit}
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
@@ -14,25 +14,63 @@
|
||||
--%>
|
||||
<script type="text/javascript">
|
||||
$( document ).ready(function() {
|
||||
/** 배송권역 셀렉트박스 컨트롤 */
|
||||
const dlvyAreaAditAt1 = document.querySelector('#dlvyAreaAditAt');
|
||||
const areaAditDlvyAmt1 = document.querySelector('#areaAditDlvyAmt');
|
||||
fn_change_dlvyArea(dlvyAreaAditAt1, areaAditDlvyAmt1);
|
||||
/** 유료배송 조건 체크박스 컨트롤 */
|
||||
// const amtCndUseAt = document.querySelector('#amtCndUseAt');
|
||||
// const amtCndAditAmt = document.querySelector('#amtCndAditAmt');
|
||||
const cntCndUseAt = document.querySelector('#cntCndUseAt');
|
||||
const cntCndAditAmt = document.querySelector('#cntCndAditAmt');
|
||||
// fn_check_BoxControl(amtCndUseAt,amtCndAditAmt);
|
||||
fn_check_BoxControl(cntCndUseAt,cntCndAditAmt);
|
||||
|
||||
// const amtCndUseAt2 = document.querySelector('#amtCndUseAt2');
|
||||
// const amtCndAditAmt2 = document.querySelector('#amtCndAditAmt2');
|
||||
const cntCndUseAt2 = document.querySelector('#cntCndUseAt2');
|
||||
const cntCndAditAmt2 = document.querySelector('#cntCndAditAmt2');
|
||||
// fn_check_BoxControl(amtCndUseAt2,amtCndAditAmt2);
|
||||
fn_check_BoxControl(cntCndUseAt2,cntCndAditAmt2);
|
||||
|
||||
/** 묶음배송 체크박스 컨트롤 */
|
||||
// const bundleDlvyY = document.querySelector('#bundleDlvyY');
|
||||
// const bundleDlvyN = document.querySelector('#bundleDlvyN');
|
||||
// const bundleDlvyCndAmt = document.querySelector('#bundleDlvyCndAmt');
|
||||
// fn_click_bundleDlvy(bundleDlvyY, bundleDlvyCndAmt);
|
||||
// fn_click_bundleDlvy(bundleDlvyN, bundleDlvyCndAmt);
|
||||
//
|
||||
// const bundleDlvyY2 = document.querySelector('#bundleDlvyY2');
|
||||
// const bundleDlvyN2 = document.querySelector('#bundleDlvyN2');
|
||||
// const bundleDlvyCndAmt2 = document.querySelector('#bundleDlvyCndAmt2');
|
||||
// fn_click_bundleDlvy(bundleDlvyY2, bundleDlvyCndAmt2);
|
||||
// fn_click_bundleDlvy(bundleDlvyN2, bundleDlvyCndAmt2);
|
||||
|
||||
/** 배송권역 셀렉트박스 컨트롤 */
|
||||
const dlvyAreaAditAt1 = document.querySelector('#dlvyAreaAditAt');
|
||||
const areaAditDlvyAmt1 = document.querySelector('#areaAditDlvyAmt');
|
||||
fn_change_dlvyArea(dlvyAreaAditAt1, areaAditDlvyAmt1);
|
||||
|
||||
const dlvyAreaAditAt2 = document.querySelector('#dlvyAreaAditAt2');
|
||||
const areaAditDlvyAmt2 = document.querySelector('#areaAditDlvyAmt2');
|
||||
fn_change_dlvyArea(dlvyAreaAditAt2, areaAditDlvyAmt2);
|
||||
|
||||
//왕복 여부 체크박스 컨트롤
|
||||
const returnDlvyApplcAt = document.querySelector('#returnDlvyApplcAt');
|
||||
const exchngDlvyAmt = document.querySelector('#exchngDlvyAmt');
|
||||
fn_check_BoxControl(returnDlvyApplcAt,exchngDlvyAmt);
|
||||
|
||||
const returnDlvyApplcAt2 = document.querySelector('#returnDlvyApplcAt2');
|
||||
const exchngDlvyAmt2 = document.querySelector('#exchngDlvyAmt2');
|
||||
fn_check_BoxControl(returnDlvyApplcAt2,exchngDlvyAmt2);
|
||||
|
||||
if ($(".input-text.number").val() === '' || $(".input-text.number").val() == null) {
|
||||
$(".input-text.number").val('0');
|
||||
}
|
||||
|
||||
$(".input-text.number").on("focus", function () {
|
||||
|
||||
if ($(this).val() === '0') {
|
||||
$(this).val('');
|
||||
}
|
||||
});
|
||||
|
||||
//왕복 여부 체크박스 컨트롤
|
||||
const returnDlvyApplcAt = document.querySelector('#returnDlvyApplcAt');
|
||||
const exchngDlvyAmt = document.querySelector('#exchngDlvyAmt');
|
||||
fn_check_BoxControl(returnDlvyApplcAt,exchngDlvyAmt);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
||||
@@ -41,14 +79,14 @@
|
||||
<h3 class="content-section__title">배송비</h3>
|
||||
<div class="table-wrapper">
|
||||
<table class="table">
|
||||
<caption>해당 테이블에 대한 설명</caption>
|
||||
<caption>배송그룹 배송비(KR)</caption>
|
||||
<colgroup>
|
||||
<col style="width: 12%;">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>기본 배송비</th>
|
||||
<th>기본 배송비(KR)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
@@ -60,8 +98,85 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">배송 권역</th>
|
||||
<tr>
|
||||
<th>개별배송조건(KR)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="td-inner vertical">
|
||||
<div class="b-checkbox-container">
|
||||
<%-- <label class="b-checkbox checkbox">--%>
|
||||
<%-- <input type="checkbox" id="amtCndUseAt" name="amtCndUseAt" value="Y" <c:if test="${ resultMap.dlvyGroup.amtCndUseAt eq 'Y' }">checked="checked"</c:if>>--%>
|
||||
<%-- <span style="margin-right: 5px;" class="check"></span>--%>
|
||||
<%-- <input type="text" class="input-text sm right number" <c:if test="${ resultMap.dlvyGroup.amtCndUseAt ne 'Y' }">disabled="disabled"</c:if> value="<fmt:formatNumber value='${resultMap.dlvyGroup.amtCndAditAmt}' pattern="#,###" />" title="금액 조건" id="amtCndAditAmt" name="amtCndAditAmt" maxlength="13">--%>
|
||||
<%-- </label>--%>
|
||||
<%-- <span class="control-label">${curUnit} 이상일 때 무료배송</span>--%>
|
||||
<label class="b-checkbox checkbox">
|
||||
<input type="checkbox" id="cntCndUseAt" name="cntCndUseAt"
|
||||
<c:choose>
|
||||
<c:when test="${ resultMap.dlvyGroup.cntCndUseAt eq 'Y' }"> value="Y" </c:when>
|
||||
<c:otherwise> value="N" </c:otherwise>
|
||||
</c:choose>
|
||||
<c:if test="${ resultMap.dlvyGroup.cntCndUseAt eq 'Y' }">checked="checked"</c:if>>
|
||||
<span style="margin-right: 5px;" class="check"></span>
|
||||
<input type="text" class="input-text sm right number" <c:if test="${ resultMap.dlvyGroup.cntCndUseAt ne 'Y' }">disabled="disabled"</c:if> value="<fmt:formatNumber value='${resultMap.dlvyGroup.cntCndAditAmt}' pattern="#,###" />" title="구매 개수 조건" id="cntCndAditAmt" name="cntCndAditAmt" maxlength="13">
|
||||
</label>
|
||||
<span class="control-label">개 단위로 유료배송비 추가</span>
|
||||
</div>
|
||||
<div class="gray-7">
|
||||
<p class="fyi">값을 1개 이상 입력 하신 경우 설정이 가능 합니다.</p>
|
||||
<p class="fyi">설정한 개수의 배수로 배송비가 부과됩니다.</p>
|
||||
<p class="fyi">설정하지 않을 경우, 같은 상품은 개수와 상관없이 배송비를 한 번만 부과합니다.</p>
|
||||
<p class="fyi">무료배송, 묶음배송 상품과 별도로 배송비가 적용됩니다.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<%-- <tr>--%>
|
||||
<%-- <th rowspan="2">묶음배송(KR)</th>--%>
|
||||
<%-- <td>--%>
|
||||
<%-- <div class="td-inner">--%>
|
||||
<%-- <div class="custom-radio-container">--%>
|
||||
<%-- <div class="custom-radio">--%>
|
||||
<%-- <input type="radio" id="bundleDlvyY" name="bundleDlvyUseAt" value="Y"--%>
|
||||
<%-- <c:if test="${resultMap.dlvyGroup.bundleDlvyUseAt eq 'Y' }">checked="checked"</c:if> >--%>
|
||||
<%-- <label for="bundleDlvyY">사용함</label>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- <div class="custom-radio">--%>
|
||||
<%-- <input type="radio" id="bundleDlvyN" name="bundleDlvyUseAt" value="N"--%>
|
||||
<%-- <c:if test="${resultMap.dlvyGroup.bundleDlvyUseAt eq 'N' }">checked="checked"</c:if> <c:if test="${empty resultMap.dlvyGroup.bundleDlvyUseAt}">checked="checked"</c:if> >--%>
|
||||
<%-- <label for="bundleDlvyN">사용안함</label>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- </td>--%>
|
||||
<%-- </tr>--%>
|
||||
<%-- <tr>--%>
|
||||
<%-- <td>--%>
|
||||
<%-- <div class="td-inner vertical">--%>
|
||||
<%-- <div class="input-container">--%>
|
||||
<%-- <span class="mr-10">묶음배송 상품 금액 합이</span>--%>
|
||||
<%-- <input type="text" class="input-text sm right number"--%>
|
||||
<%-- <c:if test="${resultMap.dlvyGroup.bundleDlvyUseAt eq 'N' }">disabled="disabled"</c:if>--%>
|
||||
<%-- value="<fmt:formatNumber value='${resultMap.dlvyGroup.bundleDlvyCndAmt}' pattern="#,###" />"--%>
|
||||
<%-- title="묶음배송 조건" id="bundleDlvyCndAmt" name="bundleDlvyCndAmt" maxlength="13">--%>
|
||||
<%-- <span class="input-unit-text mr-8">${curUnit}</span>--%>
|
||||
<%-- <span>이상일 때 무료배송</span>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- <div class="gray-7">--%>
|
||||
<%-- <p class="fyi">값을 1${curUnit} 이상 입력 하신 경우 설정이 가능 합니다.</p>--%>
|
||||
<%-- <p class="fyi">묶음배송을 사용함으로 설정하신 상품의 경우에만 해당 조건이 적용됩니다.</p>--%>
|
||||
<%-- <p class="fyi">묶음배송 상품이 아닌 경우, 상품별로 각각 배송비가 부과될 수 있습니다.</p>--%>
|
||||
<%-- <p class="fyi">묶음배송 상품은 2개 이상 주문해야 무료배송 조건이 적용됩니다.</p>--%>
|
||||
<%-- <p class="fyi">무료배송 처리된 묶음배송 상품이 있을 경우, 전체 묶음배송 상품이 무료배송 처리됩니다.--%>
|
||||
<%-- </p>--%>
|
||||
<%-- <p class="fyi">묶음배송 상품인 경우, 금액이 가장 높은 기본 배송비를 한 번만 부과합니다.</p>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- </td>--%>
|
||||
<%-- </tr>--%>
|
||||
<%-- <tr>--%>
|
||||
<th rowspan="2">배송 권역(KR)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="select-box">
|
||||
@@ -90,7 +205,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">반품배송비</th>
|
||||
<th rowspan="2">반품배송비(KR)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
@@ -101,7 +216,12 @@
|
||||
</div>
|
||||
<div class="b-checkbox-container">
|
||||
<label class="b-checkbox checkbox">
|
||||
<input type="checkbox" id="returnDlvyApplcAt" name="returnDlvyApplcAt" value="Y" <c:if test="${ resultMap.dlvyGroup.returnDlvyApplcAt eq 'Y' }">checked="checked"</c:if>>
|
||||
<input type="checkbox" id="returnDlvyApplcAt" name="returnDlvyApplcAt"
|
||||
<c:choose>
|
||||
<c:when test="${ resultMap.dlvyGroup.returnDlvyApplcAt eq 'Y' }"> value="Y" </c:when>
|
||||
<c:otherwise> value="N" </c:otherwise>
|
||||
</c:choose>
|
||||
<c:if test="${ resultMap.dlvyGroup.returnDlvyApplcAt eq 'Y' }">checked="checked"</c:if>>
|
||||
<span style="margin-right: 5px;" class="check"></span>
|
||||
</label>
|
||||
<span class="control-label">왕복 여부</span>
|
||||
@@ -121,5 +241,170 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-wrapper">
|
||||
<table class="table">
|
||||
<caption>배송그룹 배송비(JP)</caption>
|
||||
<colgroup>
|
||||
<col style="width: 12%;">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>기본 배송비(JP)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
<input type="text" class="input-text sm right number"
|
||||
value="<fmt:formatNumber value='${resultMap.dlvyGroup.dftDlvyAmt2}' pattern="#,###" />"
|
||||
title="기본배송비" name="dftDlvyAmt2" maxlength="10">
|
||||
<span class="input-unit-text">${curUnit}</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>개별배송조건(JP)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="td-inner vertical">
|
||||
<div class="b-checkbox-container">
|
||||
<%-- <label class="b-checkbox checkbox">--%>
|
||||
<%-- <input type="checkbox" id="amtCndUseAt2" name="amtCndUseAt2" value="Y" <c:if test="${ resultMap.dlvyGroup.amtCndUseAt2 eq 'Y' }">checked="checked"</c:if>>--%>
|
||||
<%-- <span style="margin-right: 5px;" class="check"></span>--%>
|
||||
<%-- <input type="text" class="input-text sm right number" <c:if test="${ resultMap.dlvyGroup.amtCndUseAt2 ne 'Y' }">disabled="disabled"</c:if> value="<fmt:formatNumber value='${resultMap.dlvyGroup.amtCndAditAmt2}' pattern="#,###" />" title="금액 조건" id="amtCndAditAmt2" name="amtCndAditAmt2" maxlength="13">--%>
|
||||
<%-- </label>--%>
|
||||
<%-- <span class="control-label">${curUnit} 이상일 때 무료배송</span>--%>
|
||||
<label class="b-checkbox checkbox">
|
||||
<input type="checkbox" id="cntCndUseAt2" name="cntCndUseAt2"
|
||||
<c:choose>
|
||||
<c:when test="${ resultMap.dlvyGroup.cntCndUseAt2 eq 'Y' }"> value="Y" </c:when>
|
||||
<c:otherwise> value="N" </c:otherwise>
|
||||
</c:choose>
|
||||
<c:if test="${ resultMap.dlvyGroup.cntCndUseAt2 eq 'Y' }">checked="checked"</c:if>>
|
||||
<span style="margin-right: 5px;" class="check"></span>
|
||||
<input type="text" class="input-text sm right number" <c:if test="${ resultMap.dlvyGroup.cntCndUseAt2 ne 'Y' }">disabled="disabled"</c:if> value="<fmt:formatNumber value='${resultMap.dlvyGroup.cntCndAditAmt2}' pattern="#,###" />" title="구매 개수 조건" id="cntCndAditAmt2" name="cntCndAditAmt2" maxlength="13">
|
||||
</label>
|
||||
<span class="control-label">개 단위로 유료배송비 추가</span>
|
||||
</div>
|
||||
<div class="gray-7">
|
||||
<p class="fyi">값을 1개 이상 입력 하신 경우 설정이 가능 합니다.</p>
|
||||
<p class="fyi">설정한 개수의 배수로 배송비가 부과됩니다.</p>
|
||||
<p class="fyi">설정하지 않을 경우, 같은 상품은 개수와 상관없이 배송비를 한 번만 부과합니다.</p>
|
||||
<p class="fyi">무료배송, 묶음배송 상품과 별도로 배송비가 적용됩니다.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<%-- <tr>--%>
|
||||
<%-- <th rowspan="2">묶음배송(JP)</th>--%>
|
||||
<%-- <td>--%>
|
||||
<%-- <div class="td-inner">--%>
|
||||
<%-- <div class="custom-radio-container">--%>
|
||||
<%-- <div class="custom-radio">--%>
|
||||
<%-- <input type="radio" id="bundleDlvyY2" name="bundleDlvyUseAt2" value="Y"--%>
|
||||
<%-- <c:if test="${resultMap.dlvyGroup.bundleDlvyUseAt2 eq 'Y' }">checked="checked"</c:if> >--%>
|
||||
<%-- <label for="bundleDlvyY2">사용함</label>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- <div class="custom-radio">--%>
|
||||
<%-- <input type="radio" id="bundleDlvyN2" name="bundleDlvyUseAt2" value="N"--%>
|
||||
<%-- <c:if test="${resultMap.dlvyGroup.bundleDlvyUseAt2 eq 'N' }">checked="checked"</c:if> <c:if test="${empty resultMap.dlvyGroup.bundleDlvyUseAt2}">checked="checked"</c:if> >--%>
|
||||
<%-- <label for="bundleDlvyN2">사용안함</label>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- </td>--%>
|
||||
<%-- </tr>--%>
|
||||
<%-- <tr>--%>
|
||||
<%-- <td>--%>
|
||||
<%-- <div class="td-inner vertical">--%>
|
||||
<%-- <div class="input-container">--%>
|
||||
<%-- <span class="mr-10">묶음배송 상품 금액 합이</span>--%>
|
||||
<%-- <input type="text" class="input-text sm right number"--%>
|
||||
<%-- <c:if test="${resultMap.dlvyGroup.bundleDlvyUseAt2 eq 'N' }">disabled="disabled"</c:if>--%>
|
||||
<%-- value="<fmt:formatNumber value='${resultMap.dlvyGroup.bundleDlvyCndAmt2}' pattern="#,###" />"--%>
|
||||
<%-- title="묶음배송 조건" id="bundleDlvyCndAmt2" name="bundleDlvyCndAmt2" maxlength="13">--%>
|
||||
<%-- <span class="input-unit-text mr-8">${curUnit}</span>--%>
|
||||
<%-- <span>이상일 때 무료배송</span>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- <div class="gray-7">--%>
|
||||
<%-- <p class="fyi">값을 1${curUnit} 이상 입력 하신 경우 설정이 가능 합니다.</p>--%>
|
||||
<%-- <p class="fyi">묶음배송을 사용함으로 설정하신 상품의 경우에만 해당 조건이 적용됩니다.</p>--%>
|
||||
<%-- <p class="fyi">묶음배송 상품이 아닌 경우, 상품별로 각각 배송비가 부과될 수 있습니다.</p>--%>
|
||||
<%-- <p class="fyi">묶음배송 상품은 2개 이상 주문해야 무료배송 조건이 적용됩니다.</p>--%>
|
||||
<%-- <p class="fyi">무료배송 처리된 묶음배송 상품이 있을 경우, 전체 묶음배송 상품이 무료배송 처리됩니다.--%>
|
||||
<%-- </p>--%>
|
||||
<%-- <p class="fyi">묶음배송 상품인 경우, 금액이 가장 높은 기본 배송비를 한 번만 부과합니다.</p>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- </td>--%>
|
||||
<%-- </tr>--%>
|
||||
<tr>
|
||||
<th rowspan="2">배송 권역(JP)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="select-box">
|
||||
<select title="배송권역 사용여부" id="dlvyAreaAditAt2" name="dlvyAreaAditAt2">
|
||||
<option value="N" <c:if test="${ resultMap.dlvyGroup.dlvyAreaAditAt2 ne 'Y' }">selected="selected"</c:if>>사용안함</option>
|
||||
<option value="Y" <c:if test="${ resultMap.dlvyGroup.dlvyAreaAditAt2 eq 'Y' }">selected="selected"</c:if>>2권역</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="td-inner vertical">
|
||||
<div class="input-container">
|
||||
<span class="mr-10 fw-500">도서산간지역 추가 배송비</span>
|
||||
<input type="text" class="input-text sm right number" id="areaAditDlvyAmt2"
|
||||
name="areaAditDlvyAmt2" <c:if test="${ resultMap.dlvyGroup.dlvyAreaAditAt2 ne 'Y' }">disabled="disabled"</c:if>
|
||||
value="<fmt:formatNumber value='${resultMap.dlvyGroup.areaAditDlvyAmt2}' pattern="#,###" />"
|
||||
title="배송권역에 대한 추가 배송비" maxlength="13">
|
||||
<span class="input-unit-text mr-8">${curUnit}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">반품배송비(JP)</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
<span>편도 :
|
||||
<input type="text" class="input-text sm right number" value="<fmt:formatNumber value='${resultMap.dlvyGroup.returnDlvyAmt2}' pattern="#,###" />" title="편도반품배송비" id="returnDlvyAmt2" name="returnDlvyAmt2" maxlength="13">
|
||||
${curUnit}
|
||||
</span>
|
||||
</div>
|
||||
<div class="b-checkbox-container">
|
||||
<label class="b-checkbox checkbox">
|
||||
<input type="checkbox" id="returnDlvyApplcAt2" name="returnDlvyApplcAt2"
|
||||
<c:choose>
|
||||
<c:when test="${ resultMap.dlvyGroup.returnDlvyApplcAt2 eq 'Y' }"> value="Y" </c:when>
|
||||
<c:otherwise> value="N" </c:otherwise>
|
||||
</c:choose>
|
||||
<c:if test="${ resultMap.dlvyGroup.returnDlvyApplcAt2 eq 'Y' }">checked="checked"</c:if>>
|
||||
<span style="margin-right: 5px;" class="check"></span>
|
||||
</label>
|
||||
<span class="control-label">왕복 여부</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="input-container">
|
||||
<span>왕복 :
|
||||
<input type="text" class="input-text sm right number" value="<fmt:formatNumber value='${resultMap.dlvyGroup.exchngDlvyAmt2}' pattern="#,###" />" title="왕복반품배송비" id="exchngDlvyAmt2" name="exchngDlvyAmt2" maxlength="13" <c:if test="${resultMap.dlvyGroup.returnDlvyApplcAt2 ne 'Y'}"> disabled="disabled" </c:if> >
|
||||
${curUnit}
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user