Compare commits
2 Commits
b0d1060dd7
...
fd385fe898
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd385fe898 | ||
|
|
6bf80ca297 |
@@ -9,7 +9,6 @@ import org.springframework.stereotype.Repository;
|
|||||||
|
|
||||||
import com.wb.domainserver.domain.admin.store.sopmal.vo.BOMaSopmalVO;
|
import com.wb.domainserver.domain.admin.store.sopmal.vo.BOMaSopmalVO;
|
||||||
import com.wb.domainserver.domain.admin.store.sopmal.vo.BOShopSetupVO;
|
import com.wb.domainserver.domain.admin.store.sopmal.vo.BOShopSetupVO;
|
||||||
import com.wb.domainserver.domain.admin.sys.menu.vo.BOMaMenuVO;
|
|
||||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -81,6 +80,10 @@ public interface BOMaSopmalMapper {
|
|||||||
|
|
||||||
public int updateBOSopmalUpdt(BOMaSopmalVO vo);
|
public int updateBOSopmalUpdt(BOMaSopmalVO vo);
|
||||||
|
|
||||||
|
public int updateBOExchngrtSetup(BOMaSopmalVO vo);
|
||||||
|
|
||||||
|
public int updateBOGuidanceSetup(BOMaSopmalVO vo);
|
||||||
|
|
||||||
public int deteteBOShopFamilySite(BOMaSopmalVO vo);
|
public int deteteBOShopFamilySite(BOMaSopmalVO vo);
|
||||||
|
|
||||||
public int deteteBOShopClause(BOMaSopmalVO vo);
|
public int deteteBOShopClause(BOMaSopmalVO vo);
|
||||||
|
|||||||
@@ -0,0 +1,56 @@
|
|||||||
|
package com.wb.domainserver.domain.gcone.setup.exchngrt.service;
|
||||||
|
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.mapper.BOMaSopmalMapper;
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.vo.BOMaSopmalVO;
|
||||||
|
import com.wb.domainserver.domain.admin.sys.comncd.service.BOMaComncdService;
|
||||||
|
import com.wb.domainserver.exception.WnbtRestException;
|
||||||
|
import com.wb.domainserver.exception.code.ErrorCode;
|
||||||
|
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 환율 설정 BO Serivce
|
||||||
|
*
|
||||||
|
* @author 이대환
|
||||||
|
* @version 1.0
|
||||||
|
* @see <pre>
|
||||||
|
* == (Modification Information) == 개정이력
|
||||||
|
*
|
||||||
|
* 수정일 수정자 수정내용
|
||||||
|
* ------- -------- ---------------------------
|
||||||
|
* 2026-04-27 이대환 최초 생성
|
||||||
|
*
|
||||||
|
* </pre>
|
||||||
|
* @since 2026-04-27
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@Service
|
||||||
|
public class BOExchngrtService {
|
||||||
|
@Autowired
|
||||||
|
private BOMaComncdService bOMaComncdService;
|
||||||
|
@Autowired
|
||||||
|
private BOMaSopmalMapper mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 환율 설정 수정
|
||||||
|
* @param boMaSopmalVO
|
||||||
|
*/
|
||||||
|
@Transactional
|
||||||
|
public DataMap updateBOExchngrtSetup(BOMaSopmalVO boMaSopmalVO) {
|
||||||
|
DataMap message = new DataMap();
|
||||||
|
|
||||||
|
try {
|
||||||
|
mapper.updateBOExchngrtSetup(boMaSopmalVO);
|
||||||
|
message.put("result", "success");
|
||||||
|
} catch (WnbtRestException wre) {
|
||||||
|
throw new WnbtRestException(wre.getMessage());
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new WnbtRestException(ErrorCode.INTERNAL_SERVER_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
package com.wb.domainserver.domain.gcone.setup.exchngrt.vo;
|
||||||
|
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.vo.BOMaSopmalVO;
|
||||||
|
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper=false)
|
||||||
|
public class BOExchngrtVO extends AbstractVO {
|
||||||
|
|
||||||
|
/** 쇼핑몰 코드 */
|
||||||
|
private String sopmalCd;
|
||||||
|
|
||||||
|
/** 1엔 환율(살때) */
|
||||||
|
private String buyRate;
|
||||||
|
|
||||||
|
/** 1엔 환율(팔때) */
|
||||||
|
private String sellRate;
|
||||||
|
|
||||||
|
/** BOMaSopmalVO로 변환 */
|
||||||
|
public BOMaSopmalVO setBOMaSopmalVO() {
|
||||||
|
BOMaSopmalVO boMaSopmalVO = new BOMaSopmalVO();
|
||||||
|
boMaSopmalVO.setSopmalCd(this.getSopmalCd());
|
||||||
|
boMaSopmalVO.setBuyRate(this.getBuyRate());
|
||||||
|
boMaSopmalVO.setSellRate(this.getSellRate());
|
||||||
|
boMaSopmalVO.setRegusr(this.getRegusr());
|
||||||
|
boMaSopmalVO.setUpdusr(this.getUpdusr());
|
||||||
|
|
||||||
|
return boMaSopmalVO;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
package com.wb.domainserver.domain.gcone.setup.family.service;
|
||||||
|
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.mapper.BOMaSopmalMapper;
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.vo.BOMaSopmalVO;
|
||||||
|
import com.wb.domainserver.domain.admin.sys.comncd.service.BOMaComncdService;
|
||||||
|
import com.wb.domainserver.exception.WnbtRestException;
|
||||||
|
import com.wb.domainserver.exception.code.ErrorCode;
|
||||||
|
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||||
|
import com.wb.domainserver.util.string.StringUtil;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
import org.springframework.util.ObjectUtils;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 패밀리사이트 설정 BO Serivce
|
||||||
|
*
|
||||||
|
* @author 이대환
|
||||||
|
* @version 1.0
|
||||||
|
* @see <pre>
|
||||||
|
* == (Modification Information) == 개정이력
|
||||||
|
*
|
||||||
|
* 수정일 수정자 수정내용
|
||||||
|
* ------- -------- ---------------------------
|
||||||
|
* 2026-04-27 이대환 최초 생성
|
||||||
|
*
|
||||||
|
* </pre>
|
||||||
|
* @since 2026-04-27
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@Service
|
||||||
|
public class BOFamilyService {
|
||||||
|
@Autowired
|
||||||
|
private BOMaComncdService bOMaComncdService;
|
||||||
|
@Autowired
|
||||||
|
private BOMaSopmalMapper mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 패밀리사이트 설정 수정
|
||||||
|
* @param boMaSopmalVO
|
||||||
|
*/
|
||||||
|
@Transactional
|
||||||
|
public DataMap updateBOFamilySetup(BOMaSopmalVO boMaSopmalVO) {
|
||||||
|
DataMap message = new DataMap();
|
||||||
|
|
||||||
|
try {
|
||||||
|
mapper.deteteBOShopFamilySite(boMaSopmalVO);
|
||||||
|
|
||||||
|
DataMap paramMap = new DataMap();
|
||||||
|
paramMap.put("sopmalCd", boMaSopmalVO.getSopmalCd());
|
||||||
|
paramMap.put("regusr", boMaSopmalVO.getRegusr());
|
||||||
|
|
||||||
|
if (!ObjectUtils.isEmpty(boMaSopmalVO.getFamilySiteNmArr())) {
|
||||||
|
String[] siteNm = boMaSopmalVO.getFamilySiteNmArr();
|
||||||
|
String[] siteUrl = boMaSopmalVO.getFamilySiteUrlArr();
|
||||||
|
|
||||||
|
for (int i = 0; i < siteNm.length; i++) {
|
||||||
|
if (!StringUtil.isEmpty(siteNm[i])) {
|
||||||
|
paramMap.put("familySiteNm", siteNm[i]);
|
||||||
|
paramMap.put("familySiteUrl", siteUrl[i]);
|
||||||
|
mapper.insertBOShopFamilySite(paramMap);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
message.put("result", "success");
|
||||||
|
} catch (WnbtRestException wre) {
|
||||||
|
throw new WnbtRestException(wre.getMessage());
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new WnbtRestException(ErrorCode.INTERNAL_SERVER_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
package com.wb.domainserver.domain.gcone.setup.family.vo;
|
||||||
|
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.vo.BOMaSopmalVO;
|
||||||
|
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper=false)
|
||||||
|
public class BOFamilyVO extends AbstractVO {
|
||||||
|
|
||||||
|
/** 쇼핑몰 코드 */
|
||||||
|
private String sopmalCd;
|
||||||
|
|
||||||
|
/** 패밀리사이트명 */
|
||||||
|
private String[] familySiteNmArr;
|
||||||
|
|
||||||
|
/** 패밀리사이트URL */
|
||||||
|
private String[] familySiteUrlArr;
|
||||||
|
|
||||||
|
/** BOMaSopmalVO로 변환 */
|
||||||
|
public BOMaSopmalVO setBOMaSopmalVO() {
|
||||||
|
BOMaSopmalVO boMaSopmalVO = new BOMaSopmalVO();
|
||||||
|
boMaSopmalVO.setSopmalCd(this.getSopmalCd());
|
||||||
|
boMaSopmalVO.setFamilySiteNmArr(this.getFamilySiteNmArr());
|
||||||
|
boMaSopmalVO.setFamilySiteUrlArr(this.getFamilySiteUrlArr());
|
||||||
|
boMaSopmalVO.setRegusr(this.getRegusr());
|
||||||
|
boMaSopmalVO.setUpdusr(this.getUpdusr());
|
||||||
|
|
||||||
|
return boMaSopmalVO;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
package com.wb.domainserver.domain.gcone.setup.guidance.service;
|
||||||
|
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.mapper.BOMaSopmalMapper;
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.vo.BOMaSopmalVO;
|
||||||
|
import com.wb.domainserver.domain.admin.sys.comncd.service.BOMaComncdService;
|
||||||
|
import com.wb.domainserver.exception.WnbtRestException;
|
||||||
|
import com.wb.domainserver.exception.code.ErrorCode;
|
||||||
|
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 안내문구 설정 BO Serivce
|
||||||
|
*
|
||||||
|
* @author 이대환
|
||||||
|
* @version 1.0
|
||||||
|
* @see <pre>
|
||||||
|
* == (Modification Information) == 개정이력
|
||||||
|
*
|
||||||
|
* 수정일 수정자 수정내용
|
||||||
|
* ------- -------- ---------------------------
|
||||||
|
* 2026-04-27 이대환 최초 생성
|
||||||
|
*
|
||||||
|
* </pre>
|
||||||
|
* @since 2026-04-27
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@Service
|
||||||
|
public class BOGuidanceService {
|
||||||
|
@Autowired
|
||||||
|
private BOMaComncdService bOMaComncdService;
|
||||||
|
@Autowired
|
||||||
|
private BOMaSopmalMapper mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 안내문구 설정 수정
|
||||||
|
* @param boMaSopmalVO
|
||||||
|
*/
|
||||||
|
@Transactional
|
||||||
|
public DataMap updateBOGuidanceSetup(BOMaSopmalVO boMaSopmalVO) {
|
||||||
|
DataMap message = new DataMap();
|
||||||
|
|
||||||
|
try {
|
||||||
|
mapper.updateBOGuidanceSetup(boMaSopmalVO);
|
||||||
|
message.put("result", "success");
|
||||||
|
} catch (WnbtRestException wre) {
|
||||||
|
throw new WnbtRestException(wre.getMessage());
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new WnbtRestException(ErrorCode.INTERNAL_SERVER_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
package com.wb.domainserver.domain.gcone.setup.guidance.vo;
|
||||||
|
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.vo.BOMaSopmalVO;
|
||||||
|
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper=false)
|
||||||
|
public class BOGuidanceVO extends AbstractVO {
|
||||||
|
|
||||||
|
/** 쇼핑몰 코드 */
|
||||||
|
private String sopmalCd;
|
||||||
|
|
||||||
|
/** 회원가입 안내 타이틀 */
|
||||||
|
private String joinGuidanceSj;
|
||||||
|
|
||||||
|
/** 회원가입 안내문구 */
|
||||||
|
private String joinGuidanceWords;
|
||||||
|
|
||||||
|
/** 회원가입 주요혜택 */
|
||||||
|
private String joinBnef;
|
||||||
|
|
||||||
|
/** 회원가입 주요문구 */
|
||||||
|
private String joinComptWords;
|
||||||
|
|
||||||
|
/** 구독서비스 안내문구 */
|
||||||
|
private String subsvcGuidanceWords;
|
||||||
|
|
||||||
|
/** BOMaSopmalVO로 변환 */
|
||||||
|
public BOMaSopmalVO setBOMaSopmalVO() {
|
||||||
|
BOMaSopmalVO boMaSopmalVO = new BOMaSopmalVO();
|
||||||
|
boMaSopmalVO.setSopmalCd(this.getSopmalCd());
|
||||||
|
boMaSopmalVO.setJoinGuidanceSj(this.getJoinGuidanceSj());
|
||||||
|
boMaSopmalVO.setJoinGuidanceWords(this.getJoinGuidanceWords());
|
||||||
|
boMaSopmalVO.setJoinBnef(this.getJoinBnef());
|
||||||
|
boMaSopmalVO.setJoinComptWords(this.getJoinComptWords());
|
||||||
|
boMaSopmalVO.setSubsvcGuidanceWords(this.getSubsvcGuidanceWords());
|
||||||
|
boMaSopmalVO.setRegusr(this.getRegusr());
|
||||||
|
boMaSopmalVO.setUpdusr(this.getUpdusr());
|
||||||
|
|
||||||
|
return boMaSopmalVO;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -28,28 +28,48 @@ import lombok.EqualsAndHashCode;
|
|||||||
public class BOSetupOrdrVO extends AbstractVO {
|
public class BOSetupOrdrVO extends AbstractVO {
|
||||||
/** 쇼핑몰 코드 */
|
/** 쇼핑몰 코드 */
|
||||||
private String sopmalCd;
|
private String sopmalCd;
|
||||||
/**마일리지 지급 사용여부*/
|
|
||||||
private String mlgPymntAt;
|
// 여러 곳 배송
|
||||||
/**마일리지 지급 구분코드*/
|
/** 여러곳배송여부 */
|
||||||
private String mlgPymntDvCd;
|
|
||||||
/**마일리지 지급 비율*/
|
|
||||||
private String mlgPymntRt;
|
|
||||||
/**마일리지 최대 지급 금액*/
|
|
||||||
private String mlgMxmmPymntAmt;
|
|
||||||
/**마일리지 최대 지급 금액 사용여부*/
|
|
||||||
private String mlgMxmmPymntAmtAt;
|
|
||||||
/**마일리지 유효기간*/
|
|
||||||
private String mlgValidPd;
|
|
||||||
/**마일리지 유효기간 사용여부*/
|
|
||||||
private String mlgValidPdAt;
|
|
||||||
/**여러곳배송여부*/
|
|
||||||
private String multiDlvyAt;
|
private String multiDlvyAt;
|
||||||
/**정기배송여부*/
|
/** 정기배송여부 */
|
||||||
private String fdrmDlvyAt;
|
private String fdrmDlvyAt;
|
||||||
/**선물하기여부*/
|
|
||||||
|
// 선물하기
|
||||||
|
/** 선물하기여부 */
|
||||||
private String giftDlvyAt;
|
private String giftDlvyAt;
|
||||||
/**선물하기자동취소기간*/
|
/** 선물하기자동취소기간 */
|
||||||
private String giftDlvyAtmcCanclPd;
|
private String giftDlvyAtmcCanclPd;
|
||||||
/*충전형마일리지 사용여부*/
|
|
||||||
|
// GC 머니
|
||||||
|
/** 충전형마일리지 사용여부 */
|
||||||
private String cashAt;
|
private String cashAt;
|
||||||
|
|
||||||
|
// 마일리지 지급
|
||||||
|
/** 마일리지 지급 사용여부 */
|
||||||
|
private String mlgPymntAt;
|
||||||
|
/** 마일리지 지급 구분코드 */
|
||||||
|
private String mlgPymntDvCd;
|
||||||
|
/** 마일리지 지급 비율 */
|
||||||
|
private String mlgPymntRt;
|
||||||
|
/** 마일리지 최대 지급 금액 */
|
||||||
|
private String mlgMxmmPymntAmt;
|
||||||
|
/** 마일리지 최대 지급 금액 사용여부 */
|
||||||
|
private String mlgMxmmPymntAmtAt;
|
||||||
|
/** 마일리지 유효기간 */
|
||||||
|
private String mlgValidPd;
|
||||||
|
/** 마일리지 유효기간 사용여부 */
|
||||||
|
private String mlgValidPdAt;
|
||||||
|
|
||||||
|
// 마일리지 사용 조건
|
||||||
|
/** 마일리지 보유 사용 금액 */
|
||||||
|
private String mlgHoldUseAmt;
|
||||||
|
/** 마일리지 결제금액 사용 금액 */
|
||||||
|
private String mlgSetleAmtUseAmt;
|
||||||
|
/** 마일리지 최소 사용 금액 */
|
||||||
|
private String mlgMummUseAmt;
|
||||||
|
/** 마일리지 최대 사용 구분(MLG_MXMM_USE_DV) */
|
||||||
|
private String mlgMxmmUseDv;
|
||||||
|
/** 마일리지 최대 사용 금액 */
|
||||||
|
private String mlgMxmmUseAmt;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,116 @@
|
|||||||
|
package com.wb.domainserver.domain.mngr.setup.exchngrt;
|
||||||
|
|
||||||
|
import com.wb.domainserver.common.msg.GconeMessageSource;
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.service.BOMaSopmalService;
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.vo.BOMaSopmalVO;
|
||||||
|
import com.wb.domainserver.domain.gcone.setup.exchngrt.service.BOExchngrtService;
|
||||||
|
import com.wb.domainserver.domain.gcone.setup.exchngrt.vo.BOExchngrtVO;
|
||||||
|
import com.wb.domainserver.exception.WnbtRestException;
|
||||||
|
import com.wb.domainserver.response.WnbtResponse;
|
||||||
|
import com.wb.domainserver.response.WnbtResponseBody;
|
||||||
|
import com.wb.domainserver.response.WnbtWebClientResponseHandler;
|
||||||
|
import com.wb.domainserver.security.authentication.AnonymousUser;
|
||||||
|
import com.wb.domainserver.security.authentication.MemberJwtContextHolder;
|
||||||
|
import com.wb.domainserver.security.authorization.annotation.AuthPolicy;
|
||||||
|
import com.wb.domainserver.security.authorization.annotation.Policy;
|
||||||
|
import com.wb.domainserver.util.communicate.SendToResrc;
|
||||||
|
import com.wb.domainserver.util.communicate.ValidateResultConverter;
|
||||||
|
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.http.MediaType;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.validation.BindingResult;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.CookieValue;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 환율 설정 Controller
|
||||||
|
*
|
||||||
|
* @author 이대환
|
||||||
|
* @version 1.0
|
||||||
|
* @see <pre>
|
||||||
|
* == (Modification Information) == 개정이력
|
||||||
|
*
|
||||||
|
* 수정일 수정자 수정내용
|
||||||
|
* ------- -------- ---------------------------
|
||||||
|
* 2026-04-27 이대환 최초 생성
|
||||||
|
*
|
||||||
|
* </pre>
|
||||||
|
* @since 2026-04-27
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/mngr/setup/exchngrt")
|
||||||
|
@Slf4j
|
||||||
|
public class ExchngrtController {
|
||||||
|
|
||||||
|
/** WebClient 호출을 위한 wrapper */
|
||||||
|
@Autowired
|
||||||
|
WnbtWebClientResponseHandler responseHandler;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SendToResrc sendToResrc;
|
||||||
|
|
||||||
|
/** 공통 메시지 처리를 위한 메시지 객체 */
|
||||||
|
@Autowired
|
||||||
|
private GconeMessageSource gconeMessageSource;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private BOExchngrtService service;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private BOMaSopmalService bOMaSopmalService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 환율 설정 페이지 이동
|
||||||
|
*
|
||||||
|
* @param boMaSopmalVO
|
||||||
|
* @return NbkkSetupListR.jsp
|
||||||
|
*/
|
||||||
|
@Policy(AuthPolicy.RESTRICTED)
|
||||||
|
@RequestMapping(value = "/selectExchngrtSetup")
|
||||||
|
public String selectExchngrtSetup(BOMaSopmalVO boMaSopmalVO, ModelMap model, @CookieValue(value = "authSopmalCd") String authSopmalCd) {
|
||||||
|
DataMap content = new DataMap();
|
||||||
|
|
||||||
|
boMaSopmalVO.setSopmalCd(authSopmalCd);
|
||||||
|
content.put("sopmalDetailList", bOMaSopmalService.selectBOSopmalUpdtForm(boMaSopmalVO));
|
||||||
|
|
||||||
|
model.addAttribute("resultMap", content);
|
||||||
|
|
||||||
|
return "mngr/setup/exchngrt/ExchngrtUpdtU";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 환율 설정 수정
|
||||||
|
*
|
||||||
|
* @param boExchngrtVO
|
||||||
|
* @return ResponseEntity<WnbtResponse>
|
||||||
|
*/
|
||||||
|
@Policy(AuthPolicy.RESTRICTED)
|
||||||
|
@PostMapping(value = "/updateExchngrtSetup", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||||
|
public ResponseEntity<WnbtResponse> updateExchngrtSetup(@Validated BOExchngrtVO boExchngrtVO, BindingResult bindingResult, @CookieValue(value = "authSopmalCd") String authSopmalCd) {
|
||||||
|
//등록자 수정자 set
|
||||||
|
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||||
|
boExchngrtVO.setRegusr(user.getUserInnb());
|
||||||
|
boExchngrtVO.setUpdusr(user.getUserInnb());
|
||||||
|
boExchngrtVO.setSopmalCd(authSopmalCd);
|
||||||
|
|
||||||
|
if (bindingResult.hasErrors()) {
|
||||||
|
throw new WnbtRestException(ValidateResultConverter.convert(bindingResult, gconeMessageSource));
|
||||||
|
}
|
||||||
|
|
||||||
|
DataMap message = service.updateBOExchngrtSetup(boExchngrtVO.setBOMaSopmalVO());
|
||||||
|
|
||||||
|
return ResponseEntity.ok(
|
||||||
|
WnbtResponse.builder()
|
||||||
|
.resBody(new WnbtResponseBody(message))
|
||||||
|
.build()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,115 @@
|
|||||||
|
package com.wb.domainserver.domain.mngr.setup.family;
|
||||||
|
|
||||||
|
import com.wb.domainserver.common.msg.GconeMessageSource;
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.service.BOMaSopmalService;
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.vo.BOMaSopmalVO;
|
||||||
|
import com.wb.domainserver.domain.gcone.setup.family.service.BOFamilyService;
|
||||||
|
import com.wb.domainserver.domain.gcone.setup.family.vo.BOFamilyVO;
|
||||||
|
import com.wb.domainserver.exception.WnbtRestException;
|
||||||
|
import com.wb.domainserver.response.WnbtResponse;
|
||||||
|
import com.wb.domainserver.response.WnbtResponseBody;
|
||||||
|
import com.wb.domainserver.response.WnbtWebClientResponseHandler;
|
||||||
|
import com.wb.domainserver.security.authentication.AnonymousUser;
|
||||||
|
import com.wb.domainserver.security.authentication.MemberJwtContextHolder;
|
||||||
|
import com.wb.domainserver.security.authorization.annotation.AuthPolicy;
|
||||||
|
import com.wb.domainserver.security.authorization.annotation.Policy;
|
||||||
|
import com.wb.domainserver.util.communicate.SendToResrc;
|
||||||
|
import com.wb.domainserver.util.communicate.ValidateResultConverter;
|
||||||
|
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.http.MediaType;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.validation.BindingResult;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.CookieValue;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 패밀리사이트 설정 Controller
|
||||||
|
*
|
||||||
|
* @author 이대환
|
||||||
|
* @version 1.0
|
||||||
|
* @see <pre>
|
||||||
|
* == (Modification Information) == 개정이력
|
||||||
|
*
|
||||||
|
* 수정일 수정자 수정내용
|
||||||
|
* ------- -------- ---------------------------
|
||||||
|
* 2026-04-27 이대환 최초 생성
|
||||||
|
*
|
||||||
|
* </pre>
|
||||||
|
* @since 2026-04-27
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/mngr/setup/family")
|
||||||
|
@Slf4j
|
||||||
|
public class FamilyController {
|
||||||
|
|
||||||
|
/** WebClient 호출을 위한 wrapper */
|
||||||
|
@Autowired
|
||||||
|
WnbtWebClientResponseHandler responseHandler;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SendToResrc sendToResrc;
|
||||||
|
|
||||||
|
/** 공통 메시지 처리를 위한 메시지 객체 */
|
||||||
|
@Autowired
|
||||||
|
private GconeMessageSource gconeMessageSource;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private BOFamilyService service;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private BOMaSopmalService bOMaSopmalService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 패밀리사이트 설정 페이지 이동
|
||||||
|
*
|
||||||
|
* @param boMaSopmalVO
|
||||||
|
* @return NbkkSetupListR.jsp
|
||||||
|
*/
|
||||||
|
@Policy(AuthPolicy.RESTRICTED)
|
||||||
|
@RequestMapping(value = "/selectFamilySiteSetup")
|
||||||
|
public String selectFamilySiteSetup(BOMaSopmalVO boMaSopmalVO, ModelMap model, @CookieValue(value = "authSopmalCd") String authSopmalCd) {
|
||||||
|
DataMap content = new DataMap();
|
||||||
|
|
||||||
|
boMaSopmalVO.setSopmalCd(authSopmalCd);
|
||||||
|
content.put("siteList", bOMaSopmalService.selectBOSopmalUpdtFormSitelList(boMaSopmalVO));
|
||||||
|
|
||||||
|
model.addAttribute("resultMap", content);
|
||||||
|
|
||||||
|
return "mngr/setup/family/FamilySiteUpdtU";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 패밀리사이트 설정 수정
|
||||||
|
*
|
||||||
|
* @param boFamilyVO
|
||||||
|
* @return ResponseEntity<WnbtResponse>
|
||||||
|
*/
|
||||||
|
@Policy(AuthPolicy.RESTRICTED)
|
||||||
|
@PostMapping(value = "/updateFamilySiteSetup", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||||
|
public ResponseEntity<WnbtResponse> updateNbkkSetup(@Validated BOFamilyVO boFamilyVO, BindingResult bindingResult, @CookieValue(value = "authSopmalCd") String authSopmalCd) {
|
||||||
|
//등록자 수정자 set
|
||||||
|
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||||
|
boFamilyVO.setRegusr(user.getUserInnb());
|
||||||
|
boFamilyVO.setUpdusr(user.getUserInnb());
|
||||||
|
boFamilyVO.setSopmalCd(authSopmalCd);
|
||||||
|
|
||||||
|
if (bindingResult.hasErrors()) {
|
||||||
|
throw new WnbtRestException(ValidateResultConverter.convert(bindingResult, gconeMessageSource));
|
||||||
|
}
|
||||||
|
|
||||||
|
DataMap message = service.updateBOFamilySetup(boFamilyVO.setBOMaSopmalVO());
|
||||||
|
|
||||||
|
return ResponseEntity.ok(
|
||||||
|
WnbtResponse.builder()
|
||||||
|
.resBody(new WnbtResponseBody(message))
|
||||||
|
.build()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
package com.wb.domainserver.domain.mngr.setup.guidance;
|
||||||
|
|
||||||
|
import com.wb.domainserver.common.msg.GconeMessageSource;
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.service.BOMaSopmalService;
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.vo.BOMaSopmalVO;
|
||||||
|
import com.wb.domainserver.domain.gcone.setup.guidance.service.BOGuidanceService;
|
||||||
|
import com.wb.domainserver.domain.gcone.setup.guidance.vo.BOGuidanceVO;
|
||||||
|
import com.wb.domainserver.exception.WnbtRestException;
|
||||||
|
import com.wb.domainserver.response.WnbtResponse;
|
||||||
|
import com.wb.domainserver.response.WnbtResponseBody;
|
||||||
|
import com.wb.domainserver.response.WnbtWebClientResponseHandler;
|
||||||
|
import com.wb.domainserver.security.authentication.AnonymousUser;
|
||||||
|
import com.wb.domainserver.security.authentication.MemberJwtContextHolder;
|
||||||
|
import com.wb.domainserver.security.authorization.annotation.AuthPolicy;
|
||||||
|
import com.wb.domainserver.security.authorization.annotation.Policy;
|
||||||
|
import com.wb.domainserver.util.communicate.SendToResrc;
|
||||||
|
import com.wb.domainserver.util.communicate.ValidateResultConverter;
|
||||||
|
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.http.MediaType;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.validation.BindingResult;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.CookieValue;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 안내문구 설정 Controller
|
||||||
|
*
|
||||||
|
* @author 이대환
|
||||||
|
* @version 1.0
|
||||||
|
* @see <pre>
|
||||||
|
* == (Modification Information) == 개정이력
|
||||||
|
*
|
||||||
|
* 수정일 수정자 수정내용
|
||||||
|
* ------- -------- ---------------------------
|
||||||
|
* 2026-04-27 이대환 최초 생성
|
||||||
|
*
|
||||||
|
* </pre>
|
||||||
|
* @since 2026-04-27
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/mngr/setup/guidance")
|
||||||
|
@Slf4j
|
||||||
|
public class GuidanceController {
|
||||||
|
|
||||||
|
/** WebClient 호출을 위한 wrapper */
|
||||||
|
@Autowired
|
||||||
|
WnbtWebClientResponseHandler responseHandler;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SendToResrc sendToResrc;
|
||||||
|
|
||||||
|
/** 공통 메시지 처리를 위한 메시지 객체 */
|
||||||
|
@Autowired
|
||||||
|
private GconeMessageSource gconeMessageSource;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private BOGuidanceService service;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private BOMaSopmalService bOMaSopmalService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 안내문구 설정 페이지 이동
|
||||||
|
*
|
||||||
|
* @param boMaSopmalVO
|
||||||
|
* @return NbkkSetupListR.jsp
|
||||||
|
*/
|
||||||
|
@Policy(AuthPolicy.RESTRICTED)
|
||||||
|
@RequestMapping(value = "/selectGuidanceSetup")
|
||||||
|
public String selectNbkkSetupList(BOMaSopmalVO boMaSopmalVO, ModelMap model, @CookieValue(value = "authSopmalCd") String authSopmalCd) {
|
||||||
|
DataMap content = new DataMap();
|
||||||
|
|
||||||
|
boMaSopmalVO.setSopmalCd(authSopmalCd);
|
||||||
|
content.put("sopmalDetailList", bOMaSopmalService.selectBOSopmalUpdtForm(boMaSopmalVO));
|
||||||
|
|
||||||
|
model.addAttribute("resultMap", content);
|
||||||
|
model.addAttribute("sopmalCd", authSopmalCd);
|
||||||
|
|
||||||
|
return "mngr/setup/guidance/GuidanceUpdtU";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 안내문구 설정 수정
|
||||||
|
*
|
||||||
|
* @param boGuidanceVO
|
||||||
|
* @return ResponseEntity<WnbtResponse>
|
||||||
|
*/
|
||||||
|
@Policy(AuthPolicy.RESTRICTED)
|
||||||
|
@PostMapping(value = "/updateGuidanceSetup", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||||
|
public ResponseEntity<WnbtResponse> updateGuidanceSetup(@Validated BOGuidanceVO boGuidanceVO, BindingResult bindingResult, @CookieValue(value = "authSopmalCd") String authSopmalCd) {
|
||||||
|
//등록자 수정자 set
|
||||||
|
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||||
|
boGuidanceVO.setRegusr(user.getUserInnb());
|
||||||
|
boGuidanceVO.setUpdusr(user.getUserInnb());
|
||||||
|
boGuidanceVO.setSopmalCd(authSopmalCd);
|
||||||
|
|
||||||
|
if (bindingResult.hasErrors()) {
|
||||||
|
throw new WnbtRestException(ValidateResultConverter.convert(bindingResult, gconeMessageSource));
|
||||||
|
}
|
||||||
|
|
||||||
|
DataMap message = service.updateBOGuidanceSetup(boGuidanceVO.setBOMaSopmalVO());
|
||||||
|
|
||||||
|
return ResponseEntity.ok(
|
||||||
|
WnbtResponse.builder()
|
||||||
|
.resBody(new WnbtResponseBody(message))
|
||||||
|
.build()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
package com.wb.domainserver.domain.mngr.setup.ordr.controller;
|
package com.wb.domainserver.domain.mngr.setup.ordr.controller;
|
||||||
|
|
||||||
import com.wb.domainserver.common.msg.GconeMessageSource;
|
import com.wb.domainserver.common.msg.GconeMessageSource;
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.service.BOMaSopmalService;
|
||||||
|
import com.wb.domainserver.domain.admin.store.sopmal.vo.BOMaSopmalVO;
|
||||||
import com.wb.domainserver.domain.gcone.setup.ordrmngr.service.BOOrdrMngrService;
|
import com.wb.domainserver.domain.gcone.setup.ordrmngr.service.BOOrdrMngrService;
|
||||||
import com.wb.domainserver.domain.gcone.setup.ordrmngr.vo.BOSetupOrdrVO;
|
import com.wb.domainserver.domain.gcone.setup.ordrmngr.vo.BOSetupOrdrVO;
|
||||||
import com.wb.domainserver.exception.WnbtRestException;
|
import com.wb.domainserver.exception.WnbtRestException;
|
||||||
@@ -13,6 +15,7 @@ import com.wb.domainserver.security.authorization.annotation.AuthPolicy;
|
|||||||
import com.wb.domainserver.security.authorization.annotation.Policy;
|
import com.wb.domainserver.security.authorization.annotation.Policy;
|
||||||
import com.wb.domainserver.util.communicate.SendToResrc;
|
import com.wb.domainserver.util.communicate.SendToResrc;
|
||||||
import com.wb.domainserver.util.communicate.ValidateResultConverter;
|
import com.wb.domainserver.util.communicate.ValidateResultConverter;
|
||||||
|
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||||
import com.wb.domainserver.util.string.StringUtil;
|
import com.wb.domainserver.util.string.StringUtil;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@@ -63,6 +66,8 @@ public class SetupOrdrController {
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private BOOrdrMngrService service;
|
private BOOrdrMngrService service;
|
||||||
|
@Autowired
|
||||||
|
private BOMaSopmalService bOMaSopmalService;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -73,15 +78,14 @@ public class SetupOrdrController {
|
|||||||
@Policy(AuthPolicy.RESTRICTED)
|
@Policy(AuthPolicy.RESTRICTED)
|
||||||
@RequestMapping(value="/selectOrdrSetupList")
|
@RequestMapping(value="/selectOrdrSetupList")
|
||||||
public String selectOrdrSetupList(ModelMap model, BOSetupOrdrVO boOrdrVO, @CookieValue(value = "authSopmalCd") String authSopmalCd) {
|
public String selectOrdrSetupList(ModelMap model, BOSetupOrdrVO boOrdrVO, @CookieValue(value = "authSopmalCd") String authSopmalCd) {
|
||||||
|
DataMap content = new DataMap();
|
||||||
|
|
||||||
boOrdrVO.setSopmalCd(authSopmalCd);
|
boOrdrVO.setSopmalCd(authSopmalCd);
|
||||||
|
content.put("ordrSetupList", service.selectBOOrdrSetupList(boOrdrVO));
|
||||||
|
|
||||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
BOMaSopmalVO boMaSopmalVO = new BOMaSopmalVO();
|
||||||
if("01".equals(user.getSysDvCd())){
|
boMaSopmalVO.setSopmalCd(authSopmalCd);
|
||||||
boOrdrVO.setSopmalCd(user.getSopmalCd());
|
content.put("sopmalDetailList", bOMaSopmalService.selectBOSopmalUpdtForm(boMaSopmalVO));
|
||||||
}
|
|
||||||
|
|
||||||
Map<String, Object> content = service.selectBOOrdrSetupList(boOrdrVO);
|
|
||||||
|
|
||||||
model.addAttribute("resultMap", content);
|
model.addAttribute("resultMap", content);
|
||||||
// responseHandler.handleResponse(
|
// responseHandler.handleResponse(
|
||||||
@@ -154,6 +158,19 @@ public class SetupOrdrController {
|
|||||||
vo.setMlgMxmmPymntAmt(null);
|
vo.setMlgMxmmPymntAmt(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//마일리지 사용 조건 파라미터 정제
|
||||||
|
if(!StringUtil.isEmpty(vo.getMlgHoldUseAmt()))
|
||||||
|
vo.setMlgHoldUseAmt(StringUtil.removeCommaChar(vo.getMlgHoldUseAmt()));
|
||||||
|
|
||||||
|
if(!StringUtil.isEmpty(vo.getMlgSetleAmtUseAmt()))
|
||||||
|
vo.setMlgSetleAmtUseAmt(StringUtil.removeCommaChar(vo.getMlgSetleAmtUseAmt()));
|
||||||
|
|
||||||
|
if(!StringUtil.isEmpty(vo.getMlgMummUseAmt()))
|
||||||
|
vo.setMlgMummUseAmt(StringUtil.removeCommaChar(vo.getMlgMummUseAmt()));
|
||||||
|
|
||||||
|
if(!StringUtil.isEmpty(vo.getMlgMxmmUseAmt()))
|
||||||
|
vo.setMlgMxmmUseAmt(StringUtil.removeCommaChar(vo.getMlgMxmmUseAmt()));
|
||||||
|
|
||||||
//등록자 수정자 set
|
//등록자 수정자 set
|
||||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||||
if("01".equals(user.getSysDvCd())){
|
if("01".equals(user.getSysDvCd())){
|
||||||
|
|||||||
@@ -947,6 +947,37 @@
|
|||||||
SOPMAL_CD = #{sopmalCd}
|
SOPMAL_CD = #{sopmalCd}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<!-- 쇼핑몰 환율 설정 수정 -->
|
||||||
|
<update id="updateBOExchngrtSetup" parameterType="com.wb.domainserver.domain.admin.store.sopmal.vo.BOMaSopmalVO" >
|
||||||
|
UPDATE
|
||||||
|
GC_SHOP
|
||||||
|
SET BUY_RATE = #{buyRate},
|
||||||
|
SELL_RATE = #{sellRate},
|
||||||
|
UPDUSR = #{updusr},
|
||||||
|
UPDT_DT = SYSDATE()
|
||||||
|
WHERE
|
||||||
|
1=1
|
||||||
|
AND
|
||||||
|
SOPMAL_CD = #{sopmalCd}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<!-- 쇼핑몰 안내문구 설정 수정 -->
|
||||||
|
<update id="updateBOGuidanceSetup" parameterType="com.wb.domainserver.domain.admin.store.sopmal.vo.BOMaSopmalVO" >
|
||||||
|
UPDATE
|
||||||
|
GC_SHOP
|
||||||
|
SET JOIN_GUIDANCE_SJ = #{joinGuidanceSj},
|
||||||
|
JOIN_GUIDANCE_WORDS = #{joinGuidanceWords},
|
||||||
|
JOIN_BNEF = #{joinBnef},
|
||||||
|
JOIN_COMPT_WORDS = #{joinComptWords},
|
||||||
|
SUBSVC_GUIDANCE_WORDS = #{subsvcGuidanceWords},
|
||||||
|
UPDUSR = #{updusr},
|
||||||
|
UPDT_DT = SYSDATE()
|
||||||
|
WHERE
|
||||||
|
1=1
|
||||||
|
AND
|
||||||
|
SOPMAL_CD = #{sopmalCd}
|
||||||
|
</update>
|
||||||
|
|
||||||
<!-- 쇼핑몰 사업자 정보 삭제 -->
|
<!-- 쇼핑몰 사업자 정보 삭제 -->
|
||||||
<delete id="deteteBOShopCompany" parameterType="com.wb.domainserver.domain.admin.sys.author.vo.BOMaAuthorVO">
|
<delete id="deteteBOShopCompany" parameterType="com.wb.domainserver.domain.admin.sys.author.vo.BOMaAuthorVO">
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,12 @@
|
|||||||
<!--주문 설정 수정-->
|
<!--주문 설정 수정-->
|
||||||
<update id="updateBOOrdrSetup">
|
<update id="updateBOOrdrSetup">
|
||||||
UPDATE GC_SHOP
|
UPDATE GC_SHOP
|
||||||
SET MLG_PYMNT_AT = #{mlgPymntAt},
|
SET CASH_AT = IFNULL(#{cashAt},'N'),
|
||||||
|
MULTI_DLVY_AT = IFNULL(#{multiDlvyAt},'N'),
|
||||||
|
FDRM_DLVY_AT = IFNULL(#{fdrmDlvyAt},'N'),
|
||||||
|
GIFT_DLVY_AT = IFNULL(#{giftDlvyAt},'N'),
|
||||||
|
GIFT_DLVY_ATMC_CANCL_PD = #{giftDlvyAtmcCanclPd},
|
||||||
|
MLG_PYMNT_AT = #{mlgPymntAt},
|
||||||
MLG_PYMNT_DV_CD = #{mlgPymntDvCd},
|
MLG_PYMNT_DV_CD = #{mlgPymntDvCd},
|
||||||
MLG_PYMNT_RT = REPLACE(#{mlgPymntRt},',',''),
|
MLG_PYMNT_RT = REPLACE(#{mlgPymntRt},',',''),
|
||||||
MLG_MXMM_PYMNT_AMT = REPLACE(#{mlgMxmmPymntAmt},',',''),
|
MLG_MXMM_PYMNT_AMT = REPLACE(#{mlgMxmmPymntAmt},',',''),
|
||||||
@@ -63,11 +68,13 @@
|
|||||||
MLG_VALID_PD_AT = 'Y',
|
MLG_VALID_PD_AT = 'Y',
|
||||||
</otherwise>
|
</otherwise>
|
||||||
</choose>
|
</choose>
|
||||||
CASH_AT = IFNULL(#{cashAt},'N'),
|
MLG_HOLD_USE_AMT = #{mlgHoldUseAmt},
|
||||||
MULTI_DLVY_AT = IFNULL(#{multiDlvyAt},'N'),
|
MLG_SETLE_AMT_USE_AMT = #{mlgSetleAmtUseAmt},
|
||||||
FDRM_DLVY_AT = IFNULL(#{fdrmDlvyAt},'N'),
|
MLG_MUMM_USE_AMT = #{mlgMummUseAmt},
|
||||||
GIFT_DLVY_AT = IFNULL(#{giftDlvyAt},'N'),
|
MLG_MXMM_USE_DV = #{mlgMxmmUseDv},
|
||||||
GIFT_DLVY_ATMC_CANCL_PD = #{giftDlvyAtmcCanclPd}
|
MLG_MXMM_USE_AMT = #{mlgMxmmUseAmt},
|
||||||
|
UPDUSR = #{updusr},
|
||||||
|
UPDT_DT = SYSDATE()
|
||||||
WHERE SOPMAL_CD = #{sopmalCd}
|
WHERE SOPMAL_CD = #{sopmalCd}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,110 @@
|
|||||||
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||||
|
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui" %>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||||
|
<%--
|
||||||
|
Class Name : ExchngrtUpdtU.jsp
|
||||||
|
Description : 환율 설정 상세
|
||||||
|
Modification Information
|
||||||
|
|
||||||
|
수정일 수정자 수정내용
|
||||||
|
------- -------- ---------------------------
|
||||||
|
2026-04-27 이대환 최초 생성
|
||||||
|
--%>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ko">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<%-- 공통 include --%>
|
||||||
|
<%@include file ="/WEB-INF/views/comm/mngr/Include.jsp" %>
|
||||||
|
</head>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
});
|
||||||
|
|
||||||
|
/* ********************************************************
|
||||||
|
* 환율 설정 저장
|
||||||
|
******************************************************** */
|
||||||
|
const fn_update_exchngrt = function () {
|
||||||
|
if (confirm('환율 설정을 <spring:message code="confirm.common.save"/>')) {
|
||||||
|
$.ajax({
|
||||||
|
type: 'post',
|
||||||
|
url: '<c:url value="/mngr/setup/exchngrt/updateExchngrtSetup"/>',
|
||||||
|
data: $('#updtForm').serialize(),
|
||||||
|
success: function () {
|
||||||
|
alert("<spring:message code="success.common.save"/>");
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<body>
|
||||||
|
<%-- 상단메뉴 공통화 적용 : 2023-11-30 / 박철민 추가 --%>
|
||||||
|
<%@include file="/WEB-INF/views/comm/mngr/Header.jsp" %>
|
||||||
|
<main class="main">
|
||||||
|
<%-- 좌측메뉴 공통화 적용 : 2023-11-30 / 박철민 추가 --%>
|
||||||
|
<%@include file="/WEB-INF/views/comm/mngr/Left.jsp" %>
|
||||||
|
<div class="content">
|
||||||
|
<div class="content__inner">
|
||||||
|
<button class="side-nav__fold"><span class="visually-hidden">좌측메뉴 펼치기/닫기</span></button>
|
||||||
|
<div class="page-title">
|
||||||
|
<h2 class="page-title__title">환율 설정</h2>
|
||||||
|
<div class="page-title__btn-container">
|
||||||
|
<button class="btn primary" onclick="fn_update_exchngrt()">저장하기
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<form id="updtForm">
|
||||||
|
<section class="content-section">
|
||||||
|
<div class="form-control-container mb-8">
|
||||||
|
<div class="left">
|
||||||
|
<h3 class="content-section__inner-title">주문 설정</h3>
|
||||||
|
</div>
|
||||||
|
<div class="center"></div>
|
||||||
|
<div class="right"></div>
|
||||||
|
</div>
|
||||||
|
<div class="table-wrapper">
|
||||||
|
<table class="table ">
|
||||||
|
<caption>주문 설정</caption>
|
||||||
|
<colgroup>
|
||||||
|
<col style="width: 14%;">
|
||||||
|
<col style="width: 38%;">
|
||||||
|
<col style="width: 14%;">
|
||||||
|
<col style="width: 38%;">
|
||||||
|
</colgroup>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>환율(살때) 일본 1円(엔)기준</th>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="td-inner">
|
||||||
|
<div class="input-container">
|
||||||
|
<input type="text" class="input-text sm right" name="buyRate" id="buyRate" title="1엔 환율(살때)" value="${resultMap.sopmalDetailList[0].buyRate}">
|
||||||
|
<span class="input-unit-text">원</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<%-- <th>환율(팔때) 일본 1円(엔)기준</th>
|
||||||
|
<td>
|
||||||
|
<div class="td-inner">
|
||||||
|
<div class="input-container">
|
||||||
|
<input type="text" class="input-text sm right" name="sellRate" id="sellRate" title="1엔 환율(팔때)" value="${resultMap.sopmalDetailList[0].sellRate}">
|
||||||
|
<span class="input-unit-text">원</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>--%>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</form>
|
||||||
|
<button class="scroll-to-top"><span class="visually-hidden">위로가기</span></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,236 @@
|
|||||||
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||||
|
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui" %>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||||
|
<%--
|
||||||
|
Class Name : FamilySiteUpdtU.jsp
|
||||||
|
Description : 패밀리사이트 설정 상세
|
||||||
|
Modification Information
|
||||||
|
|
||||||
|
수정일 수정자 수정내용
|
||||||
|
------- -------- ---------------------------
|
||||||
|
2026-04-27 이대환 최초 생성
|
||||||
|
--%>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ko">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<%-- 공통 include --%>
|
||||||
|
<%@include file ="/WEB-INF/views/comm/mngr/Include.jsp" %>
|
||||||
|
</head>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
});
|
||||||
|
|
||||||
|
/* ********************************************************
|
||||||
|
* 입력창 추가
|
||||||
|
******************************************************** */
|
||||||
|
const fn_add_emptyBox = function(_target) {
|
||||||
|
|
||||||
|
stplatChk = false;
|
||||||
|
let count = 0;
|
||||||
|
let trClone = '';
|
||||||
|
|
||||||
|
if (_target === 'clauseChk') {
|
||||||
|
|
||||||
|
count = $('#tableSorting').children('tr').length + 1;
|
||||||
|
|
||||||
|
trClone = '<tr>'
|
||||||
|
+ ' <td>'
|
||||||
|
+ ' <label class="b-checkbox checkbox is-medium">'
|
||||||
|
+ ' <input type="checkbox" name="clauseChk" value=""><span class="check"></span>'
|
||||||
|
+ ' </label>'
|
||||||
|
+ ' </td>'
|
||||||
|
+ ' <td>'
|
||||||
|
+ ' <div class="select-box">'
|
||||||
|
+ ' <select class="full" name="clause" id="clause' + count + '" title="약관구분" onchange="fn_select_subClause(this);">'
|
||||||
|
+ ' <option value="" selected >선택하세요</option>'
|
||||||
|
+ ' <c:forEach var="cgn002" items="${resultMap.cgn002}" varStatus="status">'
|
||||||
|
+ ' <option value="${cgn002.cd}"><c:out value="${cgn002.cdNm}"/></option>'
|
||||||
|
+ ' </c:forEach>'
|
||||||
|
+ ' </select>'
|
||||||
|
+ ' </div>'
|
||||||
|
+ ' </td>'
|
||||||
|
+ ' <td>'
|
||||||
|
+ ' <div class="select-box privacyPolicy-select">'
|
||||||
|
+ ' <select class="full" name="stplatInnbArr" id="privacyPolicy' + count + '" title="약관 내용">'
|
||||||
|
+ ' <option value="" selected >약관 구분을 선택하세요</option>'
|
||||||
|
+ ' </select>'
|
||||||
|
+ ' </div>'
|
||||||
|
+ ' </td>'
|
||||||
|
+ ' <td>'
|
||||||
|
+ ' <div class="manage-btn-container">'
|
||||||
|
+ ' <a href="#clause-info-modal" rel="modal:open" class="btn xsm primary outline privacy" onclick="fn_select_clauseInformation(\'new\');"><spring:message code="button.view"/></a>'
|
||||||
|
+ ' </div>'
|
||||||
|
+ ' </td>'
|
||||||
|
+ '</tr>';
|
||||||
|
|
||||||
|
$('#tableSorting').append(trClone);
|
||||||
|
$('#clause' + count).niceSelect();
|
||||||
|
$('#privacyPolicy' + count).niceSelect();
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
trClone = '<tr>'
|
||||||
|
+ ' <td>'
|
||||||
|
+ ' <label class="b-checkbox checkbox is-medium">'
|
||||||
|
+ ' <input type="checkbox" name="siteChk" value=""><span class="check"></span>'
|
||||||
|
+ ' </label>'
|
||||||
|
+ ' </td>'
|
||||||
|
+ ' <td>'
|
||||||
|
+ ' <div class="td-inner">'
|
||||||
|
+ ' <input type="text" class="input-text xl" name="familySiteNmArr" title="패밀리 사이트명" maxlength="20">'
|
||||||
|
+ ' </div>'
|
||||||
|
+ ' </td>'
|
||||||
|
+ ' <td>'
|
||||||
|
+ ' <div class="td-inner">'
|
||||||
|
+ ' <input type="text" class="input-text full" name="familySiteUrlArr" title="URL" maxlength="30">'
|
||||||
|
+ ' </div>'
|
||||||
|
+ ' </td>'
|
||||||
|
+ '</tr>';
|
||||||
|
|
||||||
|
$('#tableSiteSorting').append(trClone);
|
||||||
|
$('#noData').hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ********************************************************
|
||||||
|
* 입력창 삭제
|
||||||
|
******************************************************** */
|
||||||
|
const fn_remove_box = function(_target) {
|
||||||
|
|
||||||
|
const target = $('[name=' + _target + ']:checked');
|
||||||
|
|
||||||
|
if (target.length === 0) {
|
||||||
|
alert('항목을 선택해 주세요.');
|
||||||
|
} else {
|
||||||
|
target.each(function() {
|
||||||
|
$(this).parents('tr').remove();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_target === 'clauseChk') {
|
||||||
|
$('#clauseAll').prop('checked', false);
|
||||||
|
} else {
|
||||||
|
$('#siteAll').prop('checked', false);
|
||||||
|
const total = $('#tableSiteSorting').find('tr').length;
|
||||||
|
|
||||||
|
if (total === 1) {
|
||||||
|
|
||||||
|
$('#noData').show();
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
$('#noData').hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ********************************************************
|
||||||
|
* 패밀리사이트 설정 저장
|
||||||
|
******************************************************** */
|
||||||
|
const fn_update_family = function () {
|
||||||
|
if (confirm('패밀리사이트 설정을 <spring:message code="confirm.common.save"/>')) {
|
||||||
|
$.ajax({
|
||||||
|
type: 'post',
|
||||||
|
url: '<c:url value="/mngr/setup/family/updateFamilySiteSetup"/>',
|
||||||
|
data: $('#updtForm').serialize(),
|
||||||
|
success: function () {
|
||||||
|
alert("<spring:message code="success.common.save"/>");
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<body>
|
||||||
|
<%-- 상단메뉴 공통화 적용 : 2023-11-30 / 박철민 추가 --%>
|
||||||
|
<%@include file ="/WEB-INF/views/comm/mngr/Header.jsp" %>
|
||||||
|
<main class="main">
|
||||||
|
<%-- 좌측메뉴 공통화 적용 : 2023-11-30 / 박철민 추가 --%>
|
||||||
|
<%@include file ="/WEB-INF/views/comm/mngr/Left.jsp" %>
|
||||||
|
<div class="content">
|
||||||
|
<div class="content__inner">
|
||||||
|
<button class="side-nav__fold"><span class="visually-hidden">좌측메뉴 펼치기/닫기</span></button>
|
||||||
|
<div class="page-title">
|
||||||
|
<h2 class="page-title__title">패밀리사이트 설정</h2>
|
||||||
|
<div class="page-title__btn-container">
|
||||||
|
<button class="btn primary" onclick="fn_update_family()">저장하기
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<form id="updtForm">
|
||||||
|
<section class="content-section">
|
||||||
|
<div class="form-control-container mb-8">
|
||||||
|
<div class="left">
|
||||||
|
<h3 class="content-section__inner-title">패밀리사이트 설정</h3>
|
||||||
|
</div>
|
||||||
|
<div class="center"></div>
|
||||||
|
<div class="right">
|
||||||
|
<button type="button" class="btn primary outline xsm" onclick="fn_add_emptyBox('siteChk');"><spring:message code="button.add"/></button>
|
||||||
|
<button type="button" class="btn dark xsm" onclick="fn_remove_box('siteChk');"><spring:message code="button.delete"/></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="table-wrapper">
|
||||||
|
<table class="table vertical">
|
||||||
|
<caption>패밀리사이트 설정</caption>
|
||||||
|
<colgroup>
|
||||||
|
<col style="width: 6%;">
|
||||||
|
<col style="width: 25%;">
|
||||||
|
<col style="width: auto;">
|
||||||
|
</colgroup>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
<label class="b-checkbox checkbox is-medium check-all">
|
||||||
|
<input type="checkbox" value="" id="siteAll"><span class="check"></span>
|
||||||
|
</label>
|
||||||
|
</th>
|
||||||
|
<th>패밀리 사이트명</th>
|
||||||
|
<th>URL</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody id="tableSiteSorting">
|
||||||
|
<c:if test="${not empty resultMap.siteList}">
|
||||||
|
<c:forEach var="site" items="${resultMap.siteList}" varStatus="status">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<label class="b-checkbox checkbox is-medium">
|
||||||
|
<input type="checkbox" name="siteChk" value=""><span class="check"></span>
|
||||||
|
</label>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div class="td-inner">
|
||||||
|
<input type="text" class="input-text xl" name="familySiteNmArr" title="패밀리 사이트명" maxlength="25" value="${site.familySiteNm}">
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div class="td-inner">
|
||||||
|
<input type="text" class="input-text full" name="familySiteUrlArr" title="URL" maxlength="60" value="${site.familySiteUrl}">
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:forEach>
|
||||||
|
<tr id="noData" style="display: none;"><td class="row-no-data" colspan="3">패밀리사이트를 설정해 주세요.</td></tr>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${empty resultMap.siteList}">
|
||||||
|
<tr id="noData"><td class="row-no-data" colspan="3">패밀리사이트를 설정해 주세요.</td></tr>
|
||||||
|
</c:if>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</form>
|
||||||
|
<button class="scroll-to-top"><span class="visually-hidden">위로가기</span></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,161 @@
|
|||||||
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||||
|
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui" %>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||||
|
<%--
|
||||||
|
Class Name : GuidanceUpdtU.jsp
|
||||||
|
Description : 안내문구 설정 상세
|
||||||
|
Modification Information
|
||||||
|
|
||||||
|
수정일 수정자 수정내용
|
||||||
|
------- -------- ---------------------------
|
||||||
|
2026-04-27 이대환 최초 생성
|
||||||
|
--%>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ko">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<%-- 공통 include --%>
|
||||||
|
<%@include file ="/WEB-INF/views/comm/mngr/Include.jsp" %>
|
||||||
|
</head>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
const sopmalCd = '${sopmalCd}';
|
||||||
|
//에디터 적용
|
||||||
|
fn_create_ckeditor('#joinGuidanceSj', sopmalCd);
|
||||||
|
fn_create_ckeditor('#joinGuidanceWords', sopmalCd);
|
||||||
|
fn_create_ckeditor('#joinBnef', sopmalCd);
|
||||||
|
fn_create_ckeditor('#joinComptWords', sopmalCd);
|
||||||
|
fn_create_ckeditor('#subsvcGuidanceWords', sopmalCd);
|
||||||
|
});
|
||||||
|
|
||||||
|
/* ********************************************************
|
||||||
|
* 환율 설정 저장
|
||||||
|
******************************************************** */
|
||||||
|
const fn_update_guidance = function () {
|
||||||
|
let updtForm = $('#updtForm');
|
||||||
|
updtForm.find("#joinGuidanceSj").val(fn_get_editor_data('#joinGuidanceSj'));
|
||||||
|
updtForm.find("#joinGuidanceWords").val(fn_get_editor_data('#joinGuidanceWords'));
|
||||||
|
updtForm.find("#joinBnef").val(fn_get_editor_data('#joinBnef'));
|
||||||
|
updtForm.find("#joinComptWords").val(fn_get_editor_data('#joinComptWords'));
|
||||||
|
updtForm.find("#subsvcGuidanceWords").val(fn_get_editor_data('#subsvcGuidanceWords'));
|
||||||
|
|
||||||
|
if (confirm('환율 설정을 <spring:message code="confirm.common.save"/>')) {
|
||||||
|
$.ajax({
|
||||||
|
type: 'post',
|
||||||
|
url: '<c:url value="/mngr/setup/guidance/updateGuidanceSetup"/>',
|
||||||
|
data: $('#updtForm').serialize(),
|
||||||
|
success: function () {
|
||||||
|
alert("<spring:message code="success.common.save"/>");
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
.ck.ck-content:not(.ck-style-grid__button__preview) {
|
||||||
|
min-height: 100px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<body>
|
||||||
|
<%-- 상단메뉴 공통화 적용 : 2023-11-30 / 박철민 추가 --%>
|
||||||
|
<%@include file="/WEB-INF/views/comm/mngr/Header.jsp" %>
|
||||||
|
<main class="main">
|
||||||
|
<%-- 좌측메뉴 공통화 적용 : 2023-11-30 / 박철민 추가 --%>
|
||||||
|
<%@include file="/WEB-INF/views/comm/mngr/Left.jsp" %>
|
||||||
|
<div class="content">
|
||||||
|
<div class="content__inner">
|
||||||
|
<button class="side-nav__fold"><span class="visually-hidden">좌측메뉴 펼치기/닫기</span></button>
|
||||||
|
<div class="page-title">
|
||||||
|
<h2 class="page-title__title">안내문구 설정</h2>
|
||||||
|
<div class="page-title__btn-container">
|
||||||
|
<button class="btn primary" onclick="fn_update_guidance()">저장하기
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<form id="updtForm">
|
||||||
|
<section class="content-section">
|
||||||
|
<div class="form-control-container mb-8">
|
||||||
|
<div class="left">
|
||||||
|
<h3 class="content-section__inner-title">회원가입 안내 설정</h3>
|
||||||
|
</div>
|
||||||
|
<div class="center"></div>
|
||||||
|
<div class="right"></div>
|
||||||
|
</div>
|
||||||
|
<div class="table-wrapper">
|
||||||
|
<table class="table">
|
||||||
|
<caption>회원가입 안내 설정</caption>
|
||||||
|
<colgroup>
|
||||||
|
<col style="width: 12%;">
|
||||||
|
</colgroup>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>회원가입 안내 타이틀</th>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="td-inner">
|
||||||
|
<textarea class="textarea" id="joinGuidanceSj" name="joinGuidanceSj"
|
||||||
|
title="회원가입 안내 타이틀" rows="2">
|
||||||
|
${resultMap.sopmalDetailList[0].joinGuidanceSj }
|
||||||
|
</textarea>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>회원가입 안내문구</th>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="td-inner">
|
||||||
|
<textarea class="textarea" id="joinGuidanceWords" name="joinGuidanceWords"
|
||||||
|
title="회원가입 안내문구" rows="2">
|
||||||
|
${resultMap.sopmalDetailList[0].joinGuidanceWords }
|
||||||
|
</textarea>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>회원가입 주요혜택</th>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="td-inner">
|
||||||
|
<textarea class="textarea" id="joinBnef" name="joinBnef"
|
||||||
|
title="회원가입 주요혜택" rows="2">
|
||||||
|
${resultMap.sopmalDetailList[0].joinBnef }
|
||||||
|
</textarea>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>회원가입 완료문구</th>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="td-inner">
|
||||||
|
<textarea class="textarea" id="joinComptWords" name="joinComptWords"
|
||||||
|
title="회원가입 완료문구" rows="2">
|
||||||
|
${resultMap.sopmalDetailList[0].joinComptWords }
|
||||||
|
</textarea>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>구독서비스 안내문구</th>
|
||||||
|
<td colspan="3">
|
||||||
|
<div class="td-inner">
|
||||||
|
<textarea class="textarea" id="subsvcGuidanceWords" name="subsvcGuidanceWords"
|
||||||
|
title="구독서비스 안내문구" rows="2">
|
||||||
|
${resultMap.sopmalDetailList[0].subsvcGuidanceWords }
|
||||||
|
</textarea>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</form>
|
||||||
|
<button class="scroll-to-top"><span class="visually-hidden">위로가기</span></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||||
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui" %>
|
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui" %>
|
||||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||||
|
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld"%>
|
||||||
<%--
|
<%--
|
||||||
Class Name : OrdrListR.jsp
|
Class Name : OrdrListR.jsp
|
||||||
Description : 주문설정 jsp
|
Description : 주문설정 jsp
|
||||||
@@ -21,10 +22,10 @@
|
|||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
$("#mlgPymntRt").val(function(index, value) {
|
$("#mlgPymntRt").val(function(index, value) {
|
||||||
return Number(value).toLocaleString();
|
return Number(value).toLocaleString();
|
||||||
});
|
});
|
||||||
$("#mlgMxmmPymntAmt").val(function(index, value) {
|
$("#mlgMxmmPymntAmt").val(function(index, value) {
|
||||||
return Number(value).toLocaleString();
|
return Number(value).toLocaleString();
|
||||||
});
|
});
|
||||||
|
|
||||||
/*선물하기 이벤트*/
|
/*선물하기 이벤트*/
|
||||||
@@ -102,6 +103,34 @@
|
|||||||
$("#mlgPymntRt").val("0");
|
$("#mlgPymntRt").val("0");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/* ********************************************************
|
||||||
|
* 마일리지 사용 조건 disabled 처리
|
||||||
|
******************************************************** */
|
||||||
|
const fn_set_mlgDisabled = function(_target) {
|
||||||
|
|
||||||
|
if (_target === 'other') {
|
||||||
|
|
||||||
|
$('#maxPct').prop('disabled', true);
|
||||||
|
$('#maxPct').val('0');
|
||||||
|
$('#maxMlg').prop('disabled', true);
|
||||||
|
$('#maxMlg').val('0');
|
||||||
|
|
||||||
|
} else if (_target === 'maxPct') {
|
||||||
|
|
||||||
|
$('#maxPct').prop('disabled', false);
|
||||||
|
$('#maxMlg').prop('disabled', true);
|
||||||
|
$('#maxMlg').val('0');
|
||||||
|
|
||||||
|
} else if (_target === 'maxMlg') {
|
||||||
|
|
||||||
|
$('#maxPct').prop('disabled', true);
|
||||||
|
$('#maxPct').val('0');
|
||||||
|
$('#maxMlg').prop('disabled', false);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**************************************************************
|
/**************************************************************
|
||||||
hidden form 생성 함수
|
hidden form 생성 함수
|
||||||
****************************************************************/
|
****************************************************************/
|
||||||
@@ -122,13 +151,12 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<c:set var = "ordrSetupInfo" value="${resultMap.ordrSetupInfo}"/>
|
<c:set var = "ordrSetupInfo" value="${resultMap.ordrSetupList.ordrSetupInfo}"/>
|
||||||
<%-- 상단메뉴 공통화 적용 : 2023-11-30 / 박철민 추가 --%>
|
<%-- 상단메뉴 공통화 적용 : 2023-11-30 / 박철민 추가 --%>
|
||||||
<%@include file="/WEB-INF/views/comm/mngr/Header.jsp" %>
|
<%@include file="/WEB-INF/views/comm/mngr/Header.jsp" %>
|
||||||
<main class="main">
|
<main class="main">
|
||||||
<%-- 좌측메뉴 공통화 적용 : 2023-11-30 / 박철민 추가 --%>
|
<%-- 좌측메뉴 공통화 적용 : 2023-11-30 / 박철민 추가 --%>
|
||||||
<%@include file="/WEB-INF/views/comm/mngr/Left.jsp" %>
|
<%@include file="/WEB-INF/views/comm/mngr/Left.jsp" %>
|
||||||
<form id = "updtForm">
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="content__inner">
|
<div class="content__inner">
|
||||||
<button class="side-nav__fold"><span class="visually-hidden">좌측메뉴 펼치기/닫기</span></button>
|
<button class="side-nav__fold"><span class="visually-hidden">좌측메뉴 펼치기/닫기</span></button>
|
||||||
@@ -139,268 +167,364 @@
|
|||||||
<spring:message code="button.save"/></button>
|
<spring:message code="button.save"/></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<section class="content-section content-fold">
|
<form id = "updtForm">
|
||||||
<div class="content-fold__header">
|
<section class="content-section content-fold">
|
||||||
</div>
|
<div class="content-fold__header">
|
||||||
<c:if test = "${ordrSetupInfo.sopmalTyCd eq '01'}">
|
</div>
|
||||||
|
<c:if test = "${ordrSetupInfo.sopmalTyCd eq '01'}">
|
||||||
|
<div class="content-fold__content">
|
||||||
|
<h3 class="content-section__inner-title">여러 곳 배송</h3>
|
||||||
|
<div class="table-wrapper">
|
||||||
|
<table class="table">
|
||||||
|
<caption>여러 곳 배송 사용 여부 설정</caption>
|
||||||
|
<colgroup>
|
||||||
|
<col style="width: 12%;">
|
||||||
|
<col>
|
||||||
|
</colgroup>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>여러 곳 배송 사용 여부</th>
|
||||||
|
<td>
|
||||||
|
<div class="td-inner">
|
||||||
|
<div class="custom-radio-container">
|
||||||
|
<div class="custom-radio">
|
||||||
|
<input type="radio" id="multiDlvyUseAtY" name="multiDlvyAt" value="Y"
|
||||||
|
<c:if test = "${ordrSetupInfo.multiDlvyAt eq 'Y'}">checked</c:if>>
|
||||||
|
<label for="multiDlvyUseAtY">사용</label>
|
||||||
|
</div>
|
||||||
|
<div class="custom-radio">
|
||||||
|
<input type="radio" id="multiDlvyUseAtN" name="multiDlvyAt" value="N"
|
||||||
|
<c:if test = "${ordrSetupInfo.multiDlvyAt eq 'N'}">checked</c:if>>
|
||||||
|
<label for="multiDlvyUseAtN">미사용</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="content-fold__content">
|
||||||
|
<h3 class="content-section__inner-title">선물하기</h3>
|
||||||
|
<div class="table-wrapper">
|
||||||
|
<table class="table">
|
||||||
|
<caption>선물하기 설정</caption>
|
||||||
|
<colgroup>
|
||||||
|
<col style="width: 12%;">
|
||||||
|
<col>
|
||||||
|
</colgroup>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>선물하기 사용 여부</th>
|
||||||
|
<td>
|
||||||
|
<div class="td-inner">
|
||||||
|
<div class="custom-radio-container">
|
||||||
|
<div class="custom-radio">
|
||||||
|
<input type="radio" id="giftUseAtY" name="giftDlvyAt" value="Y"
|
||||||
|
<c:if test = "${ordrSetupInfo.giftDlvyAt eq 'Y'}">checked</c:if>>
|
||||||
|
<label for="giftUseAtY">사용</label>
|
||||||
|
</div>
|
||||||
|
<div class="custom-radio">
|
||||||
|
<input type="radio" id="giftUseAtN" name="giftDlvyAt" value="N"
|
||||||
|
<c:if test = "${ordrSetupInfo.giftDlvyAt eq 'N'}">checked</c:if>>
|
||||||
|
<label for="giftUseAtN">미사용</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="giftDlvylcDv" <c:if test = "${ordrSetupInfo.giftDlvyAt eq 'N'}">style = "display: none"</c:if>>
|
||||||
|
<th>배송주소 등록기간<span class="red-7">*</span></th>
|
||||||
|
<td>
|
||||||
|
<div class="td-inner">
|
||||||
|
<div class="td-inner vertical">
|
||||||
|
<div class="input-container">
|
||||||
|
<input type="text" class="input-text xsm right number"
|
||||||
|
id="giftDlvyAtmcCanclPd" title="배송주소 등록기간 설정"
|
||||||
|
name="giftDlvyAtmcCanclPd" maxlength="2"
|
||||||
|
<c:choose>
|
||||||
|
<c:when test = "${not empty ordrSetupInfo.giftDlvyAtmcCanclPd}">
|
||||||
|
value = "<c:out value="${ordrSetupInfo.giftDlvyAtmcCanclPd}"/>"
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
value = "0"
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
<c:if test = "${ordrSetupInfo.giftDlvyAt eq 'N'}">disabled</c:if>>
|
||||||
|
<span class="mr-10input-unit-text"> 일 이내 배송주소 등록되지 않으면 주문 자동취소</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="content-fold__content">
|
||||||
|
<h3 class="content-section__inner-title">GC 머니</h3>
|
||||||
|
<div class="table-wrapper">
|
||||||
|
<table class="table">
|
||||||
|
<caption>GC 머니 사용 여부 설정</caption>
|
||||||
|
<colgroup>
|
||||||
|
<col style="width: 12%;">
|
||||||
|
<col>
|
||||||
|
</colgroup>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>GC 머니 사용 여부</th>
|
||||||
|
<td>
|
||||||
|
<div class="td-inner">
|
||||||
|
<div class="custom-radio-container">
|
||||||
|
<div class="custom-radio">
|
||||||
|
<input type="radio" id="cashAtY" name="cashAt"
|
||||||
|
value="Y"
|
||||||
|
<c:if test="${ordrSetupInfo.cashAt eq 'Y'}">checked</c:if>>
|
||||||
|
<label for="cashAtY">사용</label>
|
||||||
|
</div>
|
||||||
|
<div class="custom-radio">
|
||||||
|
<input type="radio" id="cashAtN" name="cashAt"
|
||||||
|
value="N"
|
||||||
|
<c:if test="${ordrSetupInfo.cashAt eq 'N'}">checked</c:if>>
|
||||||
|
<label for="cashAtN">미사용</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</c:if>
|
||||||
<div class="content-fold__content">
|
<div class="content-fold__content">
|
||||||
<h3 class="content-section__inner-title">여러 곳 배송</h3>
|
<h3 class="content-section__inner-title">마일리지 지급</h3>
|
||||||
<div class="table-wrapper">
|
<div class="table-wrapper">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<caption>여러 곳 배송 사용 여부 설정</caption>
|
<caption>마일리지 지급 설정</caption>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 12%;">
|
<col style="width: 12%;">
|
||||||
<col>
|
<col>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>여러 곳 배송 사용 여부</th>
|
<th>지급 설정<span class="red-7">*</span></th>
|
||||||
<td>
|
<td>
|
||||||
<div class="td-inner">
|
<div class="td-inner vertical">
|
||||||
<div class="custom-radio-container">
|
<div class="custom-radio-container ">
|
||||||
<div class="custom-radio">
|
<div class="custom-radio">
|
||||||
<input type="radio" id="multiDlvyUseAtY" name="multiDlvyAt" value="Y"
|
<input type="radio" id="mlgPymntY" name="mlgPymntAt" value="Y"
|
||||||
<c:if test = "${ordrSetupInfo.multiDlvyAt eq 'Y'}">checked</c:if>>
|
<c:if test = "${ordrSetupInfo.mlgPymntAt eq 'Y'}">checked</c:if>>
|
||||||
<label for="multiDlvyUseAtY">사용</label>
|
<label for="mlgPymntY">사용</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="custom-radio">
|
<div class="custom-radio">
|
||||||
<input type="radio" id="multiDlvyUseAtN" name="multiDlvyAt" value="N"
|
<input type="radio" id="mlgPymntN" name="mlgPymntAt" value="N"
|
||||||
<c:if test = "${ordrSetupInfo.multiDlvyAt eq 'N'}">checked</c:if>>
|
<c:if test = "${ordrSetupInfo.mlgPymntAt eq 'N'}">checked</c:if>>
|
||||||
<label for="multiDlvyUseAtN">미사용</label>
|
<label for="mlgPymntN">미사용</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="input-container ml-5 mlgPymntCtrTarget" <c:if test = "${ordrSetupInfo.mlgPymntAt eq 'N'}">style="display: none"</c:if>><%--사용 여부에 따른 이벤트 컨트롤--%>
|
||||||
</td>
|
<span class="mr-5">구매시</span>
|
||||||
</tr>
|
<span class="mr-5 mlgPercent">총 상품 결제금액의</span>
|
||||||
</tbody>
|
<span class="mr-5 ">
|
||||||
</table>
|
<input type="text" class="input-text xsm right number" title="마일리지 적립" id="mlgPymntRt" name="mlgPymntRt"
|
||||||
</div>
|
<c:choose>
|
||||||
</div>
|
<c:when test = "${ordrSetupInfo.mlgPymntDvCd eq '01'}">
|
||||||
<div class="content-fold__content">
|
maxlength="2"
|
||||||
<h3 class="content-section__inner-title">선물하기</h3>
|
</c:when>
|
||||||
<div class="table-wrapper">
|
<c:when test = "${ordrSetupInfo.mlgPymntDvCd eq '02'}">
|
||||||
<table class="table">
|
maxlength="12"
|
||||||
<caption>선물하기 설정</caption>
|
</c:when>
|
||||||
<colgroup>
|
<c:otherwise>
|
||||||
<col style="width: 12%;">
|
maxlength="2"
|
||||||
<col>
|
</c:otherwise>
|
||||||
</colgroup>
|
</c:choose>
|
||||||
<tbody>
|
<c:choose>
|
||||||
<tr>
|
<c:when test = "${not empty ordrSetupInfo.mlgPymntRt}">
|
||||||
<th>선물하기 사용 여부</th>
|
value ="<c:out value="${ordrSetupInfo.mlgPymntRt}"/>"
|
||||||
<td>
|
</c:when>
|
||||||
<div class="td-inner">
|
<c:otherwise>
|
||||||
<div class="custom-radio-container">
|
value ="0"
|
||||||
<div class="custom-radio">
|
</c:otherwise>
|
||||||
<input type="radio" id="giftUseAtY" name="giftDlvyAt" value="Y"
|
</c:choose>>
|
||||||
<c:if test = "${ordrSetupInfo.giftDlvyAt eq 'Y'}">checked</c:if>>
|
</span>
|
||||||
<label for="giftUseAtY">사용</label>
|
<div class="select-box mr-10 ">
|
||||||
</div>
|
<select id="accmlUnitDv" name="mlgPymntDvCd" class="short" title="마일리지 단위 선택">
|
||||||
<div class="custom-radio">
|
<c:forEach var="accmlUnitDv" items="${resultMap.ordrSetupList.accmlUnitDv}">
|
||||||
<input type="radio" id="giftUseAtN" name="giftDlvyAt" value="N"
|
<option value="<c:out value='${accmlUnitDv.cd}'/>"
|
||||||
<c:if test = "${ordrSetupInfo.giftDlvyAt eq 'N'}">checked</c:if>>
|
<c:if test = "${ordrSetupInfo.mlgPymntDvCd eq accmlUnitDv.cd}">selected</c:if>>
|
||||||
<label for="giftUseAtN">미사용</label>
|
<c:out value="${accmlUnitDv.cdNm}"/>
|
||||||
|
</option>
|
||||||
|
</c:forEach>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
<span class="mr-5">적립</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="input-container mr-5 mlgPymntCtrTarget " id = "mlgMxmmDv" <c:if test = "${ordrSetupInfo.mlgPymntAt eq 'N' || ordrSetupInfo.mlgPymntDvCd eq '02'}">style="display: none"</c:if>><%--사용 여부에 따른 이벤트 컨트롤--%>
|
||||||
</td>
|
<span class="mr-5">최대</span>
|
||||||
</tr>
|
<input class="input-text sm number right mr-5" type="text"
|
||||||
<tr id="giftDlvylcDv" <c:if test = "${ordrSetupInfo.giftDlvyAt eq 'N'}">style = "display: none"</c:if>>
|
title="최대 마일리지 적립금액" id="mlgMxmmPymntAmt"
|
||||||
<th>배송주소 등록기간<span class="red-7">*</span></th>
|
name="mlgMxmmPymntAmt" maxlength="12"
|
||||||
<td>
|
<c:choose>
|
||||||
<div class="td-inner">
|
<c:when test = "${not empty ordrSetupInfo.mlgMxmmPymntAmt}">
|
||||||
<div class="td-inner vertical">
|
value ="${ordrSetupInfo.mlgMxmmPymntAmt}"
|
||||||
<div class="input-container">
|
</c:when>
|
||||||
<input type="text" class="input-text xsm right number"
|
<c:otherwise>
|
||||||
id="giftDlvyAtmcCanclPd" title="배송주소 등록기간 설정"
|
value ="0"
|
||||||
name="giftDlvyAtmcCanclPd" maxlength="2"
|
</c:otherwise>
|
||||||
<c:choose>
|
|
||||||
<c:when test = "${not empty ordrSetupInfo.giftDlvyAtmcCanclPd}">
|
|
||||||
value = "<c:out value="${ordrSetupInfo.giftDlvyAtmcCanclPd}"/>"
|
|
||||||
</c:when>
|
|
||||||
<c:otherwise>
|
|
||||||
value = "0"
|
|
||||||
</c:otherwise>
|
|
||||||
</c:choose>
|
|
||||||
<c:if test = "${ordrSetupInfo.giftDlvyAt eq 'N'}">disabled</c:if>>
|
|
||||||
<span class="mr-10input-unit-text"> 일 이내 배송주소 등록되지 않으면 주문 자동취소</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="content-fold__content">
|
|
||||||
<h3 class="content-section__inner-title">GC 머니</h3>
|
|
||||||
<div class="table-wrapper">
|
|
||||||
<table class="table">
|
|
||||||
<caption>GC 머니 사용 여부 설정</caption>
|
|
||||||
<colgroup>
|
|
||||||
<col style="width: 12%;">
|
|
||||||
<col>
|
|
||||||
</colgroup>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th>GC 머니 사용 여부</th>
|
|
||||||
<td>
|
|
||||||
<div class="td-inner">
|
|
||||||
<div class="custom-radio-container">
|
|
||||||
<div class="custom-radio">
|
|
||||||
<input type="radio" id="cashAtY" name="cashAt"
|
|
||||||
value="Y"
|
|
||||||
<c:if test="${ordrSetupInfo.cashAt eq 'Y'}">checked</c:if>>
|
|
||||||
<label for="cashAtY">사용</label>
|
|
||||||
</div>
|
|
||||||
<div class="custom-radio">
|
|
||||||
<input type="radio" id="cashAtN" name="cashAt"
|
|
||||||
value="N"
|
|
||||||
<c:if test="${ordrSetupInfo.cashAt eq 'N'}">checked</c:if>>
|
|
||||||
<label for="cashAtN">미사용</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</c:if>
|
|
||||||
<div class="content-fold__content">
|
|
||||||
<h3 class="content-section__inner-title">마일리지 지급</h3>
|
|
||||||
<div class="table-wrapper">
|
|
||||||
<table class="table">
|
|
||||||
<caption>마일리지 지급 설정</caption>
|
|
||||||
<colgroup>
|
|
||||||
<col style="width: 12%;">
|
|
||||||
<col>
|
|
||||||
</colgroup>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th>지급 설정<span class="red-7">*</span></th>
|
|
||||||
<td>
|
|
||||||
<div class="td-inner vertical">
|
|
||||||
<div class="custom-radio-container ">
|
|
||||||
<div class="custom-radio">
|
|
||||||
<input type="radio" id="mlgPymntY" name="mlgPymntAt" value="Y"
|
|
||||||
<c:if test = "${ordrSetupInfo.mlgPymntAt eq 'Y'}">checked</c:if>>
|
|
||||||
<label for="mlgPymntY">사용</label>
|
|
||||||
</div>
|
|
||||||
<div class="custom-radio">
|
|
||||||
<input type="radio" id="mlgPymntN" name="mlgPymntAt" value="N"
|
|
||||||
<c:if test = "${ordrSetupInfo.mlgPymntAt eq 'N'}">checked</c:if>>
|
|
||||||
<label for="mlgPymntN">미사용</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="input-container ml-5 mlgPymntCtrTarget" <c:if test = "${ordrSetupInfo.mlgPymntAt eq 'N'}">style="display: none"</c:if>><%--사용 여부에 따른 이벤트 컨트롤--%>
|
|
||||||
<span class="mr-5">구매시</span>
|
|
||||||
<span class="mr-5 mlgPercent">총 상품 결제금액의</span>
|
|
||||||
<span class="mr-5 ">
|
|
||||||
<input type="text" class="input-text xsm right number" title="마일리지 적립" id="mlgPymntRt" name="mlgPymntRt"
|
|
||||||
<c:choose>
|
|
||||||
<c:when test = "${ordrSetupInfo.mlgPymntDvCd eq '01'}">
|
|
||||||
maxlength="2"
|
|
||||||
</c:when>
|
|
||||||
<c:when test = "${ordrSetupInfo.mlgPymntDvCd eq '02'}">
|
|
||||||
maxlength="12"
|
|
||||||
</c:when>
|
|
||||||
<c:otherwise>
|
|
||||||
maxlength="2"
|
|
||||||
</c:otherwise>
|
|
||||||
</c:choose>
|
</c:choose>
|
||||||
<c:choose>
|
<c:if test = "${ordrSetupInfo.mlgMxmmPymntAmtAt eq 'N'}">disabled</c:if>>
|
||||||
<c:when test = "${not empty ordrSetupInfo.mlgPymntRt}">
|
<span class="mr-5">마일리지 까지 적립</span>
|
||||||
value ="<c:out value="${ordrSetupInfo.mlgPymntRt}"/>"
|
<div class="b-checkbox-container">
|
||||||
</c:when>
|
<label class="b-checkbox checkbox">
|
||||||
<c:otherwise>
|
<input type="checkbox" value="N"
|
||||||
value ="0"
|
name="mlgMxmmPymntAmtAt"
|
||||||
</c:otherwise>
|
id="mlgMxmmPymntAmtAt"
|
||||||
</c:choose>>
|
<c:if test = "${ordrSetupInfo.mlgMxmmPymntAmtAt eq 'N'}">checked</c:if>>
|
||||||
</span>
|
<span class="check"></span>
|
||||||
<div class="select-box mr-10 ">
|
<span class="control-label">설정 안함</span>
|
||||||
<select id="accmlUnitDv" name="mlgPymntDvCd" class="short" title="마일리지 단위 선택">
|
</label>
|
||||||
<c:forEach var="accmlUnitDv" items="${resultMap.accmlUnitDv}">
|
</div>
|
||||||
<option value="<c:out value='${accmlUnitDv.cd}'/>"
|
|
||||||
<c:if test = "${ordrSetupInfo.mlgPymntDvCd eq accmlUnitDv.cd}">selected</c:if>>
|
|
||||||
<c:out value="${accmlUnitDv.cdNm}"/>
|
|
||||||
</option>
|
|
||||||
</c:forEach>
|
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
<span class="mr-5">적립</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="input-container mr-5 mlgPymntCtrTarget " id = "mlgMxmmDv" <c:if test = "${ordrSetupInfo.mlgPymntAt eq 'N' || ordrSetupInfo.mlgPymntDvCd eq '02'}">style="display: none"</c:if>><%--사용 여부에 따른 이벤트 컨트롤--%>
|
</td>
|
||||||
<span class="mr-5">최대</span>
|
</tr>
|
||||||
<input class="input-text sm number right mr-5" type="text"
|
<tr class="mlgPymntCtrTarget" <c:if test = "${ordrSetupInfo.mlgPymntAt eq 'N'}">style="display: none"</c:if>><%--사용 여부에 따른 이벤트 컨트롤--%>
|
||||||
title="최대 마일리지 적립금액" id="mlgMxmmPymntAmt"
|
<th>유효기간<span class="red-7">*</span></th>
|
||||||
name="mlgMxmmPymntAmt" maxlength="12"
|
<td>
|
||||||
<c:choose>
|
<div class="input-container ml-5 ">
|
||||||
<c:when test = "${not empty ordrSetupInfo.mlgMxmmPymntAmt}">
|
<span class="mr-5 left">지급 마일리지의 유효기간은</span>
|
||||||
value ="${ordrSetupInfo.mlgMxmmPymntAmt}"
|
<input class="input-text xsm right number" type="text"
|
||||||
</c:when>
|
title="마일리지 유효기간" id="mlgValidPd" name="mlgValidPd"
|
||||||
<c:otherwise>
|
maxlength="2"
|
||||||
value ="0"
|
<c:choose>
|
||||||
</c:otherwise>
|
<c:when test="${not empty ordrSetupInfo.mlgValidPd}">
|
||||||
</c:choose>
|
value="<c:out value="${ordrSetupInfo.mlgValidPd}"/>"
|
||||||
<c:if test = "${ordrSetupInfo.mlgMxmmPymntAmtAt eq 'N'}">disabled</c:if>>
|
</c:when>
|
||||||
<span class="mr-5">마일리지 까지 적립</span>
|
<c:otherwise>
|
||||||
|
value="0"
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
<c:if test = "${ordrSetupInfo.mlgValidPdAt eq 'N'}">disabled</c:if>>
|
||||||
|
<span class="mr-5">개월</span>
|
||||||
|
<%-- 유효기간 사용 유무 설정 --%>
|
||||||
<div class="b-checkbox-container">
|
<div class="b-checkbox-container">
|
||||||
<label class="b-checkbox checkbox">
|
<label class="b-checkbox checkbox ">
|
||||||
<input type="checkbox" value="N"
|
<input type="checkbox" value="N" name="mlgValidPdAt"
|
||||||
name="mlgMxmmPymntAmtAt"
|
id="mlgValidPdAt"
|
||||||
id="mlgMxmmPymntAmtAt"
|
<c:if test = "${ordrSetupInfo.mlgValidPdAt eq 'N'}">checked</c:if>>
|
||||||
<c:if test = "${ordrSetupInfo.mlgMxmmPymntAmtAt eq 'N'}">checked</c:if>>
|
|
||||||
<span class="check"></span>
|
<span class="check"></span>
|
||||||
<span class="control-label">설정 안함</span>
|
<span class="control-label">설정 안함</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
</tbody>
|
||||||
<tr class="mlgPymntCtrTarget" <c:if test = "${ordrSetupInfo.mlgPymntAt eq 'N'}">style="display: none"</c:if>><%--사용 여부에 따른 이벤트 컨트롤--%>
|
</table>
|
||||||
<th>유효기간<span class="red-7">*</span></th>
|
</div>
|
||||||
<td>
|
</div>
|
||||||
<div class="input-container ml-5 ">
|
</section>
|
||||||
<span class="mr-5 left">지급 마일리지의 유효기간은</span>
|
<section class="content-section content-fold">
|
||||||
<input class="input-text xsm right number" type="text"
|
<h3 class="content-section__inner-title">마일리지 사용 조건</h3>
|
||||||
title="마일리지 유효기간" id="mlgValidPd" name="mlgValidPd"
|
<div class="table-wrapper">
|
||||||
maxlength="2"
|
<table class="table ">
|
||||||
<c:choose>
|
<caption>마일리지 사용 조건</caption>
|
||||||
<c:when test="${not empty ordrSetupInfo.mlgValidPd}">
|
<colgroup>
|
||||||
value="<c:out value="${ordrSetupInfo.mlgValidPd}"/>"
|
<col style="width: 14%;">
|
||||||
</c:when>
|
<col>
|
||||||
<c:otherwise>
|
</colgroup>
|
||||||
value="0"
|
<tbody>
|
||||||
</c:otherwise>
|
<tr>
|
||||||
</c:choose>
|
<th>보유 마일리지 조건</th>
|
||||||
<c:if test = "${ordrSetupInfo.mlgValidPdAt eq 'N'}">disabled</c:if>>
|
<td>
|
||||||
<span class="mr-5">개월</span>
|
<div class="td-inner">
|
||||||
<%-- 유효기간 사용 유무 설정 --%>
|
<div class="input-container">
|
||||||
<div class="b-checkbox-container">
|
<span class="mr-10">보유 마일리지가</span>
|
||||||
<label class="b-checkbox checkbox ">
|
<input type="text" class="input-text sm right number" name="mlgHoldUseAmt" title="보유 마일리지가" maxlength="7" value="${resultMap.sopmalDetailList[0].mlgHoldUseAmt }">
|
||||||
<input type="checkbox" value="N" name="mlgValidPdAt"
|
<span class="input-unit-text mr-8">원</span>
|
||||||
id="mlgValidPdAt"
|
<span>이상이면 마일리지 사용 가능</span>
|
||||||
<c:if test = "${ordrSetupInfo.mlgValidPdAt eq 'N'}">checked</c:if>>
|
</div>
|
||||||
<span class="check"></span>
|
|
||||||
<span class="control-label">설정 안함</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
</tbody>
|
<th>상품 금액 조건</th>
|
||||||
|
<td>
|
||||||
|
<div class="td-inner vertical">
|
||||||
|
<div class="input-container">
|
||||||
|
<span class="gray-7 mr-10">{상품 실 결제금액} + {좌동} + {좌동} ···</span>
|
||||||
|
<input type="text" class="input-text sm right number" name="mlgSetleAmtUseAmt" title="사용가능 마일리지" maxlength="7" value="${resultMap.sopmalDetailList[0].mlgSetleAmtUseAmt }">
|
||||||
|
<span class="input-unit-text mr-8">원</span>
|
||||||
|
<span>이상이면 마일리지 사용 가능</span>
|
||||||
|
</div>
|
||||||
|
<p class="blue-7 fyi">상품 실 결제 금액 = {상품 할인가(판매가) x 수량} - 할인(쿠폰, 등급, 좋아요, 모바일, 프로모션 코드)</p>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>마일리지 사용한도 조건</th>
|
||||||
|
<td>
|
||||||
|
<div class="td-inner">
|
||||||
|
<div class="input-container">
|
||||||
|
<span class="mr-10">마일리지는 최소</span>
|
||||||
|
<input type="text" class="input-text sm right number" name="mlgMummUseAmt" title="마일리지는 최소" maxlength="7" value="${resultMap.sopmalDetailList[0].mlgMummUseAmt }">
|
||||||
|
<span class="input-unit-text">원 이상</span>
|
||||||
|
</div>
|
||||||
|
<span class="tilde">~</span>
|
||||||
|
<div class="input-container">
|
||||||
|
<span class="mr-10">최대</span>
|
||||||
|
<div class="custom-radio-container vertical storeCondition">
|
||||||
|
<div class=" custom-radio">
|
||||||
|
<input type="radio" id="mlgMxmmUse-a" name="mlgMxmmUseDv" value="01" onclick="fn_set_mlgDisabled('other');" ${f:setChecked(resultMap.sopmalDetailList[0].mlgMxmmUseDv, '01') }>
|
||||||
|
<label for="mlgMxmmUse-a">1회 사용한도 제한 없이 사용 가능
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<c:set var="mlgMxmmUseAmt_2" value="0" />
|
||||||
|
<c:set var="mlgMxmmUseAmt_Disabled_2" value="disabled" />
|
||||||
|
<c:set var="mlgMxmmUseAmt_3" value="0" />
|
||||||
|
<c:set var="mlgMxmmUseAmt_Disabled_3" value="disabled" />
|
||||||
|
<c:if test="${resultMap.sopmalDetailList[0].mlgMxmmUseDv eq '02'}" >
|
||||||
|
<c:set var="mlgMxmmUseAmt_2" value="${resultMap.sopmalDetailList[0].mlgMxmmUseAmt }" />
|
||||||
|
<c:set var="mlgMxmmUseAmt_Disabled_2" value="" />
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${resultMap.sopmalDetailList[0].mlgMxmmUseDv eq '03'}" >
|
||||||
|
<c:set var="mlgMxmmUseAmt_3" value="${resultMap.sopmalDetailList[0].mlgMxmmUseAmt }" />
|
||||||
|
<c:set var="mlgMxmmUseAmt_Disabled_3" value="" />
|
||||||
|
</c:if>
|
||||||
|
<div class="custom-radio inner-input">
|
||||||
|
<input type="radio" id="mlgMxmmUse-b" name="mlgMxmmUseDv" value="02" onclick="fn_set_mlgDisabled('maxPct');" ${f:setChecked(resultMap.sopmalDetailList[0].mlgMxmmUseDv, '02') }>
|
||||||
|
<label for="mlgMxmmUse-b">
|
||||||
|
<span class="gray-7">{상품 실 결제금액} + {좌동} + {좌동} ···</span> 의
|
||||||
|
</label>
|
||||||
|
<div>
|
||||||
|
<input type="text" class="input-text xxsm ml-5 number right" name="mlgMxmmUseAmt" id="maxPct" title="마일리지 최대사용 %" maxlength="3" value="${mlgMxmmUseAmt_2 }" ${mlgMxmmUseAmt_Disabled_2 }>
|
||||||
|
<span class="input-unit-text mr-8">%</span>금액까지 사용 가능
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="custom-radio inner-input">
|
||||||
|
<input type="radio" id="mlgMxmmUse-c" name="mlgMxmmUseDv" value="03" onclick="fn_set_mlgDisabled('maxMlg');" ${f:setChecked(resultMap.sopmalDetailList[0].mlgMxmmUseDv, '03') } >
|
||||||
|
<label for="mlgMxmmUse-c">
|
||||||
|
</label>
|
||||||
|
<div>
|
||||||
|
<input class="input-text sm ml-5 number right" name="mlgMxmmUseAmt" id="maxMlg" title="마일리지 최대사용 금액" maxlength="7" value="${mlgMxmmUseAmt_3 }" ${mlgMxmmUseAmt_Disabled_3 }>
|
||||||
|
<span class="input-unit-text mr-8">원</span>까지 사용 가능
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
</section>
|
</form>
|
||||||
<button class="scroll-to-top"><span class="visually-hidden">위로가기</span></button>
|
<button class="scroll-to-top"><span class="visually-hidden">위로가기</span></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user