Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -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.BOShopSetupVO;
|
||||
import com.wb.domainserver.domain.admin.sys.menu.vo.BOMaMenuVO;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
|
||||
/**
|
||||
@@ -81,6 +80,10 @@ public interface BOMaSopmalMapper {
|
||||
|
||||
public int updateBOSopmalUpdt(BOMaSopmalVO vo);
|
||||
|
||||
public int updateBOExchngrtSetup(BOMaSopmalVO vo);
|
||||
|
||||
public int updateBOGuidanceSetup(BOMaSopmalVO vo);
|
||||
|
||||
public int deteteBOShopFamilySite(BOMaSopmalVO vo);
|
||||
|
||||
public int deteteBOShopClause(BOMaSopmalVO vo);
|
||||
|
||||
@@ -193,4 +193,7 @@ public class BOMbrSrchVO extends AbstractVO {
|
||||
/*회원구분코드*/
|
||||
private String mbrDvCd;
|
||||
|
||||
/*마케팅 동의 팝업 읽기모드 여부*/
|
||||
private String readonlyAt;
|
||||
|
||||
}
|
||||
|
||||
@@ -309,22 +309,8 @@ public class BOPurchsEvtService {
|
||||
}
|
||||
}
|
||||
|
||||
// 사은품 이벤트
|
||||
// 사은품 이벤트
|
||||
} else if ("02".equals(purchsEvtVO.getEvtDv())) {
|
||||
|
||||
|
||||
/*
|
||||
if (!StringUtils.isEmpty(Arrays.toString(purchsEvtVO.getDeleteGiftList()))) {
|
||||
log.debug(" 삭제 리스트 확인 purchsEvtVO . get getDeleteGiftList : {}", purchsEvtVO.getDeleteGiftList());
|
||||
for (String deleteGiftInnb : purchsEvtVO.getDeleteGiftList()) {
|
||||
log.debug("deleteGiftInnb : {}", deleteGiftInnb);
|
||||
purchsEvtVO.setDeleteGiftInnb(Integer.parseInt(deleteGiftInnb));
|
||||
mapper.deleteBOPurchsEvtGiftDel(purchsEvtVO);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
if (!StringUtils.isEmpty(Arrays.toString(purchsEvtVO.getDeleteBnefList()))) {
|
||||
log.debug(" 삭제 리스트 확인 purchsEvtVO . get deleteList : {}", (Object) purchsEvtVO.getDeleteBnefList());
|
||||
for (String deleteBnefInnb : purchsEvtVO.getDeleteBnefList()) {
|
||||
@@ -334,7 +320,6 @@ public class BOPurchsEvtService {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (purchsEvtVO.getDiscountBnefVOList() != null && !purchsEvtVO.getDiscountBnefVOList().isEmpty()) {
|
||||
log.debug("사은품 혜택 진입");
|
||||
for (BOPurchsEvtDiscountBnefVO tempVO : purchsEvtVO.getDiscountBnefVOList()) {
|
||||
|
||||
@@ -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 {
|
||||
/** 쇼핑몰 코드 */
|
||||
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 fdrmDlvyAt;
|
||||
/**선물하기여부*/
|
||||
|
||||
// 선물하기
|
||||
/** 선물하기여부 */
|
||||
private String giftDlvyAt;
|
||||
/**선물하기자동취소기간*/
|
||||
/** 선물하기자동취소기간 */
|
||||
private String giftDlvyAtmcCanclPd;
|
||||
/*충전형마일리지 사용여부*/
|
||||
|
||||
// GC 머니
|
||||
/** 충전형마일리지 사용여부 */
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -76,16 +76,26 @@ public class MngrMainController {
|
||||
// public String selectMngrMainInqire(@CookieValue(value = "authSopmalCd") String authSopmalCd, ModelMap model, HttpServletRequest request) {
|
||||
public String selectMngrMainInqire(String authSopmalCd, ModelMap model, HttpServletRequest request, HttpServletResponse response ) {
|
||||
BOBbsVO vo = new BOBbsVO();
|
||||
vo.setSopmalCd(authSopmalCd);
|
||||
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
vo.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
// 쇼핑몰코드
|
||||
vo.setRegusr(user.getUserInnb()); // 등록자
|
||||
vo.setUpdusr(user.getUserInnb()); // 수정자
|
||||
// 쇼핑몰코드
|
||||
if(StringUtil.isEmpty(authSopmalCd)) {
|
||||
if(request.getCookies()!=null) {
|
||||
for(Cookie cookie : request.getCookies()){
|
||||
if("authSopmalCd".equals(cookie.getName())){
|
||||
authSopmalCd = cookie.getValue();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
vo.setSopmalCd(authSopmalCd);
|
||||
|
||||
DataMap resultMap = new DataMap();
|
||||
resultMap = bbsService.selectBOBbscttDshboardInqireForm(vo);
|
||||
|
||||
@@ -393,14 +393,6 @@ public class PurchsEvtController {
|
||||
tempVO.setEndAmt(null);
|
||||
}
|
||||
|
||||
if ("01".equals(purchsEvtVO.getDscntBnefDvCd())) {
|
||||
tempVO.setBgnAmt("0");
|
||||
tempVO.setEndAmt("0");
|
||||
} else if ("02".equals(purchsEvtVO.getDscntBnefDvCd())) {
|
||||
tempVO.setBgnCnt("0");
|
||||
tempVO.setEndCnt("0");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
for (BOPurchsEvtDiscountBnefVO tempVO : purchsEvtVO.getDiscountBnefVOList()) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
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.vo.BOSetupOrdrVO;
|
||||
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.util.communicate.SendToResrc;
|
||||
import com.wb.domainserver.util.communicate.ValidateResultConverter;
|
||||
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;
|
||||
@@ -63,6 +66,8 @@ public class SetupOrdrController {
|
||||
|
||||
@Autowired
|
||||
private BOOrdrMngrService service;
|
||||
@Autowired
|
||||
private BOMaSopmalService bOMaSopmalService;
|
||||
|
||||
|
||||
/**
|
||||
@@ -73,15 +78,14 @@ public class SetupOrdrController {
|
||||
@Policy(AuthPolicy.RESTRICTED)
|
||||
@RequestMapping(value="/selectOrdrSetupList")
|
||||
public String selectOrdrSetupList(ModelMap model, BOSetupOrdrVO boOrdrVO, @CookieValue(value = "authSopmalCd") String authSopmalCd) {
|
||||
DataMap content = new DataMap();
|
||||
|
||||
boOrdrVO.setSopmalCd(authSopmalCd);
|
||||
content.put("ordrSetupList", service.selectBOOrdrSetupList(boOrdrVO));
|
||||
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
boOrdrVO.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
|
||||
Map<String, Object> content = service.selectBOOrdrSetupList(boOrdrVO);
|
||||
BOMaSopmalVO boMaSopmalVO = new BOMaSopmalVO();
|
||||
boMaSopmalVO.setSopmalCd(authSopmalCd);
|
||||
content.put("sopmalDetailList", bOMaSopmalService.selectBOSopmalUpdtForm(boMaSopmalVO));
|
||||
|
||||
model.addAttribute("resultMap", content);
|
||||
// responseHandler.handleResponse(
|
||||
@@ -154,6 +158,19 @@ public class SetupOrdrController {
|
||||
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
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
|
||||
@@ -1015,4 +1015,14 @@ public class MainController {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 연령확인 팝업
|
||||
* @return
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value="/sopmal/main/selectAgeChkPopup", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
public String selectAgeChkPopup(HttpServletRequest request) {
|
||||
return Util.getDeviceType(request)+"/main/AgeChkPopupR";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user