Compare commits
26 Commits
master_ord
...
d3438b762f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3438b762f | ||
|
|
43508a858b | ||
|
|
0ca70094c9 | ||
|
|
176e0d874e | ||
|
|
9b91679ec6 | ||
|
|
e261fbff7d | ||
|
|
2579d5c3f9 | ||
|
|
e731981a26 | ||
|
|
048bea431d | ||
|
|
dd67ee3b44 | ||
|
|
9c52b23fc0 | ||
|
|
c7f9910b44 | ||
|
|
f5ad9d1eed | ||
|
|
ae53e18a1e | ||
|
|
bdab97c65c | ||
|
|
666fef8bef | ||
|
|
888c02b3f2 | ||
|
|
293bb016b8 | ||
|
|
4ea4289a85 | ||
|
|
1419041bb9 | ||
|
|
33f82a1f94 | ||
|
|
b2a67966ee | ||
|
|
3e64dd72a0 | ||
|
|
40dc7f7c85 | ||
|
|
2448e856ba | ||
|
|
272cd36110 |
@@ -286,13 +286,7 @@ public class BOMaMtngController {
|
|||||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// if (CollectionUtils.isEmpty(multiOrdrDlvylc)) {
|
// 여러곳배송처럼 처리하더라도 주소는 하나이므로 shipping 체크
|
||||||
// log.info("배송지 정보를 찾을 수 없습니다.");
|
|
||||||
// content.put("result","Y");
|
|
||||||
// content.put("message", "배송지 정보를 찾을 수 없습니다.");
|
|
||||||
// // throw new WnbtRestException("주문유형 정보를 찾을 수 없습니다.");
|
|
||||||
// return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
|
||||||
// }
|
|
||||||
if (CollectionUtils.isEmpty(shipping)) {
|
if (CollectionUtils.isEmpty(shipping)) {
|
||||||
log.info("배송지 정보를 찾을 수 없습니다.");
|
log.info("배송지 정보를 찾을 수 없습니다.");
|
||||||
content.put("result","Y");
|
content.put("result","Y");
|
||||||
@@ -329,91 +323,27 @@ public class BOMaMtngController {
|
|||||||
String[] receptMbtlnbArray = null; // 배송지 받는이 휴대폰번호
|
String[] receptMbtlnbArray = null; // 배송지 받는이 휴대폰번호
|
||||||
|
|
||||||
if ("01".equals(ordrTyCd) || "03".equals(ordrTyCd) || "06".equals(ordrTyCd)) { // 일반주문, 회원개인결제, 정기배송
|
if ("01".equals(ordrTyCd) || "03".equals(ordrTyCd) || "06".equals(ordrTyCd)) { // 일반주문, 회원개인결제, 정기배송
|
||||||
if (!CollectionUtils.isEmpty(multiOrdrDlvylc)) {
|
if (
|
||||||
|
StringUtil.isEmpty((String) shipping.get("dlvylcZip")) ||
|
||||||
// 배송지 리스트
|
StringUtil.isEmpty((String) shipping.get("dlvylcAdresDvCd")) ||
|
||||||
List<LinkedHashMap<String, Object>> dlvylcListMulti = (List<LinkedHashMap<String, Object>>) multiOrdrDlvylc.get("dlvylc");
|
( "01".equals(shipping.get("dlvylcAdresDvCd")) && StringUtil.isEmpty((String) shipping.get("dlvylcRnmAdres")) ) ||
|
||||||
|
( "02".equals(shipping.get("dlvylcAdresDvCd")) && StringUtil.isEmpty((String) shipping.get("dlvylcLnbAdres")) ) ||
|
||||||
/** ----------------------------------------------- 배송지별 주문 상품 수량 검사 START ----------------------------------------------- */
|
StringUtil.isEmpty((String) shipping.get("dlvylcAdresDtl"))
|
||||||
content = checkDistributedQyMatchesOrder(goodsList, dlvylcListMulti);
|
) {
|
||||||
if (!"0".equals(content.get("status"))) {
|
content.put("result","Y");
|
||||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
content.put("message", "배송지 정보를 찾을 수 없습니다. 다시 시도해 주세요.");
|
||||||
}
|
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||||
/** ----------------------------------------------- 배송지별 주문 상품 수량 검사 END ----------------------------------------------- */
|
|
||||||
|
|
||||||
// 부정판매 체크를 위한 배송지 정렬
|
|
||||||
if (!CollectionUtils.isEmpty(dlvylcListMulti)) {
|
|
||||||
|
|
||||||
boolean hasInvalidAddress = dlvylcListMulti.stream().anyMatch(map -> {
|
|
||||||
String dlvylcZip = StringUtil.isNullToString(map.get("dlvylcZip"));
|
|
||||||
String adresDvCd = StringUtil.isNullToString(map.get("dlvylcAdresDvCd"));
|
|
||||||
String dlvylcLnbAdres = StringUtil.isNullToString(map.get("dlvylcLnbAdres"));
|
|
||||||
String dlvylcRnmAdres = StringUtil.isNullToString(map.get("dlvylcRnmAdres"));
|
|
||||||
String adresDtl = StringUtil.isNullToString(map.get("dlvylcAdresDtl"));
|
|
||||||
|
|
||||||
return StringUtil.isEmpty(dlvylcZip)
|
|
||||||
|| StringUtil.isEmpty(adresDvCd)
|
|
||||||
|| ("01".equals(adresDvCd) && StringUtil.isEmpty(dlvylcRnmAdres))
|
|
||||||
|| ("02".equals(adresDvCd) && StringUtil.isEmpty(dlvylcLnbAdres))
|
|
||||||
|| StringUtil.isEmpty(adresDtl);
|
|
||||||
});
|
|
||||||
|
|
||||||
if (hasInvalidAddress) {
|
|
||||||
content.put("result","Y");
|
|
||||||
content.put("message", "배송지 정보를 찾을 수 없습니다. 다시 시도해 주세요.");
|
|
||||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
|
||||||
}
|
|
||||||
|
|
||||||
List<String> adresList = dlvylcListMulti.stream()
|
|
||||||
.map(map -> {
|
|
||||||
String adresDvCd = StringUtil.isNullToString(map.get("dlvylcAdresDvCd"));
|
|
||||||
String adresDtl = StringUtil.isNullToString(map.get("dlvylcAdresDtl"));
|
|
||||||
String dlvylcLnbAdres = StringUtil.isNullToString(map.get("dlvylcLnbAdres"));
|
|
||||||
String dlvylcRnmAdres = StringUtil.isNullToString(map.get("dlvylcRnmAdres"));
|
|
||||||
String adresMulti;
|
|
||||||
if ("01".equals(adresDvCd)) {
|
|
||||||
adresMulti = dlvylcRnmAdres + " " + adresDtl;
|
|
||||||
} else {
|
|
||||||
adresMulti = dlvylcLnbAdres + " " + adresDtl;
|
|
||||||
}
|
|
||||||
|
|
||||||
return adresMulti;
|
|
||||||
})
|
|
||||||
.collect(Collectors.toList());
|
|
||||||
|
|
||||||
adresArray = adresList.toArray(new String[0]);
|
|
||||||
|
|
||||||
List<String> receptMbtlnbList = dlvylcListMulti.stream()
|
|
||||||
.map(map -> {
|
|
||||||
return StringUtil.isNullToString(map.get("recpntMbtlnb"));
|
|
||||||
})
|
|
||||||
.collect(Collectors.toList());
|
|
||||||
|
|
||||||
receptMbtlnbArray = receptMbtlnbList.toArray(new String[0]);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// if (
|
|
||||||
// StringUtil.isEmpty((String) shipping.get("dlvylcZip")) ||
|
String dlvylcAdresDvCd = (String) shipping.get("dlvylcAdresDvCd");
|
||||||
// StringUtil.isEmpty((String) shipping.get("dlvylcAdresDvCd")) ||
|
String dlvylcLnbAdres = (String) shipping.get("dlvylcLnbAdres");
|
||||||
// ( "01".equals(shipping.get("dlvylcAdresDvCd")) && StringUtil.isEmpty((String) shipping.get("dlvylcRnmAdres")) ) ||
|
String dlvylcRnmAdres = (String) shipping.get("dlvylcRnmAdres");
|
||||||
// ( "02".equals(shipping.get("dlvylcAdresDvCd")) && StringUtil.isEmpty((String) shipping.get("dlvylcLnbAdres")) ) ||
|
String dlvylcAdresDtl = (String) shipping.get("dlvylcAdresDtl");
|
||||||
// StringUtil.isEmpty((String) shipping.get("dlvylcAdresDtl"))
|
|
||||||
// ) {
|
adres = "01".equals(dlvylcAdresDvCd) ? dlvylcRnmAdres + " " + dlvylcAdresDtl : dlvylcLnbAdres + " " + dlvylcAdresDtl;
|
||||||
// content.put("result","Y");
|
|
||||||
// content.put("message", "배송지 정보를 찾을 수 없습니다. 다시 시도해 주세요.");
|
String recpntMbtlnb = StringUtil.isNullToString(shipping.get("recpntMbtlnb"));
|
||||||
// return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
receptMbtlnbArray = new String[]{recpntMbtlnb};
|
||||||
// }
|
|
||||||
//
|
|
||||||
// String dlvylcAdresDvCd = (String) shipping.get("dlvylcAdresDvCd");
|
|
||||||
// String dlvylcLnbAdres = (String) shipping.get("dlvylcLnbAdres");
|
|
||||||
// String dlvylcRnmAdres = (String) shipping.get("dlvylcRnmAdres");
|
|
||||||
// String dlvylcAdresDtl = (String) shipping.get("dlvylcAdresDtl");
|
|
||||||
//
|
|
||||||
// adres = "01".equals(dlvylcAdresDvCd) ? dlvylcRnmAdres + " " + dlvylcAdresDtl : dlvylcLnbAdres + " " + dlvylcAdresDtl;
|
|
||||||
//
|
|
||||||
// String recpntMbtlnb = StringUtil.isNullToString(shipping.get("recpntMbtlnb"));
|
|
||||||
// receptMbtlnbArray = new String[]{recpntMbtlnb};
|
|
||||||
} else if ("05".equals(ordrTyCd)) { // 여러곳 배송
|
} else if ("05".equals(ordrTyCd)) { // 여러곳 배송
|
||||||
if (!CollectionUtils.isEmpty(multiOrdrDlvylc)) {
|
if (!CollectionUtils.isEmpty(multiOrdrDlvylc)) {
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import com.wb.domainserver.domain.gcone.bbs.cnslt.vo.BOCnsltVO;
|
|||||||
import com.wb.domainserver.domain.gcone.common.service.BOCommonService;
|
import com.wb.domainserver.domain.gcone.common.service.BOCommonService;
|
||||||
import com.wb.domainserver.domain.gcone.goods.purchs.mapper.BOPurchsMapper;
|
import com.wb.domainserver.domain.gcone.goods.purchs.mapper.BOPurchsMapper;
|
||||||
import com.wb.domainserver.domain.gcone.goods.purchs.vo.*;
|
import com.wb.domainserver.domain.gcone.goods.purchs.vo.*;
|
||||||
|
import com.wb.domainserver.domain.gcone.ordr.ordr.mapper.BOOrdrMapper;
|
||||||
import com.wb.domainserver.domain.gcone.ordr.ordr.vo.BOOrderRestAmtVO;
|
import com.wb.domainserver.domain.gcone.ordr.ordr.vo.BOOrderRestAmtVO;
|
||||||
import com.wb.domainserver.exception.WnbtRestException;
|
import com.wb.domainserver.exception.WnbtRestException;
|
||||||
import com.wb.domainserver.security.authentication.AnonymousUser;
|
import com.wb.domainserver.security.authentication.AnonymousUser;
|
||||||
@@ -33,6 +34,9 @@ public class BOOrderService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private BOPurchsMapper mapper;
|
private BOPurchsMapper mapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private BOOrdrMapper boOrdrMapper;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private BOMaMtngService maMtngService;
|
private BOMaMtngService maMtngService;
|
||||||
|
|
||||||
@@ -83,7 +87,7 @@ public class BOOrderService {
|
|||||||
|
|
||||||
String sopmalCd = "";
|
String sopmalCd = "";
|
||||||
if("01".equals(user.getSysDvCd())){
|
if("01".equals(user.getSysDvCd())){
|
||||||
sopmalCd = user.getSopmalCd();
|
sopmalCd = user.getSopmalCd();
|
||||||
}else{
|
}else{
|
||||||
sopmalCd = param.get("sopmalCd").toString();
|
sopmalCd = param.get("sopmalCd").toString();
|
||||||
}
|
}
|
||||||
@@ -93,14 +97,35 @@ public class BOOrderService {
|
|||||||
log.debug("insertMngrOrdrRegist-param : {}", param);
|
log.debug("insertMngrOrdrRegist-param : {}", param);
|
||||||
|
|
||||||
/* *****************************
|
/* *****************************
|
||||||
0. 여러곳 배송 배송지 세팅
|
0. 배송 정책에 따른 배송지 세팅
|
||||||
***************************** */
|
***************************** */
|
||||||
|
|
||||||
/** 여러곳 배송 배송지 세팅 시작 */
|
/** 여러곳 배송 배송지 세팅 시작 */
|
||||||
LinkedHashMap<String, Object> multiOrdrDlvylcMap = new LinkedHashMap<>();
|
LinkedHashMap<String, Object> multiOrdrDlvylcMap = new LinkedHashMap<>();
|
||||||
List<LinkedHashMap<String, Object>> dlvylcListMulti = new ArrayList<>();
|
List<LinkedHashMap<String, Object>> dlvylcListMulti = new ArrayList<>();
|
||||||
|
|
||||||
multiOrdrDlvylcMap = (LinkedHashMap) param.get("multiOrdrDlvylc");
|
multiOrdrDlvylcMap = (LinkedHashMap) param.get("multiOrdrDlvylc");
|
||||||
log.debug("multiOrdrDlvylcMap : {}", multiOrdrDlvylcMap);
|
log.debug("multiOrdrDlvylcMap : {}", multiOrdrDlvylcMap);
|
||||||
|
|
||||||
|
String dlvylcAreaCd = (String) shipping.get("dlvylcAreaCd");
|
||||||
|
String ordrAdressZip = StringUtil.isNullToString(shipping.get("dlvylcZip"));
|
||||||
|
String prefcd = (String) shipping.get("prefcd");
|
||||||
|
String defaultAdressAt = "N";
|
||||||
|
String finalSopmalCd = sopmalCd;
|
||||||
|
DataMap defaultAdressVO = new DataMap() {{ //
|
||||||
|
put("sopmalCd", finalSopmalCd); // 쇼핑몰 코드
|
||||||
|
put("zip", ordrAdressZip); // 우편번호
|
||||||
|
put("prefcd", prefcd); // 도도부현코드
|
||||||
|
}};
|
||||||
|
|
||||||
|
if("KR".equals(dlvylcAreaCd)){
|
||||||
|
defaultAdressAt = boOrdrMapper.selectBODefaultAdressAtInqire(defaultAdressVO);
|
||||||
|
}
|
||||||
|
if("JP".equals(dlvylcAreaCd)){
|
||||||
|
defaultAdressAt = boOrdrMapper.selectBODefaultAdressAtInqire2(defaultAdressVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if ("01".equals(ordrTyCd) || "03".equals(ordrTyCd) || "04".equals(ordrTyCd) || "06".equals(ordrTyCd)) { // 일반주문, 회원 개인결제, 정기배송
|
if ("01".equals(ordrTyCd) || "03".equals(ordrTyCd) || "04".equals(ordrTyCd) || "06".equals(ordrTyCd)) { // 일반주문, 회원 개인결제, 정기배송
|
||||||
|
|
||||||
for(int i=0;i<goodsList.size();i++) {
|
for(int i=0;i<goodsList.size();i++) {
|
||||||
@@ -115,25 +140,110 @@ public class BOOrderService {
|
|||||||
|
|
||||||
DataMap shippingGrouping = mapper.selectShippingGrouping(shippingParam);
|
DataMap shippingGrouping = mapper.selectShippingGrouping(shippingParam);
|
||||||
|
|
||||||
|
// "KR".equals(dlvylcAreaCd)인 경우
|
||||||
|
String itemDlvyGroupDvCd = (String) shippingGrouping.get("dlvyGroupDvCd");
|
||||||
BigDecimal itemDftDlvyAmt = (BigDecimal) shippingGrouping.get("dftDlvyAmt"); // 기본배송비
|
BigDecimal itemDftDlvyAmt = (BigDecimal) shippingGrouping.get("dftDlvyAmt"); // 기본배송비
|
||||||
BigDecimal itemDlvyAmt = itemDftDlvyAmt; // 배송비
|
BigDecimal itemDlvyAmt = itemDftDlvyAmt; // 배송비
|
||||||
// String dlvyAreaAditAt = (String) shippingGrouping.get("dlvyAreaAditAt"); // 도서산간 추가 배송비 조건
|
String itemDlvyAreaAditAt = (String) shippingGrouping.get("dlvyAreaAditAt"); // 도서산간 추가 배송비 조건
|
||||||
// BigDecimal areaAditDlvyAmt = (BigDecimal) shippingGrouping.get("areaAditDlvyAmt"); // 도서산간 추가 배송비
|
BigDecimal itemAreaAditDlvyAmt = (BigDecimal) shippingGrouping.get("areaAditDlvyAmt"); // 도서산간 추가 배송비
|
||||||
|
String itemAmtCndUseAt = (String) shippingGrouping.get("amtCndUseAt"); // 금액조건
|
||||||
|
BigDecimal itemAmtCndAditAmt = (BigDecimal) shippingGrouping.get("amtCndAditAmt");
|
||||||
|
String itemCntCndUseAt = (String) shippingGrouping.get("cntCndUseAt"); // 수량조건
|
||||||
|
BigDecimal itemCntCndAditAmt = (BigDecimal) shippingGrouping.get("cntCndAditAmt"); // 수량
|
||||||
|
|
||||||
List<LinkedHashMap> itemGoodsList = new ArrayList<>();
|
if("JP".equals(dlvylcAreaCd)){
|
||||||
itemGoodsList.add(goodsList.get(i));
|
itemDftDlvyAmt = (BigDecimal) shippingGrouping.get("dftDlvyAmt2"); // 기본배송비
|
||||||
for (LinkedHashMap<String, Object> itemGoodsMap : itemGoodsList) {
|
itemDlvyAmt = itemDftDlvyAmt; // 배송비
|
||||||
itemGoodsMap.put("qy", 1);
|
itemDlvyAreaAditAt = (String) shippingGrouping.get("dlvyAreaAditAt2"); // 도서산간 추가 배송비 조건
|
||||||
|
itemAreaAditDlvyAmt = (BigDecimal) shippingGrouping.get("areaAditDlvyAmt2"); // 도서산간 추가 배송비
|
||||||
|
itemAmtCndUseAt = (String) shippingGrouping.get("amtCndUseAt2"); // 금액조건
|
||||||
|
itemAmtCndAditAmt = (BigDecimal) shippingGrouping.get("amtCndAditAmt");
|
||||||
|
itemCntCndUseAt = (String) shippingGrouping.get("cntCndUseAt2"); // 수량조건
|
||||||
|
itemCntCndAditAmt = (BigDecimal) shippingGrouping.get("cntCndAditAmt2"); // 수량
|
||||||
}
|
}
|
||||||
List<LinkedHashMap> itempPrsntList = new ArrayList<>();
|
|
||||||
if(!prsntList.isEmpty()){
|
// 추가배송비 계산 (MUL)
|
||||||
itempPrsntList.add(prsntList.get(i));
|
if (!StringUtils.isEmpty(itemDlvyAreaAditAt) && "Y".equals(itemDlvyAreaAditAt)) {
|
||||||
for (LinkedHashMap<String, Object> itemPrsntMap : itempPrsntList) {
|
if (!StringUtils.isEmpty(defaultAdressAt) && "Y".equals(defaultAdressAt)) {
|
||||||
itemPrsntMap.put("qy", 1);
|
itemDlvyAmt = itemDlvyAmt.add(itemAreaAditDlvyAmt); // 유료 배송 도서산간 추가 배송비
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int j=0;j<goodsQy;j++) {
|
|
||||||
|
if ("03".equals(itemDlvyGroupDvCd) && "Y".equals(itemCntCndUseAt)) {
|
||||||
|
|
||||||
|
// BigDecimal qy = (BigDecimal) goodsList.get(i).get("qy"); // 수량
|
||||||
|
BigDecimal qy = new BigDecimal(String.valueOf(goodsList.get(i).get("qy"))); // 수량
|
||||||
|
BigDecimal unitQy = qy.divide(itemCntCndAditAmt, 0, RoundingMode.CEILING); // 단위수량
|
||||||
|
|
||||||
|
goodsQy = unitQy.intValue();
|
||||||
|
|
||||||
|
for(int j=0;j<goodsQy;j++) {
|
||||||
|
|
||||||
|
List<LinkedHashMap> itemGoodsList = new ArrayList<>();
|
||||||
|
itemGoodsList.add(goodsList.get(i));
|
||||||
|
for (LinkedHashMap<String, Object> itemGoodsMap : itemGoodsList) {
|
||||||
|
if((goodsQy-j) > 1){
|
||||||
|
itemGoodsMap.put("qy", itemCntCndAditAmt.intValue());
|
||||||
|
} else {
|
||||||
|
itemGoodsMap.put("qy", qy.intValue() - (itemCntCndAditAmt.intValue() * j));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
List<LinkedHashMap> itempPrsntList = new ArrayList<>();
|
||||||
|
if(!prsntList.isEmpty()){
|
||||||
|
itempPrsntList.add(prsntList.get(i));
|
||||||
|
for (LinkedHashMap<String, Object> itemPrsntMap : itempPrsntList) {
|
||||||
|
if((goodsQy-j) > 1){
|
||||||
|
itemPrsntMap.put("qy", itemCntCndAditAmt.intValue());
|
||||||
|
} else {
|
||||||
|
itemPrsntMap.put("qy", qy.intValue() - (itemCntCndAditAmt.intValue() * j));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
LinkedHashMap<String, Object> dlvyMap = new LinkedHashMap<>();
|
||||||
|
|
||||||
|
dlvyMap.put("dftDlvyAmt", itemDftDlvyAmt.intValue());
|
||||||
|
dlvyMap.put("dlvyAmt", itemDlvyAmt.intValue());
|
||||||
|
dlvyMap.put("couponInnb", 0);
|
||||||
|
dlvyMap.put("dwldCouponInnb", 0);
|
||||||
|
dlvyMap.put("dplctDscntAt", "");
|
||||||
|
dlvyMap.put("otrCouponSmtmUseAt", "");
|
||||||
|
dlvyMap.put("mngrFreeDlvyUseAt", "N");
|
||||||
|
dlvyMap.put("dlvylcAreaCd", shipping.get("dlvylcAreaCd"));
|
||||||
|
dlvyMap.put("dlvylcZip", shipping.get("dlvylcZip"));
|
||||||
|
dlvyMap.put("prefcd", shipping.get("prefcd"));
|
||||||
|
dlvyMap.put("recpntNm", shipping.get("recpntNm"));
|
||||||
|
dlvyMap.put("recpntMbtlnb", shipping.get("recpntMbtlnb"));
|
||||||
|
dlvyMap.put("dlvylcAdresDvCd", shipping.get("dlvylcAdresDvCd"));
|
||||||
|
dlvyMap.put("dlvylcLnbAdres", shipping.get("dlvylcLnbAdres"));
|
||||||
|
dlvyMap.put("dlvylcRnmAdres", shipping.get("dlvylcRnmAdres"));
|
||||||
|
dlvyMap.put("dlvylcAdresDtl", shipping.get("dlvylcAdresDtl"));
|
||||||
|
dlvyMap.put("dlvyMssageCn", shipping.get("dlvyMssageCn"));
|
||||||
|
dlvyMap.put("goodsList", itemGoodsList);
|
||||||
|
dlvyMap.put("prsntList", itempPrsntList); //prsntList.get(i));
|
||||||
|
|
||||||
|
dlvylcListMulti.add(dlvyMap);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
|
||||||
|
BigDecimal qy = new BigDecimal(String.valueOf(goodsList.get(i).get("qy"))); // 수량
|
||||||
|
|
||||||
|
List<LinkedHashMap> itemGoodsList = new ArrayList<>();
|
||||||
|
itemGoodsList.add(goodsList.get(i));
|
||||||
|
for (LinkedHashMap<String, Object> itemGoodsMap : itemGoodsList) {
|
||||||
|
itemGoodsMap.put("qy", qy.intValue());
|
||||||
|
}
|
||||||
|
|
||||||
|
List<LinkedHashMap> itempPrsntList = new ArrayList<>();
|
||||||
|
if(!prsntList.isEmpty()){
|
||||||
|
itempPrsntList.add(prsntList.get(i));
|
||||||
|
for (LinkedHashMap<String, Object> itemPrsntMap : itempPrsntList) {
|
||||||
|
itemPrsntMap.put("qy", qy.intValue());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LinkedHashMap<String, Object> dlvyMap = new LinkedHashMap<>();
|
LinkedHashMap<String, Object> dlvyMap = new LinkedHashMap<>();
|
||||||
|
|
||||||
dlvyMap.put("dftDlvyAmt", itemDftDlvyAmt.intValue());
|
dlvyMap.put("dftDlvyAmt", itemDftDlvyAmt.intValue());
|
||||||
@@ -143,7 +253,9 @@ public class BOOrderService {
|
|||||||
dlvyMap.put("dplctDscntAt", "");
|
dlvyMap.put("dplctDscntAt", "");
|
||||||
dlvyMap.put("otrCouponSmtmUseAt", "");
|
dlvyMap.put("otrCouponSmtmUseAt", "");
|
||||||
dlvyMap.put("mngrFreeDlvyUseAt", "N");
|
dlvyMap.put("mngrFreeDlvyUseAt", "N");
|
||||||
|
dlvyMap.put("dlvylcAreaCd", shipping.get("dlvylcAreaCd"));
|
||||||
dlvyMap.put("dlvylcZip", shipping.get("dlvylcZip"));
|
dlvyMap.put("dlvylcZip", shipping.get("dlvylcZip"));
|
||||||
|
dlvyMap.put("prefcd", shipping.get("prefcd"));
|
||||||
dlvyMap.put("recpntNm", shipping.get("recpntNm"));
|
dlvyMap.put("recpntNm", shipping.get("recpntNm"));
|
||||||
dlvyMap.put("recpntMbtlnb", shipping.get("recpntMbtlnb"));
|
dlvyMap.put("recpntMbtlnb", shipping.get("recpntMbtlnb"));
|
||||||
dlvyMap.put("dlvylcAdresDvCd", shipping.get("dlvylcAdresDvCd"));
|
dlvyMap.put("dlvylcAdresDvCd", shipping.get("dlvylcAdresDvCd"));
|
||||||
@@ -156,9 +268,13 @@ public class BOOrderService {
|
|||||||
|
|
||||||
dlvylcListMulti.add(dlvyMap);
|
dlvylcListMulti.add(dlvyMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 배송지가 1개 이상이면 여러곳 배송으로 변경
|
||||||
|
if(dlvylcListMulti.size() > 1) {
|
||||||
|
ordrTyCd = "05";
|
||||||
|
}
|
||||||
|
|
||||||
} else if ("05".equals(ordrTyCd)) { // 여러곳 배송, 선물하기
|
} else if ("05".equals(ordrTyCd)) { // 여러곳 배송, 선물하기
|
||||||
if (!CollectionUtils.isEmpty(multiOrdrDlvylcMap)) {
|
if (!CollectionUtils.isEmpty(multiOrdrDlvylcMap)) {
|
||||||
@@ -169,6 +285,8 @@ public class BOOrderService {
|
|||||||
}
|
}
|
||||||
/** 여러곳 배송 배송지 세팅 종료 */
|
/** 여러곳 배송 배송지 세팅 종료 */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* *****************************
|
/* *****************************
|
||||||
1. 주문등록(GC_ORDER)
|
1. 주문등록(GC_ORDER)
|
||||||
***************************** */
|
***************************** */
|
||||||
@@ -194,387 +312,123 @@ public class BOOrderService {
|
|||||||
|
|
||||||
BOOrderShippingVO shippingEscrowVO = new BOOrderShippingVO();
|
BOOrderShippingVO shippingEscrowVO = new BOOrderShippingVO();
|
||||||
if ("01".equals(ordrTyCd) || "03".equals(ordrTyCd) || "04".equals(ordrTyCd) || "06".equals(ordrTyCd)) { // 일반주문, 회원 개인결제, 정기배송
|
if ("01".equals(ordrTyCd) || "03".equals(ordrTyCd) || "04".equals(ordrTyCd) || "06".equals(ordrTyCd)) { // 일반주문, 회원 개인결제, 정기배송
|
||||||
log.debug("여러곳 배송 > 배송지별 배송정보 => {} ", new Gson().toJson(dlvylcListMulti));
|
|
||||||
|
|
||||||
// 짜투리 계산을 위해 상품별 수량 체크
|
BOOrderShippingVO shippingVO = new BOOrderShippingVO();
|
||||||
List<LinkedHashMap> goodsSetList = new ArrayList<>();
|
|
||||||
for (LinkedHashMap multiGoods : goodsList) {
|
|
||||||
int multiGoodsInnb = (int) multiGoods.get("goodsInnb");
|
|
||||||
int multiGoodsOptnInnb = (int) multiGoods.get("goodsOptnInnb");
|
|
||||||
|
|
||||||
LinkedHashMap baseGoods = goodsList.stream()
|
shippingVO.setSopmalCd(sopmalCd);
|
||||||
.filter(goods ->
|
shippingVO.setOrdrInnb(ordrInnb);
|
||||||
Objects.equals((int) goods.get("goodsInnb"), multiGoodsInnb) &&
|
shippingVO.setMngrInnb(orderVO.getMngrInnb());
|
||||||
Objects.equals((int) goods.get("goodsOptnInnb"), multiGoodsOptnInnb)
|
shippingVO.setMbrInnb(orderVO.getMbrInnb());
|
||||||
)
|
shippingVO.setOrdrSttusCd(orderVO.getOrdrSttusCd());
|
||||||
.findFirst()
|
shippingVO.setMngrFreeDlvyUseAt(StringUtil.isNullToString(shipping.get("mngrFreeDlvyUseAt")) != "" ? StringUtil.isNullToString(shipping.get("mngrFreeDlvyUseAt")) : "N");
|
||||||
.orElse(null);
|
|
||||||
|
|
||||||
if (baseGoods != null) {
|
/* *****************************************
|
||||||
LinkedHashMap merged = new LinkedHashMap<>(baseGoods);
|
5. 주문배송 정보 등록(GC_ORDER_SHIPPING)
|
||||||
merged.put("setQy", 0);
|
***************************************** */
|
||||||
goodsSetList.add(merged);
|
|
||||||
}
|
insertShipping(ordrTyCd, shipping, shippingVO);
|
||||||
|
shippingEscrowVO = shippingVO; //에스크로에 보낼 배송정보
|
||||||
|
|
||||||
|
BigInteger ordrDlvyInnb = shippingVO.getOrdrDlvyInnb();
|
||||||
|
|
||||||
|
String mngrFreeDlvyUseAt = (String) shipping.get("mngrFreeDlvyUseAt");
|
||||||
|
|
||||||
|
if ("Y".equals(mngrFreeDlvyUseAt)) { // TODO : cjh : 2025-02-28 무료 배송비 : 'Y' 일 경우 애누리에 할인 금액 세팅 -> 배송비 0원에 여부 데이터만 세팅으로 변경 됌.
|
||||||
|
// BigDecimal dscntAmt = new BigDecimal(StringUtils.hasText((String) enuri.get("enuriAmt")) ? (String) enuri.get("enuriAmt") : "0");
|
||||||
|
// BigDecimal mngrFreeDlvyUseAmt = new BigDecimal((String) shipping.get("mngrFreeDlvyUseAmt"));
|
||||||
|
|
||||||
|
// enuri.put("enuriAmt", dscntAmt.add(mngrFreeDlvyUseAmt).toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
log.debug("상품별 수량 체크 : {}", goodsSetList);
|
// 분배된 할인 금액 누적
|
||||||
|
BOOrderRestAmtVO discountInfo = new BOOrderRestAmtVO();
|
||||||
|
|
||||||
|
int optionSeqIndex = 1;
|
||||||
|
BOOrderNoVO optionNoVO = new BOOrderNoVO();
|
||||||
|
optionNoVO.setOrdrInnb(ordrInnb);
|
||||||
|
for (int i = 0; i < goodsList.size(); i++) {
|
||||||
|
LinkedHashMap goods = goodsList.get(i);
|
||||||
|
|
||||||
if (!CollectionUtils.isEmpty(dlvylcListMulti)) {
|
boolean isLast = i == goodsList.size() - 1;
|
||||||
|
|
||||||
// 배송지별 상품 수량 합산 - isLast 찾기 위함.
|
if (!CollectionUtils.isEmpty(goods)) {
|
||||||
List<LinkedHashMap<String, Object>> allMergedGoodsList = new ArrayList<>();
|
int goodsInnb = (int) goods.get("goodsInnb");
|
||||||
|
int goodsOptnInnb = (int) goods.get("goodsOptnInnb");
|
||||||
|
int ordrQy = (int) goods.get("qy");
|
||||||
|
|
||||||
for (LinkedHashMap<String, Object> dlvylcMapMulti : dlvylcListMulti) {
|
BOOrderItemVO orderItemVO = insertedGoodsList.stream().filter(obj-> Objects.equals(ordrInnb, obj.getOrdrInnb()) &&
|
||||||
List<LinkedHashMap> goodsListMulti = (List<LinkedHashMap>) dlvylcMapMulti.get("goodsList");
|
Objects.equals(BigInteger.valueOf(goodsInnb), obj.getGoodsInnb())).findAny().orElse(null);
|
||||||
|
|
||||||
for (LinkedHashMap multiGoods : goodsListMulti) {
|
/* ***********************************************
|
||||||
int multiGoodsInnb = (int) multiGoods.get("goodsInnb");
|
6. 주문 상품 옵션 정보 등록(GC_ORDER_ITEM_OPTION)
|
||||||
int multiGoodsOptnInnb = (int) multiGoods.get("goodsOptnInnb");
|
주문 상품 입력 옵션 정보 등록
|
||||||
|
*********************************************** */
|
||||||
|
if (orderItemVO != null) {
|
||||||
|
BOOrderItemOptnVO itemOptnVO = new BOOrderItemOptnVO();
|
||||||
|
|
||||||
LinkedHashMap baseGoods = goodsList.stream()
|
itemOptnVO.setSopmalCd(sopmalCd);
|
||||||
.filter(goods ->
|
itemOptnVO.setOrdrGoodsInnb(orderItemVO.getOrdrGoodsInnb());
|
||||||
Objects.equals((int) goods.get("goodsInnb"), multiGoodsInnb) &&
|
itemOptnVO.setOrdrDlvyInnb(ordrDlvyInnb);
|
||||||
Objects.equals((int) goods.get("goodsOptnInnb"), multiGoodsOptnInnb)
|
itemOptnVO.setOrdrInnb(ordrInnb);
|
||||||
)
|
itemOptnVO.setOrdrSttusCd("0"); // 주문상태(99:결제실패)
|
||||||
.findFirst()
|
|
||||||
.orElse(null);
|
|
||||||
|
|
||||||
if (baseGoods != null) {
|
setGoodsOptn(sopmalCd, goodsInnb, goodsOptnInnb, ordrQy, itemOptnVO); // 상품 옵션정보 세팅
|
||||||
LinkedHashMap<String, Object> merged = new LinkedHashMap<>(baseGoods);
|
|
||||||
allMergedGoodsList.add(merged);
|
setDscntDtls(goodsInnb, goodsOptnInnb, null, goodsList, shipping, enuri, itemOptnVO, isLast, isLast, discountInfo); // 상품 할인내역 세팅
|
||||||
|
|
||||||
|
if (StringUtils.hasText((String) purchsr.get("mbrId"))) { // 회원
|
||||||
|
setMlgAmt(ordrTyCd, goodsInnb, goodsOptnInnb, ordrQy, goodsList, itemOptnVO); // 상품 마일리지 정보 세팅
|
||||||
|
} else {
|
||||||
|
itemOptnVO.setMlgAccmlUnit(new BigDecimal(0)); // 마일리지적립금액(개당)
|
||||||
|
itemOptnVO.setMlgAccmlRest(new BigDecimal(0)); // 마일리지적립금액(짜투리)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 분배된 할인 금액 누적
|
itemOptnVO.setOrdrGoodsOptnInnb(orderNoService.generateOrderItemOptnNo());
|
||||||
BOOrderRestAmtVO discountInfo = new BOOrderRestAmtVO();
|
mapper.insertOrdrGoodsOption(itemOptnVO); // 주문 상품 옵션 정보 등록
|
||||||
int allGoodsCount = 0; // 전체 상품 순번
|
|
||||||
|
|
||||||
for (LinkedHashMap<String, Object> dlvylcMapMulti : dlvylcListMulti) {
|
String inputOptn = (String) goods.get("inputOptn");
|
||||||
log.debug("dlvylcMapMulti : {}", dlvylcMapMulti);
|
|
||||||
|
|
||||||
BOOrderShippingVO shippingVO = new BOOrderShippingVO();
|
if (StringUtils.hasText(inputOptn)) {
|
||||||
|
String[] inputOptns = inputOptn.split("/");
|
||||||
|
|
||||||
shippingVO.setSopmalCd(sopmalCd);
|
for (int j = 0; j < inputOptns.length; j++) {
|
||||||
shippingVO.setOrdrInnb(ordrInnb);
|
String optn = inputOptns[j];
|
||||||
shippingVO.setMngrInnb(orderVO.getMngrInnb());
|
String[] optns = optn.split(",");
|
||||||
shippingVO.setMbrInnb(orderVO.getMbrInnb());
|
|
||||||
shippingVO.setOrdrSttusCd(orderVO.getOrdrSttusCd());
|
|
||||||
shippingVO.setMngrFreeDlvyUseAt(StringUtil.isNullToString(dlvylcMapMulti.get("mngrFreeDlvyUseAt")) != "" ? StringUtil.isNullToString(dlvylcMapMulti.get("mngrFreeDlvyUseAt")) : "N");
|
|
||||||
|
|
||||||
/* *****************************************
|
BOOrderItemOptnVO inputOptnVO = new BOOrderItemOptnVO();
|
||||||
5. 주문배송 정보 등록(GC_ORDER_SHIPPING)
|
|
||||||
***************************************** */
|
|
||||||
insertShipping(ordrTyCd, dlvylcMapMulti, shippingVO);
|
|
||||||
shippingEscrowVO = shippingVO; //에스크로에 보낼 배송정보
|
|
||||||
|
|
||||||
BigInteger ordrDlvyInnb = shippingVO.getOrdrDlvyInnb();
|
inputOptnVO.setSopmalCd(sopmalCd); // 쇼핑몰 코드
|
||||||
|
inputOptnVO.setOrdrGoodsInnb(orderItemVO.getOrdrGoodsInnb()); // 주문상품 고유번호
|
||||||
|
inputOptnVO.setOrdrDlvyInnb(ordrDlvyInnb); // 주문배송 고유번호
|
||||||
|
inputOptnVO.setOrdrSttusCd(orderVO.getOrdrSttusCd());
|
||||||
|
inputOptnVO.setRelateOrdrGoodsOptnInnb(itemOptnVO.getOrdrGoodsOptnInnb());
|
||||||
|
|
||||||
String mngrFreeDlvyUseAt = (String) dlvylcMapMulti.get("mngrFreeDlvyUseAt");
|
setGoodsOptn(optns[0], Integer.parseInt(optns[1]), Integer.parseInt(optns[2]), 0, inputOptnVO);
|
||||||
|
|
||||||
if ("Y".equals(mngrFreeDlvyUseAt)) { // TODO : cjh : 2025-02-28 무료 배송비 : 'Y' 일 경우 애누리에 할인 금액 세팅 -> 배송비 0원에 여부 데이터만 세팅으로 변경 됌.
|
if (i == 0) {
|
||||||
// BigDecimal dscntAmt = new BigDecimal(StringUtils.hasText((String) enuri.get("enuriAmt")) ? (String) enuri.get("enuriAmt") : "0");
|
inputOptnVO.setOptnVal1(optns[3]);
|
||||||
// BigDecimal mngrFreeDlvyUseAmt = new BigDecimal((String) dlvylcMapMulti.get("mngrFreeDlvyUseAmt"));
|
} else if (i == 1) {
|
||||||
|
inputOptnVO.setOptnVal2(optns[3]);
|
||||||
// enuri.put("enuriAmt", dscntAmt.add(mngrFreeDlvyUseAmt).toString());
|
} else if (i == 2) {
|
||||||
}
|
inputOptnVO.setOptnVal3(optns[3]);
|
||||||
|
} else if (i == 3) {
|
||||||
|
inputOptnVO.setOptnVal4(optns[3]);
|
||||||
List<LinkedHashMap> goodsListMulti = (List<LinkedHashMap>) dlvylcMapMulti.get("goodsList");
|
|
||||||
|
|
||||||
List<LinkedHashMap> mergedGoodsList = new ArrayList<>();
|
|
||||||
|
|
||||||
/** CJH
|
|
||||||
* 배송지별 상품 정보 머지
|
|
||||||
* 여러곳 배송일 경우 서버에서 계산해온 상품 정보를 배송지별 수량에 맞게 분배하다보니
|
|
||||||
* 상품 정보와 배송지별 수량정보를 합쳐주는 작업이 필요함
|
|
||||||
* * 일반 주분에서 이벤트 할인 금액, 쿠폰 적용 처리, 적립 마일리지 계산을 배송지별로 계속해서 계산하는데에 어려움이 있어 상품은 유지하고 배송지별로 분배하는 방법을 채택함.
|
|
||||||
*/
|
|
||||||
for (LinkedHashMap multiGoods : goodsListMulti) {
|
|
||||||
int multiGoodsInnb = (int) multiGoods.get("goodsInnb");
|
|
||||||
int multiGoodsOptnInnb = (int) multiGoods.get("goodsOptnInnb");
|
|
||||||
|
|
||||||
// 머지대상
|
|
||||||
int qy = (int) multiGoods.get("qy"); // 주문 수량
|
|
||||||
|
|
||||||
// goodsList에서 상세 정보 찾기
|
|
||||||
LinkedHashMap baseGoods = goodsList.stream()
|
|
||||||
.filter(goods ->
|
|
||||||
Objects.equals((int) goods.get("goodsInnb"), multiGoodsInnb) &&
|
|
||||||
Objects.equals((int) goods.get("goodsOptnInnb"), multiGoodsOptnInnb)
|
|
||||||
)
|
|
||||||
.findFirst()
|
|
||||||
.orElse(null);
|
|
||||||
|
|
||||||
if (baseGoods != null) {
|
|
||||||
// 병합
|
|
||||||
LinkedHashMap<String, Object> merged = new LinkedHashMap<>(baseGoods);
|
|
||||||
merged.put("baseQy", merged.get("qy")); // 총 상품별 주문 수량 유지
|
|
||||||
merged.put("qy", qy); // 수량은 배송지별 정보 우선
|
|
||||||
mergedGoodsList.add(merged);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
log.debug("머지 작업 후 mergedGoodsList : {}", mergedGoodsList);
|
|
||||||
log.debug("머지 작업 후 goodsList : {}", goodsList);
|
|
||||||
|
|
||||||
|
|
||||||
/** ------------------------------------------- 사은품 세팅 시작 ------------------------------------------- */
|
|
||||||
List<LinkedHashMap> prsntListMulti = (List<LinkedHashMap>) dlvylcMapMulti.get("prsntList");
|
|
||||||
|
|
||||||
List<LinkedHashMap> mergedPrsntList = new ArrayList<>();
|
|
||||||
|
|
||||||
/** CJH
|
|
||||||
* 배송지별 상품 정보 머지
|
|
||||||
* 여러곳 배송일 경우 서버에서 계산해온 상품 정보를 배송지별 수량에 맞게 분배하다보니
|
|
||||||
* 상품 정보와 배송지별 수량정보를 합쳐주는 작업이 필요함
|
|
||||||
* * 일반 주분에서 이벤트 할인 금액, 쿠폰 적용 처리, 적립 마일리지 계산을 배송지별로 계속해서 계산하는데에 어려움이 있어 상품은 유지하고 배송지별로 분배하는 방법을 채택함.
|
|
||||||
*/
|
|
||||||
for (LinkedHashMap multiGoods : prsntListMulti) {
|
|
||||||
int multiGoodsInnb = (int) multiGoods.get("goodsInnb");
|
|
||||||
int multiGoodsOptnInnb = (int) multiGoods.get("goodsOptnInnb");
|
|
||||||
|
|
||||||
// 머지대상
|
|
||||||
int qy = (int) multiGoods.get("provdCnt"); // 주문 수량
|
|
||||||
|
|
||||||
// goodsList에서 상세 정보 찾기
|
|
||||||
LinkedHashMap baseGoods = prsntList.stream()
|
|
||||||
.filter(goods ->
|
|
||||||
Objects.equals((int) goods.get("goodsInnb"), multiGoodsInnb) &&
|
|
||||||
Objects.equals((int) goods.get("goodsOptnInnb"), multiGoodsOptnInnb)
|
|
||||||
)
|
|
||||||
.findFirst()
|
|
||||||
.orElse(null);
|
|
||||||
|
|
||||||
if (baseGoods != null) {
|
|
||||||
// 병합
|
|
||||||
LinkedHashMap<String, Object> merged = new LinkedHashMap<>(baseGoods);
|
|
||||||
merged.put("baseQy", merged.get("provdCnt")); // 총 상품별 주문 수량 유지
|
|
||||||
merged.put("provdCnt", qy); // 수량은 배송지별 정보 우선
|
|
||||||
mergedPrsntList.add(merged);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
log.debug("머지 작업 후 mergedPrsntList : {}", mergedPrsntList);
|
|
||||||
log.debug("머지 작업 후 prsntList : {}", prsntList);
|
|
||||||
/** ------------------------------------------- 사은품 세팅 끝 ------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for (int i = 0; i < mergedGoodsList.size(); i++) {
|
|
||||||
LinkedHashMap goods = mergedGoodsList.get(i);
|
|
||||||
|
|
||||||
boolean isLast = allGoodsCount == allMergedGoodsList.size() - 1;
|
|
||||||
|
|
||||||
if (!CollectionUtils.isEmpty(goods)) {
|
|
||||||
int goodsInnb = (int) goods.get("goodsInnb");
|
|
||||||
int goodsOptnInnb = (int) goods.get("goodsOptnInnb");
|
|
||||||
int ordrQy = (int) goods.get("qy");
|
|
||||||
|
|
||||||
BOOrderItemVO orderItemVO = insertedGoodsList.stream().filter(obj-> Objects.equals(ordrInnb, obj.getOrdrInnb()) &&
|
|
||||||
Objects.equals(BigInteger.valueOf(goodsInnb), obj.getGoodsInnb())).findAny().orElse(null);
|
|
||||||
|
|
||||||
/* ***********************************************
|
|
||||||
6. 주문 상품 옵션 정보 등록(GC_ORDER_ITEM_OPTION)
|
|
||||||
주문 상품 입력 옵션 정보 등록
|
|
||||||
*********************************************** */
|
|
||||||
if (orderItemVO != null) {
|
|
||||||
BOOrderItemOptnVO itemOptnVO = new BOOrderItemOptnVO();
|
|
||||||
|
|
||||||
itemOptnVO.setSopmalCd(sopmalCd);
|
|
||||||
itemOptnVO.setOrdrGoodsInnb(orderItemVO.getOrdrGoodsInnb());
|
|
||||||
itemOptnVO.setOrdrDlvyInnb(ordrDlvyInnb);
|
|
||||||
itemOptnVO.setOrdrInnb(ordrInnb);
|
|
||||||
itemOptnVO.setOrdrSttusCd("0"); // 주문상태(99:결제실패)
|
|
||||||
|
|
||||||
setGoodsOptn(sopmalCd, goodsInnb, goodsOptnInnb, ordrQy, itemOptnVO); // 상품 옵션정보 세팅
|
|
||||||
|
|
||||||
LinkedHashMap goodsSet = goodsSetList.stream().filter(obj-> Objects.equals(goodsInnb, obj.get("goodsInnb")) && Objects.equals(goodsOptnInnb, obj.get("goodsOptnInnb"))).findAny().orElse(null);
|
|
||||||
|
|
||||||
setDscntDtlsMulti(goodsInnb, goodsOptnInnb, null, mergedGoodsList, dlvylcMapMulti, enuri, itemOptnVO, isLast, isLast, discountInfo, goodsList, goodsSet); // 상품 할인내역 세팅 - 여러곳 배송
|
|
||||||
|
|
||||||
if (StringUtils.hasText((String) purchsr.get("mbrId"))) { // 회원
|
|
||||||
setMlgAmtMulti(ordrTyCd, goodsInnb, goodsOptnInnb, ordrQy, mergedGoodsList, itemOptnVO, goodsSet); // 상품 마일리지 정보 세팅 - 여러곳 배송
|
|
||||||
} else {
|
|
||||||
itemOptnVO.setMlgAccmlUnit(new BigDecimal(0)); // 마일리지적립금액(개당)
|
|
||||||
itemOptnVO.setMlgAccmlRest(new BigDecimal(0)); // 마일리지적립금액(짜투리)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
itemOptnVO.setOrdrGoodsOptnInnb(orderNoService.generateOrderItemOptnNo());
|
itemOptnVO.setOrdrGoodsOptnInnb(orderNoService.generateOrderItemOptnNo());
|
||||||
mapper.insertOrdrGoodsOption(itemOptnVO); // 주문 상품 옵션 정보 등록
|
mapper.insertOrdrGoodsOption(inputOptnVO); // 주문 상품 입력 옵션 정보 등록
|
||||||
|
|
||||||
// 상품별 수량 체크
|
|
||||||
goodsSet.put("setQy", (int) goodsSet.get("setQy") + ordrQy);
|
|
||||||
|
|
||||||
String inputOptn = (String) goods.get("inputOptn");
|
|
||||||
|
|
||||||
if (StringUtils.hasText(inputOptn)) {
|
|
||||||
String[] inputOptns = inputOptn.split("/");
|
|
||||||
|
|
||||||
for (int j = 0; j < inputOptns.length; j++) {
|
|
||||||
String optn = inputOptns[j];
|
|
||||||
String[] optns = optn.split(",");
|
|
||||||
|
|
||||||
BOOrderItemOptnVO inputOptnVO = new BOOrderItemOptnVO();
|
|
||||||
|
|
||||||
inputOptnVO.setSopmalCd(sopmalCd); // 쇼핑몰 코드
|
|
||||||
inputOptnVO.setOrdrGoodsInnb(orderItemVO.getOrdrGoodsInnb()); // 주문상품 고유번호
|
|
||||||
inputOptnVO.setOrdrDlvyInnb(ordrDlvyInnb); // 주문배송 고유번호
|
|
||||||
inputOptnVO.setOrdrSttusCd(orderVO.getOrdrSttusCd());
|
|
||||||
inputOptnVO.setRelateOrdrGoodsOptnInnb(itemOptnVO.getOrdrGoodsOptnInnb());
|
|
||||||
|
|
||||||
setGoodsOptn(optns[0], Integer.parseInt(optns[1]), Integer.parseInt(optns[2]), 0, inputOptnVO);
|
|
||||||
|
|
||||||
if (i == 0) {
|
|
||||||
inputOptnVO.setOptnVal1(optns[3]);
|
|
||||||
} else if (i == 1) {
|
|
||||||
inputOptnVO.setOptnVal2(optns[3]);
|
|
||||||
} else if (i == 2) {
|
|
||||||
inputOptnVO.setOptnVal3(optns[3]);
|
|
||||||
} else if (i == 3) {
|
|
||||||
inputOptnVO.setOptnVal4(optns[3]);
|
|
||||||
}
|
|
||||||
|
|
||||||
itemOptnVO.setOrdrGoodsOptnInnb(orderNoService.generateOrderItemOptnNo());
|
|
||||||
mapper.insertOrdrGoodsOption(inputOptnVO); // 주문 상품 입력 옵션 정보 등록
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 전체 수량의 마지막 체크
|
|
||||||
allGoodsCount = allGoodsCount + 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ***********************************************************
|
|
||||||
7. 주문 상품 옵션(사은품) 정보 등록(GC_ORDER_ITEM_OPTION)
|
|
||||||
*********************************************************** */
|
|
||||||
if (!CollectionUtils.isEmpty(prsntList)) {
|
|
||||||
insertPrsnt(sopmalCd, ordrInnb, ordrDlvyInnb, mergedPrsntList);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ***********************************************************
|
||||||
// BOOrderShippingVO shippingVO = new BOOrderShippingVO();
|
7. 주문 상품 옵션(사은품) 정보 등록(GC_ORDER_ITEM_OPTION)
|
||||||
//
|
*********************************************************** */
|
||||||
// shippingVO.setSopmalCd(sopmalCd);
|
if (!CollectionUtils.isEmpty(prsntList)) {
|
||||||
// shippingVO.setOrdrInnb(ordrInnb);
|
insertPrsnt(sopmalCd, ordrInnb, shippingVO.getOrdrDlvyInnb(), prsntList);
|
||||||
// shippingVO.setMngrInnb(orderVO.getMngrInnb());
|
}
|
||||||
// shippingVO.setMbrInnb(orderVO.getMbrInnb());
|
|
||||||
// shippingVO.setOrdrSttusCd(orderVO.getOrdrSttusCd());
|
|
||||||
// shippingVO.setMngrFreeDlvyUseAt(StringUtil.isNullToString(shipping.get("mngrFreeDlvyUseAt")) != "" ? StringUtil.isNullToString(shipping.get("mngrFreeDlvyUseAt")) : "N");
|
|
||||||
//
|
|
||||||
// /* *****************************************
|
|
||||||
// 5. 주문배송 정보 등록(GC_ORDER_SHIPPING)
|
|
||||||
// ***************************************** */
|
|
||||||
//
|
|
||||||
// insertShipping(ordrTyCd, shipping, shippingVO);
|
|
||||||
// shippingEscrowVO = shippingVO; //에스크로에 보낼 배송정보
|
|
||||||
//
|
|
||||||
// BigInteger ordrDlvyInnb = shippingVO.getOrdrDlvyInnb();
|
|
||||||
//
|
|
||||||
// String mngrFreeDlvyUseAt = (String) shipping.get("mngrFreeDlvyUseAt");
|
|
||||||
//
|
|
||||||
// if ("Y".equals(mngrFreeDlvyUseAt)) { // TODO : cjh : 2025-02-28 무료 배송비 : 'Y' 일 경우 애누리에 할인 금액 세팅 -> 배송비 0원에 여부 데이터만 세팅으로 변경 됌.
|
|
||||||
//// BigDecimal dscntAmt = new BigDecimal(StringUtils.hasText((String) enuri.get("enuriAmt")) ? (String) enuri.get("enuriAmt") : "0");
|
|
||||||
//// BigDecimal mngrFreeDlvyUseAmt = new BigDecimal((String) shipping.get("mngrFreeDlvyUseAmt"));
|
|
||||||
//
|
|
||||||
// // enuri.put("enuriAmt", dscntAmt.add(mngrFreeDlvyUseAmt).toString());
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// // 분배된 할인 금액 누적
|
|
||||||
// BOOrderRestAmtVO discountInfo = new BOOrderRestAmtVO();
|
|
||||||
//
|
|
||||||
// int optionSeqIndex = 1;
|
|
||||||
// BOOrderNoVO optionNoVO = new BOOrderNoVO();
|
|
||||||
// optionNoVO.setOrdrInnb(ordrInnb);
|
|
||||||
// for (int i = 0; i < goodsList.size(); i++) {
|
|
||||||
// LinkedHashMap goods = goodsList.get(i);
|
|
||||||
//
|
|
||||||
// boolean isLast = i == goodsList.size() - 1;
|
|
||||||
//
|
|
||||||
// if (!CollectionUtils.isEmpty(goods)) {
|
|
||||||
// int goodsInnb = (int) goods.get("goodsInnb");
|
|
||||||
// int goodsOptnInnb = (int) goods.get("goodsOptnInnb");
|
|
||||||
// int ordrQy = (int) goods.get("qy");
|
|
||||||
//
|
|
||||||
// BOOrderItemVO orderItemVO = insertedGoodsList.stream().filter(obj-> Objects.equals(ordrInnb, obj.getOrdrInnb()) &&
|
|
||||||
// Objects.equals(BigInteger.valueOf(goodsInnb), obj.getGoodsInnb())).findAny().orElse(null);
|
|
||||||
//
|
|
||||||
// /* ***********************************************
|
|
||||||
// 6. 주문 상품 옵션 정보 등록(GC_ORDER_ITEM_OPTION)
|
|
||||||
// 주문 상품 입력 옵션 정보 등록
|
|
||||||
// *********************************************** */
|
|
||||||
// if (orderItemVO != null) {
|
|
||||||
// BOOrderItemOptnVO itemOptnVO = new BOOrderItemOptnVO();
|
|
||||||
//
|
|
||||||
// itemOptnVO.setSopmalCd(sopmalCd);
|
|
||||||
// itemOptnVO.setOrdrGoodsInnb(orderItemVO.getOrdrGoodsInnb());
|
|
||||||
// itemOptnVO.setOrdrDlvyInnb(ordrDlvyInnb);
|
|
||||||
// itemOptnVO.setOrdrInnb(ordrInnb);
|
|
||||||
// itemOptnVO.setOrdrSttusCd("0"); // 주문상태(99:결제실패)
|
|
||||||
//
|
|
||||||
// setGoodsOptn(sopmalCd, goodsInnb, goodsOptnInnb, ordrQy, itemOptnVO); // 상품 옵션정보 세팅
|
|
||||||
//
|
|
||||||
// setDscntDtls(goodsInnb, goodsOptnInnb, null, goodsList, shipping, enuri, itemOptnVO, isLast, isLast, discountInfo); // 상품 할인내역 세팅
|
|
||||||
//
|
|
||||||
// if (StringUtils.hasText((String) purchsr.get("mbrId"))) { // 회원
|
|
||||||
// setMlgAmt(ordrTyCd, goodsInnb, goodsOptnInnb, ordrQy, goodsList, itemOptnVO); // 상품 마일리지 정보 세팅
|
|
||||||
// } else {
|
|
||||||
// itemOptnVO.setMlgAccmlUnit(new BigDecimal(0)); // 마일리지적립금액(개당)
|
|
||||||
// itemOptnVO.setMlgAccmlRest(new BigDecimal(0)); // 마일리지적립금액(짜투리)
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// itemOptnVO.setOrdrGoodsOptnInnb(orderNoService.generateOrderItemOptnNo());
|
|
||||||
// mapper.insertOrdrGoodsOption(itemOptnVO); // 주문 상품 옵션 정보 등록
|
|
||||||
//
|
|
||||||
// String inputOptn = (String) goods.get("inputOptn");
|
|
||||||
//
|
|
||||||
// if (StringUtils.hasText(inputOptn)) {
|
|
||||||
// String[] inputOptns = inputOptn.split("/");
|
|
||||||
//
|
|
||||||
// for (int j = 0; j < inputOptns.length; j++) {
|
|
||||||
// String optn = inputOptns[j];
|
|
||||||
// String[] optns = optn.split(",");
|
|
||||||
//
|
|
||||||
// BOOrderItemOptnVO inputOptnVO = new BOOrderItemOptnVO();
|
|
||||||
//
|
|
||||||
// inputOptnVO.setSopmalCd(sopmalCd); // 쇼핑몰 코드
|
|
||||||
// inputOptnVO.setOrdrGoodsInnb(orderItemVO.getOrdrGoodsInnb()); // 주문상품 고유번호
|
|
||||||
// inputOptnVO.setOrdrDlvyInnb(ordrDlvyInnb); // 주문배송 고유번호
|
|
||||||
// inputOptnVO.setOrdrSttusCd(orderVO.getOrdrSttusCd());
|
|
||||||
// inputOptnVO.setRelateOrdrGoodsOptnInnb(itemOptnVO.getOrdrGoodsOptnInnb());
|
|
||||||
//
|
|
||||||
// setGoodsOptn(optns[0], Integer.parseInt(optns[1]), Integer.parseInt(optns[2]), 0, inputOptnVO);
|
|
||||||
//
|
|
||||||
// if (i == 0) {
|
|
||||||
// inputOptnVO.setOptnVal1(optns[3]);
|
|
||||||
// } else if (i == 1) {
|
|
||||||
// inputOptnVO.setOptnVal2(optns[3]);
|
|
||||||
// } else if (i == 2) {
|
|
||||||
// inputOptnVO.setOptnVal3(optns[3]);
|
|
||||||
// } else if (i == 3) {
|
|
||||||
// inputOptnVO.setOptnVal4(optns[3]);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// itemOptnVO.setOrdrGoodsOptnInnb(orderNoService.generateOrderItemOptnNo());
|
|
||||||
// mapper.insertOrdrGoodsOption(inputOptnVO); // 주문 상품 입력 옵션 정보 등록
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// /* ***********************************************************
|
|
||||||
// 7. 주문 상품 옵션(사은품) 정보 등록(GC_ORDER_ITEM_OPTION)
|
|
||||||
// *********************************************************** */
|
|
||||||
// if (!CollectionUtils.isEmpty(prsntList)) {
|
|
||||||
// insertPrsnt(sopmalCd, ordrInnb, shippingVO.getOrdrDlvyInnb(), prsntList);
|
|
||||||
// }
|
|
||||||
} else if ("05".equals(ordrTyCd)) { // 여러곳 배송, 선물하기
|
} else if ("05".equals(ordrTyCd)) { // 여러곳 배송, 선물하기
|
||||||
log.debug("여러곳 배송 > 배송지별 배송정보 => {} ", new Gson().toJson(dlvylcListMulti));
|
log.debug("여러곳 배송 > 배송지별 배송정보 => {} ", new Gson().toJson(dlvylcListMulti));
|
||||||
|
|
||||||
@@ -1550,30 +1404,20 @@ public class BOOrderService {
|
|||||||
shippingVO.setDlvyMthCd("01"); // 택배
|
shippingVO.setDlvyMthCd("01"); // 택배
|
||||||
|
|
||||||
if ("01".equals(ordrTyCd) || "03".equals(ordrTyCd) || "06".equals(ordrTyCd)) { // 일반주문, 회원개인결제, 정기배송
|
if ("01".equals(ordrTyCd) || "03".equals(ordrTyCd) || "06".equals(ordrTyCd)) { // 일반주문, 회원개인결제, 정기배송
|
||||||
shippingVO.setRecpntNm(StringUtil.isNullToString(shipping.get("recpntNm")));
|
shippingVO.setRecpntNm((String) shipping.get("recpntNm"));
|
||||||
shippingVO.setRecpntTelnb(StringUtil.isNullToString(shipping.get("recpntTelnb")));
|
shippingVO.setRecpntTelnb((String) shipping.get("recpntTelnb"));
|
||||||
shippingVO.setRecpntMbtlnb(StringUtil.isNullToString(shipping.get("recpntMbtlnb")));
|
shippingVO.setRecpntMbtlnb((String) shipping.get("recpntMbtlnb"));
|
||||||
|
|
||||||
shippingVO.setDlvylcZip(StringUtil.isNullToString(shipping.get("dlvylcZip")));
|
shippingVO.setDlvylcAreaCd((String) shipping.get("dlvylcAreaCd"));
|
||||||
shippingVO.setDlvylcAdresDvCd(StringUtil.isNullToString(shipping.get("dlvylcAdresDvCd")));
|
shippingVO.setPrefcd((String) shipping.get("prefcd"));
|
||||||
shippingVO.setDlvylcLnbAdres(StringUtil.isNullToString(shipping.get("dlvylcLnbAdres")));
|
shippingVO.setDlvylcZip((String) shipping.get("dlvylcZip"));
|
||||||
shippingVO.setDlvylcRnmAdres(StringUtil.isNullToString(shipping.get("dlvylcRnmAdres")));
|
shippingVO.setDlvylcAdresDvCd((String) shipping.get("dlvylcAdresDvCd"));
|
||||||
shippingVO.setDlvylcAdresDtl(StringUtil.isNullToString(shipping.get("dlvylcAdresDtl")));
|
shippingVO.setDlvylcLnbAdres((String) shipping.get("dlvylcLnbAdres"));
|
||||||
|
shippingVO.setDlvylcRnmAdres((String) shipping.get("dlvylcRnmAdres"));
|
||||||
|
shippingVO.setDlvylcAdresDtl((String) shipping.get("dlvylcAdresDtl"));
|
||||||
|
|
||||||
shippingVO.setDlvyMssageCn(StringUtil.isNullToString(shipping.get("dlvyMssageCn")));
|
shippingVO.setDlvyMssageCn((String) shipping.get("dlvyMssageCn"));
|
||||||
shippingVO.setDlvyCycleCd(StringUtil.isNullToString(shipping.get("dlvyCycleCd")));
|
shippingVO.setDlvyCycleCd((String) shipping.get("dlvyCycleCd"));
|
||||||
// shippingVO.setRecpntNm((String) shipping.get("recpntNm"));
|
|
||||||
// shippingVO.setRecpntTelnb((String) shipping.get("recpntTelnb"));
|
|
||||||
// shippingVO.setRecpntMbtlnb((String) shipping.get("recpntMbtlnb"));
|
|
||||||
//
|
|
||||||
// shippingVO.setDlvylcZip((String) shipping.get("dlvylcZip"));
|
|
||||||
// shippingVO.setDlvylcAdresDvCd((String) shipping.get("dlvylcAdresDvCd"));
|
|
||||||
// shippingVO.setDlvylcLnbAdres((String) shipping.get("dlvylcLnbAdres"));
|
|
||||||
// shippingVO.setDlvylcRnmAdres((String) shipping.get("dlvylcRnmAdres"));
|
|
||||||
// shippingVO.setDlvylcAdresDtl((String) shipping.get("dlvylcAdresDtl"));
|
|
||||||
//
|
|
||||||
// shippingVO.setDlvyMssageCn((String) shipping.get("dlvyMssageCn"));
|
|
||||||
// shippingVO.setDlvyCycleCd((String) shipping.get("dlvyCycleCd"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ("05".equals(ordrTyCd)) { // 여러곳 배송
|
if ("05".equals(ordrTyCd)) { // 여러곳 배송
|
||||||
@@ -1604,6 +1448,8 @@ public class BOOrderService {
|
|||||||
shippingVO.setRecpntTelnb(StringUtil.isNullToString(shipping.get("recpntTelnb")));
|
shippingVO.setRecpntTelnb(StringUtil.isNullToString(shipping.get("recpntTelnb")));
|
||||||
shippingVO.setRecpntMbtlnb(StringUtil.isNullToString(shipping.get("recpntMbtlnb")));
|
shippingVO.setRecpntMbtlnb(StringUtil.isNullToString(shipping.get("recpntMbtlnb")));
|
||||||
|
|
||||||
|
shippingVO.setDlvylcAreaCd(StringUtil.isNullToString(shipping.get("dlvylcAreaCd")));
|
||||||
|
shippingVO.setPrefcd(StringUtil.isNullToString(shipping.get("prefcd")));
|
||||||
shippingVO.setDlvylcZip(StringUtil.isNullToString(shipping.get("dlvylcZip")));
|
shippingVO.setDlvylcZip(StringUtil.isNullToString(shipping.get("dlvylcZip")));
|
||||||
shippingVO.setDlvylcAdresDvCd(StringUtil.isNullToString(shipping.get("dlvylcAdresDvCd")));
|
shippingVO.setDlvylcAdresDvCd(StringUtil.isNullToString(shipping.get("dlvylcAdresDvCd")));
|
||||||
shippingVO.setDlvylcLnbAdres(StringUtil.isNullToString(shipping.get("dlvylcLnbAdres")));
|
shippingVO.setDlvylcLnbAdres(StringUtil.isNullToString(shipping.get("dlvylcLnbAdres")));
|
||||||
@@ -2537,9 +2383,6 @@ public class BOOrderService {
|
|||||||
throw new WnbtRestException("주문배송 정보를 찾을 수 없습니다.");
|
throw new WnbtRestException("주문배송 정보를 찾을 수 없습니다.");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// if (CollectionUtils.isEmpty(multiOrdrDlvylc)) {
|
|
||||||
// throw new WnbtRestException("주문배송 정보를 찾을 수 없습니다.");
|
|
||||||
// }
|
|
||||||
if (CollectionUtils.isEmpty(shipping)) {
|
if (CollectionUtils.isEmpty(shipping)) {
|
||||||
throw new WnbtRestException("주문배송 정보를 찾을 수 없습니다.");
|
throw new WnbtRestException("주문배송 정보를 찾을 수 없습니다.");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1837,6 +1837,8 @@ public class BOPurchsService {
|
|||||||
public Map<String, Object> selectSetleExpectAmt(DataMap param) {
|
public Map<String, Object> selectSetleExpectAmt(DataMap param) {
|
||||||
Map<String, Object> content = new HashMap<>();
|
Map<String, Object> content = new HashMap<>();
|
||||||
|
|
||||||
|
log.debug("BOPurchsService.selectSetleExpectAmt-param : {}", param);
|
||||||
|
|
||||||
String sopmalCd = (String) param.get("sopmalCd");
|
String sopmalCd = (String) param.get("sopmalCd");
|
||||||
|
|
||||||
LinkedHashMap setleExpectAmtMap = new LinkedHashMap(){{
|
LinkedHashMap setleExpectAmtMap = new LinkedHashMap(){{
|
||||||
|
|||||||
@@ -26,8 +26,12 @@ public class BOOrderShippingVO extends AbstractVO {
|
|||||||
|
|
||||||
private String recpntMbtlnb;
|
private String recpntMbtlnb;
|
||||||
|
|
||||||
|
private String dlvylcAreaCd;
|
||||||
|
|
||||||
private String dlvylcZip;
|
private String dlvylcZip;
|
||||||
|
|
||||||
|
private String prefcd;
|
||||||
|
|
||||||
private String dlvylcAdresDvCd;
|
private String dlvylcAdresDvCd;
|
||||||
|
|
||||||
private String dlvylcLnbAdres;
|
private String dlvylcLnbAdres;
|
||||||
|
|||||||
@@ -335,6 +335,8 @@ public interface BOOrdrMapper {
|
|||||||
*/
|
*/
|
||||||
public List<DataMap> selectOrderShippingList(BOOrdrShippingVO ordrShippingVO);
|
public List<DataMap> selectOrderShippingList(BOOrdrShippingVO ordrShippingVO);
|
||||||
|
|
||||||
|
public List<DataMap> selectOrderShippingListGrp(BOOrdrShippingVO ordrShippingVO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 관리자 > 주문 > 주문관리 > 전체 주문 조회 > 전체주문상세 > 배송지정보 상품 목록 조회
|
* 관리자 > 주문 > 주문관리 > 전체 주문 조회 > 전체주문상세 > 배송지정보 상품 목록 조회
|
||||||
* @param paramMap
|
* @param paramMap
|
||||||
@@ -349,6 +351,13 @@ public interface BOOrdrMapper {
|
|||||||
*/
|
*/
|
||||||
public List<DataMap> selectRefundShippingGoodsList(DataMap paramMap);
|
public List<DataMap> selectRefundShippingGoodsList(DataMap paramMap);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 관리자 > 주문 > 주문관리 > 전체 주문 조회 > 전체주문상세 > 배송지정보 수정 > 배송지정보 일치여부 확인
|
||||||
|
* @param ordrShippingVO
|
||||||
|
* @return Integer
|
||||||
|
*/
|
||||||
|
public Integer selectDlvylcAreaCdInfo(BOOrdrShippingVO ordrShippingVO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 관리자 > 주문 > 주문관리 > 전체 주문 조회 > 전체주문상세 > 배송지정보 수정
|
* 관리자 > 주문 > 주문관리 > 전체 주문 조회 > 전체주문상세 > 배송지정보 수정
|
||||||
* @param ordrShippingVO
|
* @param ordrShippingVO
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ import com.wb.domainserver.domain.gcone.goods.purchs.service.BOOrderNoService;
|
|||||||
import com.wb.domainserver.domain.gcone.goods.purchs.service.BOOrderService;
|
import com.wb.domainserver.domain.gcone.goods.purchs.service.BOOrderService;
|
||||||
import com.wb.domainserver.domain.gcone.goods.purchs.service.BOPurchsService;
|
import com.wb.domainserver.domain.gcone.goods.purchs.service.BOPurchsService;
|
||||||
import com.wb.domainserver.domain.gcone.goods.purchs.vo.*;
|
import com.wb.domainserver.domain.gcone.goods.purchs.vo.*;
|
||||||
|
import com.wb.domainserver.domain.gcone.goods.subsvc.service.BOSubsvcService;
|
||||||
|
import com.wb.domainserver.domain.gcone.goods.subsvc.vo.BOSubsvcVO;
|
||||||
import com.wb.domainserver.domain.gcone.mbr.mbr.mapper.BOMbrMapper;
|
import com.wb.domainserver.domain.gcone.mbr.mbr.mapper.BOMbrMapper;
|
||||||
import com.wb.domainserver.domain.gcone.mbr.mbr.service.BOMbrService;
|
import com.wb.domainserver.domain.gcone.mbr.mbr.service.BOMbrService;
|
||||||
import com.wb.domainserver.domain.gcone.mbr.mbr.vo.BOMbrAppnVO;
|
import com.wb.domainserver.domain.gcone.mbr.mbr.vo.BOMbrAppnVO;
|
||||||
@@ -144,6 +146,9 @@ public class BOOrdrService{
|
|||||||
@Autowired
|
@Autowired
|
||||||
private BOOrderNoService orderNoService;
|
private BOOrderNoService orderNoService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private BOSubsvcService subsvcService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private PropertyService propertyService;
|
private PropertyService propertyService;
|
||||||
|
|
||||||
@@ -1983,6 +1988,8 @@ public class BOOrdrService{
|
|||||||
|
|
||||||
List<DataMap> shippingList = mapper.selectOrderShippingList(shippingVO);
|
List<DataMap> shippingList = mapper.selectOrderShippingList(shippingVO);
|
||||||
|
|
||||||
|
// List<DataMap> shippingListGrp = mapper.selectOrderShippingListGrp(shippingVO);
|
||||||
|
|
||||||
if (!CollectionUtils.isEmpty(shippingList)) {
|
if (!CollectionUtils.isEmpty(shippingList)) {
|
||||||
for (int i = 0; i < shippingList.size(); i++) {
|
for (int i = 0; i < shippingList.size(); i++) {
|
||||||
DataMap param = shippingList.get(i);
|
DataMap param = shippingList.get(i);
|
||||||
@@ -2009,6 +2016,7 @@ public class BOOrdrService{
|
|||||||
content.put("order", ordrDtl);
|
content.put("order", ordrDtl);
|
||||||
content.put("goodsList", goodsList);
|
content.put("goodsList", goodsList);
|
||||||
content.put("shippingList", shippingList);
|
content.put("shippingList", shippingList);
|
||||||
|
// content.put("shippingListGrp", shippingListGrp);
|
||||||
content.put("dscntList", dscntList);
|
content.put("dscntList", dscntList);
|
||||||
content.put("setleList", setleList);
|
content.put("setleList", setleList);
|
||||||
content.put("refundList", refundList);
|
content.put("refundList", refundList);
|
||||||
@@ -2036,6 +2044,7 @@ public class BOOrdrService{
|
|||||||
log.debug("param{}",param);
|
log.debug("param{}",param);
|
||||||
paramVO.setRecpntNm((String) param.get("recpntNm"));
|
paramVO.setRecpntNm((String) param.get("recpntNm"));
|
||||||
paramVO.setRecpntMbtlnb((String) param.get("recpntMbtlnb"));
|
paramVO.setRecpntMbtlnb((String) param.get("recpntMbtlnb"));
|
||||||
|
paramVO.setDlvylcAreaCd((String) param.get("dlvylcAreaCd"));
|
||||||
paramVO.setDlvylcZip((String) param.get("dlvylcZip"));
|
paramVO.setDlvylcZip((String) param.get("dlvylcZip"));
|
||||||
paramVO.setDlvylcAdresDvCd((String) param.get("dlvylcAdresDvCd"));
|
paramVO.setDlvylcAdresDvCd((String) param.get("dlvylcAdresDvCd"));
|
||||||
paramVO.setDlvylcLnbAdres((String) param.get("dlvylcLnbAdres"));
|
paramVO.setDlvylcLnbAdres((String) param.get("dlvylcLnbAdres"));
|
||||||
@@ -2050,11 +2059,20 @@ public class BOOrdrService{
|
|||||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||||
paramVO.setUpdusr(user.getUserInnb());
|
paramVO.setUpdusr(user.getUserInnb());
|
||||||
|
|
||||||
int cnt = mapper.updateDlvylcInfo(paramVO);
|
/* 배송지정보 일치여부 확인 이후 업데이트 */
|
||||||
|
int cnt = mapper.selectDlvylcAreaCdInfo(paramVO);
|
||||||
if (cnt == 0) {
|
if (cnt == 0) {
|
||||||
message.put("status", "1");
|
message.put("status", "1");
|
||||||
message.put("message", "배송지 수정을 실패하였습니다");
|
message.put("message", "배송지 국가는 변경할 수 없습니다.");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(cnt > 0) {
|
||||||
|
cnt = mapper.updateDlvylcInfo(paramVO);
|
||||||
|
|
||||||
|
if (cnt == 0) {
|
||||||
|
message.put("status", "1");
|
||||||
|
message.put("message", "배송지 수정을 실패하였습니다");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return message;
|
return message;
|
||||||
@@ -3003,7 +3021,7 @@ public class BOOrdrService{
|
|||||||
public Map<String, Object> selectSetleExpectAmt(DataMap param) throws Exception {
|
public Map<String, Object> selectSetleExpectAmt(DataMap param) throws Exception {
|
||||||
Map<String, Object> content = new HashMap<>();
|
Map<String, Object> content = new HashMap<>();
|
||||||
|
|
||||||
log.debug("selectSetleExpectAmt-param : {}", param);
|
log.debug("BOOrdrService.selectSetleExpectAmt-param : {}", param);
|
||||||
|
|
||||||
LinkedHashMap setleExpectAmtMap = new LinkedHashMap() {{
|
LinkedHashMap setleExpectAmtMap = new LinkedHashMap() {{
|
||||||
put("goodsAmt", 0);
|
put("goodsAmt", 0);
|
||||||
@@ -3381,9 +3399,12 @@ public class BOOrdrService{
|
|||||||
LinkedHashMap<String, Object> shippingMap = (LinkedHashMap) param.get("shipping");
|
LinkedHashMap<String, Object> shippingMap = (LinkedHashMap) param.get("shipping");
|
||||||
|
|
||||||
// String ordrAdressZip = StringUtil.isNullToString(param.get("dlvylcZip"));
|
// String ordrAdressZip = StringUtil.isNullToString(param.get("dlvylcZip"));
|
||||||
String ordrAdressZip = StringUtil.isNullToString(shippingMap.get("dlvylcZip"));
|
// String dlvylcAreaCd = (String) param.get("dlvylcAreaCd");
|
||||||
String dlvylcAreaCd = (String) shippingMap.get("dlvylcAreaCd");
|
// String prefcd = (String) param.get("prefcd");
|
||||||
String prefcd = (String) shippingMap.get("prefcd");
|
|
||||||
|
String ordrAdressZip = StringUtil.isNullToString(shippingMap != null ? shippingMap.get("dlvylcZip") : "");
|
||||||
|
String dlvylcAreaCd = StringUtil.isNullToString(shippingMap != null ? shippingMap.get("dlvylcAreaCd") : "");
|
||||||
|
String prefcd = StringUtil.isNullToString(shippingMap != null ? shippingMap.get("prefcd") : "");
|
||||||
DataMap defaultAdressVO = new DataMap() {{ //
|
DataMap defaultAdressVO = new DataMap() {{ //
|
||||||
put("sopmalCd", sopmalCd); // 쇼핑몰 코드
|
put("sopmalCd", sopmalCd); // 쇼핑몰 코드
|
||||||
put("zip", ordrAdressZip); // 우편번호
|
put("zip", ordrAdressZip); // 우편번호
|
||||||
@@ -6121,6 +6142,119 @@ public class BOOrdrService{
|
|||||||
사용자 > 상품 > 구매/결제 > 비회원구매하기 종료
|
사용자 > 상품 > 구매/결제 > 비회원구매하기 종료
|
||||||
#################################### */
|
#################################### */
|
||||||
|
|
||||||
|
/* ####################################
|
||||||
|
사용자 > 구독상품 > 구매/결제 > 구독서비스 결제 시작
|
||||||
|
#################################### */
|
||||||
|
/**
|
||||||
|
* 사용자 > 구독상품 > 구매/결제 > 구독서비스 결제 > 구독서비스 결제 화면 정보 조회
|
||||||
|
* @param ordrVO
|
||||||
|
* @return Map<String, Object>
|
||||||
|
*/
|
||||||
|
public Map<String, Object> selectSubsvcPurchs(BOOrdrVO ordrVO) {
|
||||||
|
Map<String, Object> content = new HashMap<>();
|
||||||
|
|
||||||
|
//구독서비스 조회
|
||||||
|
BOSubsvcVO subsvcVO = new BOSubsvcVO();
|
||||||
|
subsvcVO.setSopmalCd(ordrVO.getSopmalCd());
|
||||||
|
subsvcVO.setSubsvcInnb(ordrVO.getSubsvcInnb());
|
||||||
|
|
||||||
|
DataMap subsvcOne = subsvcService.selectBOSubsvcDetail(subsvcVO);
|
||||||
|
|
||||||
|
BOPurchsrVO purchsrVO = new BOPurchsrVO();
|
||||||
|
|
||||||
|
purchsrVO.setSopmalCd(ordrVO.getSopmalCd());
|
||||||
|
purchsrVO.setMbrDvCd(ordrVO.getMbrDvCd());
|
||||||
|
purchsrVO.setMbrInnb(String.valueOf(ordrVO.getMbrInnb()));
|
||||||
|
purchsrVO.setMbrId(ordrVO.getMbrId());
|
||||||
|
|
||||||
|
BOCashVO cashVO = new BOCashVO();
|
||||||
|
cashVO.setSopmalCd(ordrVO.getSopmalCd());
|
||||||
|
cashVO.setMbrDvCd(ordrVO.getMbrDvCd());
|
||||||
|
cashVO.setMbrInnb(String.valueOf(ordrVO.getMbrInnb()));
|
||||||
|
//구매자조회
|
||||||
|
DataMap purchsrMap = purchsService.selectPurchsr(purchsrVO);
|
||||||
|
|
||||||
|
if (!CollectionUtils.isEmpty(purchsrMap)) {
|
||||||
|
BOMlgVO mlgVo = new BOMlgVO();
|
||||||
|
|
||||||
|
mlgVo.setMbrDvCd((String) purchsrMap.get("mbrDvCd"));
|
||||||
|
mlgVo.setMbrInnb(purchsrMap.get("mbrInnb").toString());
|
||||||
|
|
||||||
|
// 마일리지 잔액 총액
|
||||||
|
BigDecimal blceSum = mlgService.selectBOMlgBlceSum(mlgVo);
|
||||||
|
|
||||||
|
// 충전형 마일리지 잔액 총액
|
||||||
|
BigDecimal cashBlceSum = mlgService.selectBOCashBlce(cashVO);
|
||||||
|
|
||||||
|
purchsrMap.put("sopmalCd", ordrVO.getSopmalCd());
|
||||||
|
purchsrMap.put("dftDlvylc", purchsService.selectDftDlvylc(purchsrVO));
|
||||||
|
purchsrMap.put("ableMlgAmt", blceSum.intValue());
|
||||||
|
purchsrMap.put("ableCashMlgAmt", cashBlceSum.intValue());
|
||||||
|
}
|
||||||
|
|
||||||
|
DataMap paramMap = new DataMap(){{
|
||||||
|
put("sopmalCd", ordrVO.getSopmalCd());
|
||||||
|
put("setlePltfomTyCd", ordrVO.getSetlePltfomTyCd()); // PC
|
||||||
|
}};
|
||||||
|
|
||||||
|
DataMap payInfo = purchsMapper.selectPayInfo(paramMap);
|
||||||
|
|
||||||
|
DataMap shopInfo = purchsMapper.selectOrdrShopInfo(ordrVO);
|
||||||
|
|
||||||
|
content.put("purchsr", purchsrMap);
|
||||||
|
content.put("mlgAccmlNtcList", purchsMapper.selectMlgAccmlNtcList(purchsrVO));
|
||||||
|
content.put("subsvcOne", subsvcOne);
|
||||||
|
content.put("payInfo", payInfo);
|
||||||
|
content.put("shopInfo", shopInfo);
|
||||||
|
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 사용자 > 구독상품 > 구매/결제 > 구독서비스 결제 > 결제 예정금액
|
||||||
|
* @param param
|
||||||
|
* @return Map<String, Object>
|
||||||
|
*/
|
||||||
|
public Map<String, Object> selectSubsvcSetleExpectAmt(DataMap param) throws Exception {
|
||||||
|
Map<String, Object> content = new HashMap<>();
|
||||||
|
log.debug("selectSetleExpectAmt-param : {}", param);
|
||||||
|
|
||||||
|
LinkedHashMap setleExpectAmtMap = new LinkedHashMap() {{
|
||||||
|
put("goodsAmt", 0);
|
||||||
|
put("dlvyAmt", 0);
|
||||||
|
put("evtDscntAmt", 0);
|
||||||
|
put("goodsCouponDscntAmt", 0);
|
||||||
|
put("dlvyCouponDscntAmt", 0);
|
||||||
|
put("cartCouponDscntAmt", 0);
|
||||||
|
put("useMlgAmt", 0);
|
||||||
|
put("useCashMlgAmt", 0);
|
||||||
|
put("dscntAmt", 0);
|
||||||
|
put("setleAmt", 0);
|
||||||
|
put("accmlMlgAmt", 0);
|
||||||
|
}};
|
||||||
|
|
||||||
|
BigDecimal goodsAmt = new BigDecimal(0);
|
||||||
|
BigDecimal setleAmt = new BigDecimal(0);
|
||||||
|
|
||||||
|
LinkedHashMap subsvcOne = (LinkedHashMap) param.get("subsvcOne");
|
||||||
|
log.debug("subsvcOne : {}", subsvcOne);
|
||||||
|
|
||||||
|
goodsAmt = BigDecimal.valueOf((Integer) subsvcOne.get("selpric"));
|
||||||
|
setleAmt = BigDecimal.valueOf((Integer) subsvcOne.get("selpric"));
|
||||||
|
|
||||||
|
// ############################################## 결제 예정 금액 적용 ##############################################
|
||||||
|
setleExpectAmtMap.put("goodsAmt", goodsAmt.intValue());
|
||||||
|
setleExpectAmtMap.put("setleAmt", setleAmt.intValue());
|
||||||
|
|
||||||
|
content.put("setleExpectAmt", setleExpectAmtMap);
|
||||||
|
content.put("subsvcOne", param.get("subsvcOne"));
|
||||||
|
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
/* ####################################
|
||||||
|
사용자 > 구독상품 > 구매/결제 > 구독서비스 결제 종료
|
||||||
|
#################################### */
|
||||||
|
|
||||||
/* ####################################
|
/* ####################################
|
||||||
사용자 > 상품 > 구매/결제 > 개인결제 시작
|
사용자 > 상품 > 구매/결제 > 개인결제 시작
|
||||||
#################################### */
|
#################################### */
|
||||||
|
|||||||
@@ -81,7 +81,8 @@ public class BODwldItmVO extends AbstractVO {
|
|||||||
item50("dlvy_amt_setle_mth_nm", "배송비결제방식"),
|
item50("dlvy_amt_setle_mth_nm", "배송비결제방식"),
|
||||||
item51("ordr_ty_nm", "주문유형"),
|
item51("ordr_ty_nm", "주문유형"),
|
||||||
item52("optn_cd_1", "상품코드"),
|
item52("optn_cd_1", "상품코드"),
|
||||||
item53("dlvy_mssage_cn", "배송메시지");
|
item53("dlvy_mssage_cn", "배송메시지"),
|
||||||
|
item54("shipping_sttus_nm", "출고상태");
|
||||||
|
|
||||||
private final String key;
|
private final String key;
|
||||||
private final String value;
|
private final String value;
|
||||||
|
|||||||
@@ -46,10 +46,14 @@ public class BOOrdrRefundVO extends AbstractVO {
|
|||||||
|
|
||||||
private BigDecimal refundAmt; // 환불금액
|
private BigDecimal refundAmt; // 환불금액
|
||||||
|
|
||||||
|
private BigDecimal wonRefundAmt; // 환불금액(원화)
|
||||||
|
|
||||||
private BigDecimal refundAccmlmnyAmt; // 환불적립금액
|
private BigDecimal refundAccmlmnyAmt; // 환불적립금액
|
||||||
|
|
||||||
private BigDecimal refundDlvyAmt; // 환불배송비총금액
|
private BigDecimal refundDlvyAmt; // 환불배송비총금액
|
||||||
|
|
||||||
|
private BigDecimal wonRefundDlvyAmt; // 환불배송비총금액(원화)
|
||||||
|
|
||||||
private BigDecimal mlgAccmlmnyAmt; // 적립금보정금액
|
private BigDecimal mlgAccmlmnyAmt; // 적립금보정금액
|
||||||
|
|
||||||
private String mlgAccmlmnyValidDt; // 적립금유효기간
|
private String mlgAccmlmnyValidDt; // 적립금유효기간
|
||||||
@@ -90,6 +94,8 @@ public class BOOrdrRefundVO extends AbstractVO {
|
|||||||
|
|
||||||
private BigDecimal returnDlvyAmt; // 반품배송비금액
|
private BigDecimal returnDlvyAmt; // 반품배송비금액
|
||||||
|
|
||||||
|
private BigDecimal wonReturnDlvyAmt; // 반품배송비금액(원화)
|
||||||
|
|
||||||
private String returnDlvyTrgetCd; // 반품배송비수령대상코드
|
private String returnDlvyTrgetCd; // 반품배송비수령대상코드
|
||||||
|
|
||||||
private String returnDlvyRspnsblCd; // 반품배송비지불책임코드
|
private String returnDlvyRspnsblCd; // 반품배송비지불책임코드
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ public class BOOrdrShippingVO extends AbstractVO {
|
|||||||
/** 받는자휴대폰번호 */
|
/** 받는자휴대폰번호 */
|
||||||
private String recpntMbtlnb;
|
private String recpntMbtlnb;
|
||||||
|
|
||||||
|
/** 배송지역코드 */
|
||||||
|
private String dlvylcAreaCd;
|
||||||
|
|
||||||
/** 배송지우편번호 */
|
/** 배송지우편번호 */
|
||||||
private String dlvylcZip;
|
private String dlvylcZip;
|
||||||
|
|
||||||
|
|||||||
@@ -151,6 +151,9 @@ public class BOOrdrVO extends AbstractVO {
|
|||||||
/** 장바구니 고유번호 배열 */
|
/** 장바구니 고유번호 배열 */
|
||||||
private String[] cartInnbs;
|
private String[] cartInnbs;
|
||||||
|
|
||||||
|
/** 구독서비스 고유번호 */
|
||||||
|
private String subsvcInnb;
|
||||||
|
|
||||||
/** 주문배송 고유번호 */
|
/** 주문배송 고유번호 */
|
||||||
private String ordrDlvyInnb;
|
private String ordrDlvyInnb;
|
||||||
|
|
||||||
|
|||||||
@@ -171,6 +171,26 @@ public class MyOrdrController {
|
|||||||
return Util.getDeviceType(request) + "/mpage/ordr/SubsvcOrdrDlvyListRForm";
|
return Util.getDeviceType(request) + "/mpage/ordr/SubsvcOrdrDlvyListRForm";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 마이 페이지 > MY쇼핑 > 마이페이지 > 주문/배송 목록 조회
|
||||||
|
* @param ordrDlvyVO
|
||||||
|
* @return ResponseEntity<WnbtResponse>
|
||||||
|
*/
|
||||||
|
@Policy(AuthPolicy.RESTRICTED)
|
||||||
|
@RequestMapping(value="/selectMbrSubsvcOrdrListInqireMapge")
|
||||||
|
public String selectMbrSubsvcOrdrListInqireMapge(ModelMap model, BOOrdrDlvyVO ordrDlvyVO) {
|
||||||
|
|
||||||
|
Map<String, Object> content = selectBOMbrSubsvcOrdrListInqireAjax(ordrDlvyVO);
|
||||||
|
model.addAttribute("data", content);
|
||||||
|
// responseHandler.handleResponse(
|
||||||
|
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/ordr/ordr/selectBOMbrOrdrListInqireAjax", ordrDlvyVO),
|
||||||
|
// model,
|
||||||
|
// "data"
|
||||||
|
// );
|
||||||
|
|
||||||
|
return "sopmal/mpage/ordr/SubsvcOrdrDlvyListMpageRList";
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 마이 페이지 > MY쇼핑 > 구독서비스 주문/배송 > 구독서비스 주문/배송 목록 조회
|
* 마이 페이지 > MY쇼핑 > 구독서비스 주문/배송 > 구독서비스 주문/배송 목록 조회
|
||||||
* @param ordrDlvyVO
|
* @param ordrDlvyVO
|
||||||
@@ -758,7 +778,7 @@ public class MyOrdrController {
|
|||||||
// model,
|
// model,
|
||||||
// "resultMap"
|
// "resultMap"
|
||||||
// );
|
// );
|
||||||
model.addAttribute("paramVO", boRtngudrefndVO);
|
model.addAttribute("paramVO", new ObjectMapper().writeValueAsString(boRtngudrefndVO));
|
||||||
|
|
||||||
// 마이페이지 > 상단 회원 정보 ( 등금, 이름, 마일리지, 쿠폰, 위시리스트, 배송중, 등급산정기준 )
|
// 마이페이지 > 상단 회원 정보 ( 등금, 이름, 마일리지, 쿠폰, 위시리스트, 배송중, 등급산정기준 )
|
||||||
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package com.wb.domainserver.domain.sopmal.ordr.controller;
|
|||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import com.nimbusds.jose.shaded.gson.Gson;
|
import com.nimbusds.jose.shaded.gson.Gson;
|
||||||
import com.wb.domainserver.common.msg.GconeMessageSource;
|
import com.wb.domainserver.common.msg.GconeMessageSource;
|
||||||
import com.wb.domainserver.common.mvc.tags.ui.pagination.PaginationInfo;
|
import com.wb.domainserver.common.mvc.tags.ui.pagination.PaginationInfo;
|
||||||
import com.wb.domainserver.common.prop.PaginationProperties;
|
import com.wb.domainserver.common.prop.PaginationProperties;
|
||||||
import com.wb.domainserver.domain.admin.instcSle.mtng.service.BOMaMtngService;
|
import com.wb.domainserver.domain.admin.instcSle.mtng.service.BOMaMtngService;
|
||||||
@@ -20,12 +20,13 @@ import com.wb.domainserver.domain.gcone.goods.goods.service.BOGoodsService;
|
|||||||
import com.wb.domainserver.domain.gcone.goods.purchs.service.BOOrderService;
|
import com.wb.domainserver.domain.gcone.goods.purchs.service.BOOrderService;
|
||||||
import com.wb.domainserver.domain.gcone.goods.purchs.service.BOPurchsService;
|
import com.wb.domainserver.domain.gcone.goods.purchs.service.BOPurchsService;
|
||||||
import com.wb.domainserver.domain.gcone.goods.purchs.vo.*;
|
import com.wb.domainserver.domain.gcone.goods.purchs.vo.*;
|
||||||
|
import com.wb.domainserver.domain.gcone.goods.subsvc.service.BOSubsvcService;
|
||||||
|
import com.wb.domainserver.domain.gcone.goods.subsvc.vo.BOSubsvcVO;
|
||||||
import com.wb.domainserver.domain.gcone.mbr.mbr.service.BOMbrService;
|
import com.wb.domainserver.domain.gcone.mbr.mbr.service.BOMbrService;
|
||||||
import com.wb.domainserver.domain.gcone.mbr.mbr.vo.BOMbrVO;
|
import com.wb.domainserver.domain.gcone.mbr.mbr.vo.BOMbrVO;
|
||||||
import com.wb.domainserver.domain.gcone.ordr.dlivy.service.BODlivyService;
|
import com.wb.domainserver.domain.gcone.ordr.dlivy.service.BODlivyService;
|
||||||
import com.wb.domainserver.domain.gcone.ordr.npay.service.BONpayConfigService;
|
import com.wb.domainserver.domain.gcone.ordr.npay.service.BONpayConfigService;
|
||||||
import com.wb.domainserver.domain.gcone.ordr.npay.vo.BONpayConfigVO;
|
import com.wb.domainserver.domain.gcone.ordr.npay.vo.BONpayConfigVO;
|
||||||
import com.wb.domainserver.domain.gcone.ordr.ordr.service.BOOrderCommonService;
|
|
||||||
import com.wb.domainserver.domain.gcone.ordr.ordr.service.BOOrdrLogService;
|
import com.wb.domainserver.domain.gcone.ordr.ordr.service.BOOrdrLogService;
|
||||||
import com.wb.domainserver.domain.gcone.ordr.ordr.service.BOOrdrService;
|
import com.wb.domainserver.domain.gcone.ordr.ordr.service.BOOrdrService;
|
||||||
import com.wb.domainserver.domain.gcone.ordr.ordr.vo.BOCrmDlvylcVO;
|
import com.wb.domainserver.domain.gcone.ordr.ordr.vo.BOCrmDlvylcVO;
|
||||||
@@ -36,36 +37,27 @@ import com.wb.domainserver.domain.gcone.promtn.coupon.service.BOCouponService;
|
|||||||
import com.wb.domainserver.domain.gcone.setup.dlvygrp.service.BODlvygrpService;
|
import com.wb.domainserver.domain.gcone.setup.dlvygrp.service.BODlvygrpService;
|
||||||
import com.wb.domainserver.domain.gcone.setup.nbkk.service.BONbkkService;
|
import com.wb.domainserver.domain.gcone.setup.nbkk.service.BONbkkService;
|
||||||
import com.wb.domainserver.domain.gcone.setup.site.vo.BOSiteVO;
|
import com.wb.domainserver.domain.gcone.setup.site.vo.BOSiteVO;
|
||||||
import com.wb.domainserver.domain.sample.vo.PrevewVO;
|
import com.wb.domainserver.domain.sopmal.ordr.vo.OrdrVO;
|
||||||
import com.wb.domainserver.domain.sopmal.goods.vo.GoodsVO;
|
|
||||||
import com.wb.domainserver.domain.sopmal.ordr.vo.OrdrVO;
|
|
||||||
import com.wb.domainserver.domain.sopmal.ordr.vo.PayVO;
|
|
||||||
import com.wb.domainserver.domain.sopmal.ordr.vo.SpbkVO;
|
|
||||||
import com.wb.domainserver.exception.WnbtRestException;
|
import com.wb.domainserver.exception.WnbtRestException;
|
||||||
import com.wb.domainserver.exception.code.PurchsValidCode;
|
import com.wb.domainserver.exception.code.PurchsValidCode;
|
||||||
import com.wb.domainserver.response.ApiResponse;
|
import com.wb.domainserver.response.WnbtResponse;
|
||||||
import com.wb.domainserver.response.WnbtResponse;
|
import com.wb.domainserver.response.WnbtResponseBody;
|
||||||
import com.wb.domainserver.response.WnbtResponseBody;
|
import com.wb.domainserver.response.WnbtWebClientResponseHandler;
|
||||||
import com.wb.domainserver.response.WnbtWebClientResponseHandler;
|
import com.wb.domainserver.security.authentication.AnonymousUser;
|
||||||
import com.wb.domainserver.security.authentication.AnonymousUser;
|
import com.wb.domainserver.security.authentication.MemberJwtContextHolder;
|
||||||
import com.wb.domainserver.security.authentication.MemberJwtContextHolder;
|
import com.wb.domainserver.security.authorization.annotation.AuthPolicy;
|
||||||
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.CookieUtils;
|
import com.wb.domainserver.util.cookie.CookieUtil;
|
||||||
import com.wb.domainserver.util.communicate.RESRC;
|
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||||
import com.wb.domainserver.util.communicate.ReplyFromResrc;
|
import com.wb.domainserver.util.string.StringUtil;
|
||||||
import com.wb.domainserver.util.communicate.SendToResrc;
|
import com.wb.domainserver.util.util.Util;
|
||||||
import com.wb.domainserver.util.cookie.CookieUtil;
|
|
||||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
|
||||||
import com.wb.domainserver.util.string.StringUtil;
|
|
||||||
import com.wb.domainserver.util.util.Util;
|
|
||||||
import jakarta.servlet.http.Cookie;
|
import jakarta.servlet.http.Cookie;
|
||||||
import jakarta.servlet.http.HttpServletRequest;
|
import jakarta.servlet.http.HttpServletRequest;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.logging.log4j.util.Base64Util;
|
import org.apache.logging.log4j.util.Base64Util;
|
||||||
import org.json.simple.JSONObject;
|
import org.json.simple.JSONObject;
|
||||||
import org.json.simple.parser.JSONParser;
|
import org.json.simple.parser.JSONParser;
|
||||||
import org.springframework.beans.BeanUtils;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
@@ -74,7 +66,10 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.ModelMap;
|
import org.springframework.ui.ModelMap;
|
||||||
import org.springframework.util.CollectionUtils;
|
import org.springframework.util.CollectionUtils;
|
||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMethod;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
@@ -136,6 +131,8 @@ public class OrdrController {
|
|||||||
private BOMaMtngService boMaMtngService;
|
private BOMaMtngService boMaMtngService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private BOPurchsService boPurchsService;
|
private BOPurchsService boPurchsService;
|
||||||
|
@Autowired
|
||||||
|
private BOSubsvcService subsvcService;
|
||||||
|
|
||||||
/* ####################################
|
/* ####################################
|
||||||
사용자 > 상품 > 구매/결제 > 회원구매하기 시작
|
사용자 > 상품 > 구매/결제 > 회원구매하기 시작
|
||||||
@@ -399,6 +396,134 @@ public class OrdrController {
|
|||||||
// );
|
// );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ####################################
|
||||||
|
사용자 > 구독상품 > 구매/결제 > 회원구매하기 시작
|
||||||
|
#################################### */
|
||||||
|
/**
|
||||||
|
* 사용자 > 구독상품 > 구매/결제 > 구독서비스 결제 > 구독서비스 결제 화면 이동
|
||||||
|
* @return SubsvcPurchsC.jsp
|
||||||
|
*/
|
||||||
|
@Policy(AuthPolicy.RESTRICTED)
|
||||||
|
@RequestMapping(value="/selectSubsvcPurchsForm")
|
||||||
|
public String selectSubsvcSetleInqire(HttpServletRequest request, ModelMap model, BOOrdrVO ordrVO) throws Exception {
|
||||||
|
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||||
|
|
||||||
|
//결재 플랫폼 구분 코드
|
||||||
|
ordrVO.setSetlePltfomTyCd("PC".equals(request.getAttribute("env"))?"01":"02");
|
||||||
|
|
||||||
|
//약관정보 세팅
|
||||||
|
BOStplatVO stplatVO = new BOStplatVO();
|
||||||
|
stplatVO.setPageIndex(1);
|
||||||
|
stplatVO.setPageUnit(paginationProperties.getPageUnit());
|
||||||
|
stplatVO.setNmbrPurchsAt("Y");
|
||||||
|
stplatVO.setSrchSopmalCd(user.getSopmalCd());
|
||||||
|
|
||||||
|
DataMap stplat = selectBOStplatListInqire(stplatVO);
|
||||||
|
|
||||||
|
//주문 상품정보 세팅
|
||||||
|
if ("01".equals(user.getSysDvCd())) {
|
||||||
|
ordrVO.setSopmalCd(user.getSopmalCd());
|
||||||
|
}
|
||||||
|
ordrVO.setMbrInnb(user.getUserInnb());
|
||||||
|
ordrVO.setMbrId(user.getMbrId());
|
||||||
|
ordrVO.setMbrDvCd(user.getMbrDvCd());
|
||||||
|
|
||||||
|
Map<String, Object> content = service.selectSubsvcPurchs(ordrVO);
|
||||||
|
|
||||||
|
model.addAttribute("data", content);
|
||||||
|
model.addAttribute("paramVO", new ObjectMapper().writeValueAsString(ordrVO));
|
||||||
|
model.addAttribute("deviceType", Util.getDeviceType(request));
|
||||||
|
model.addAttribute("stplat", stplat);
|
||||||
|
|
||||||
|
return Util.getDeviceType(request) + "/ordr/SubsvcPurchsC";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 사용자 > 구독상품 > 구매/결제 > 구독서비스 결제 > 구독서비스 조회
|
||||||
|
* @param param
|
||||||
|
* @return ResponseEntity<WnbtResponse>
|
||||||
|
*/
|
||||||
|
@Policy(AuthPolicy.RESTRICTED)
|
||||||
|
@RequestMapping(value="/selectOrderSubsvcOne", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||||
|
public ResponseEntity<WnbtResponse> selectOrderSubsvcOne(@RequestBody HashMap<String, Object> param) {
|
||||||
|
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||||
|
BOSubsvcVO subsvcVO = new BOSubsvcVO();
|
||||||
|
|
||||||
|
if ("01".equals(user.getSysDvCd())) {
|
||||||
|
subsvcVO.setSopmalCd(user.getSopmalCd());
|
||||||
|
}
|
||||||
|
subsvcVO.setSubsvcInnb(String.valueOf(param.get("subsvcInnb")));
|
||||||
|
|
||||||
|
DataMap content = subsvcService.selectBOSubsvcDetail(subsvcVO);
|
||||||
|
|
||||||
|
return ResponseEntity.ok(
|
||||||
|
WnbtResponse.builder()
|
||||||
|
.resBody(new WnbtResponseBody(content))
|
||||||
|
.build()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 사용자 > 구독상품 > 구매/결제 > 구독서비스 결제 > 결제 예정금액 조회
|
||||||
|
* @param param
|
||||||
|
* @return ResponseEntity<WnbtResponse>
|
||||||
|
*/
|
||||||
|
@Policy(AuthPolicy.RESTRICTED)
|
||||||
|
@RequestMapping(value="/selectSubsvcSetleExpectAmt", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||||
|
public ResponseEntity<WnbtResponse> selectSubsvcSetleExpectAmt(HttpServletRequest request, @RequestBody HashMap<String, Object> param) {
|
||||||
|
String sesionId ="";
|
||||||
|
Cookie[] cookies = request.getCookies();
|
||||||
|
if(cookies != null){
|
||||||
|
for(Cookie cookie : cookies ){
|
||||||
|
if(cookie.getName().equals("JSESSIONID")){
|
||||||
|
sesionId = cookie.getValue();
|
||||||
|
param.put("sesionId", sesionId);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||||
|
if ("01".equals(user.getSysDvCd())) {
|
||||||
|
param.put("sopmalCd", user.getSopmalCd());
|
||||||
|
param.put("mbrDvCd", user.getMbrDvCd());
|
||||||
|
param.put("mbrInnb", user.getUserInnb());
|
||||||
|
}
|
||||||
|
Map<String, Object> content = new HashMap<>();
|
||||||
|
try {
|
||||||
|
DataMap datamap = new DataMap();
|
||||||
|
param.entrySet().forEach(map -> {
|
||||||
|
datamap.put(map.getKey(), map.getValue());
|
||||||
|
});
|
||||||
|
content = service.selectSubsvcSetleExpectAmt(datamap);
|
||||||
|
} catch (WnbtRestException wre) {
|
||||||
|
log.debug("결제예정금액 ordr wre");
|
||||||
|
log.error(wre.getMessage(), wre);
|
||||||
|
content = new HashMap<>() {{
|
||||||
|
put("status", "1");
|
||||||
|
put("message", wre.getMessage());
|
||||||
|
put("mlgMxmmUseAmt", wre.getCode());
|
||||||
|
}};
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.debug("결제예정금액 ordr e");
|
||||||
|
log.error(e.getMessage(), e);
|
||||||
|
|
||||||
|
content = new HashMap<>() {{
|
||||||
|
put("status", "1");
|
||||||
|
put("message", "예기치 못한 오류가 발생하였습니다.\n관리자에게 문의하시기 바랍니다.");
|
||||||
|
}};
|
||||||
|
}
|
||||||
|
|
||||||
|
return ResponseEntity.ok(
|
||||||
|
WnbtResponse.builder()
|
||||||
|
.resBody(new WnbtResponseBody(content))
|
||||||
|
.build()
|
||||||
|
);
|
||||||
|
// return responseHandler.handleResponse(
|
||||||
|
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/ordr/ordr/selectBOSetleExpectAmt", param),
|
||||||
|
// ReplyFromResrc::getReply
|
||||||
|
// );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 관리자 주문 > 브랜드페이 > 토큰발급
|
* 관리자 주문 > 브랜드페이 > 토큰발급
|
||||||
@@ -3009,13 +3134,7 @@ public class OrdrController {
|
|||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// if (CollectionUtils.isEmpty(multiOrdrDlvylc)) {
|
// 여러곳배송처럼 처리하더라도 주소는 하나이므로 shipping 체크
|
||||||
// log.info("배송지 정보를 찾을 수 없습니다.");
|
|
||||||
// content.put("result","Y");
|
|
||||||
// content.put("message", "배송지 정보를 찾을 수 없습니다.");
|
|
||||||
// // throw new WnbtRestException("주문유형 정보를 찾을 수 없습니다.");
|
|
||||||
// return content;
|
|
||||||
// }
|
|
||||||
if (CollectionUtils.isEmpty(shipping)) {
|
if (CollectionUtils.isEmpty(shipping)) {
|
||||||
log.info("배송지 정보를 찾을 수 없습니다.");
|
log.info("배송지 정보를 찾을 수 없습니다.");
|
||||||
content.put("result","Y");
|
content.put("result","Y");
|
||||||
@@ -3052,70 +3171,6 @@ public class OrdrController {
|
|||||||
String[] receptMbtlnbArray = null; // 배송지 받는이 휴대폰번호
|
String[] receptMbtlnbArray = null; // 배송지 받는이 휴대폰번호
|
||||||
|
|
||||||
if ("01".equals(ordrTyCd) || "03".equals(ordrTyCd) || "06".equals(ordrTyCd)) { // 일반주문, 회원개인결제, 정기배송
|
if ("01".equals(ordrTyCd) || "03".equals(ordrTyCd) || "06".equals(ordrTyCd)) { // 일반주문, 회원개인결제, 정기배송
|
||||||
// if (!CollectionUtils.isEmpty(multiOrdrDlvylc)) {
|
|
||||||
//
|
|
||||||
// // 배송지 리스트
|
|
||||||
// List<LinkedHashMap<String, Object>> dlvylcListMulti = (List<LinkedHashMap<String, Object>>) multiOrdrDlvylc.get("dlvylc");
|
|
||||||
//
|
|
||||||
// /** ----------------------------------------------- 배송지별 주문 상품 수량 검사 START ----------------------------------------------- */
|
|
||||||
// content = checkDistributedQyMatchesOrder(goodsList, dlvylcListMulti);
|
|
||||||
// if (!"0".equals(content.get("status"))) {
|
|
||||||
// return content;
|
|
||||||
// }
|
|
||||||
// /** ----------------------------------------------- 배송지별 주문 상품 수량 검사 END ----------------------------------------------- */
|
|
||||||
//
|
|
||||||
// // 부정판매 체크를 위한 배송지 정렬
|
|
||||||
// if (!CollectionUtils.isEmpty(dlvylcListMulti)) {
|
|
||||||
//
|
|
||||||
// boolean hasInvalidAddress = dlvylcListMulti.stream().anyMatch(map -> {
|
|
||||||
// String dlvylcZip = StringUtil.isNullToString(map.get("dlvylcZip"));
|
|
||||||
// String adresDvCd = StringUtil.isNullToString(map.get("dlvylcAdresDvCd"));
|
|
||||||
// String dlvylcLnbAdres = StringUtil.isNullToString(map.get("dlvylcLnbAdres"));
|
|
||||||
// String dlvylcRnmAdres = StringUtil.isNullToString(map.get("dlvylcRnmAdres"));
|
|
||||||
// String adresDtl = StringUtil.isNullToString(map.get("dlvylcAdresDtl"));
|
|
||||||
//
|
|
||||||
// return StringUtil.isEmpty(dlvylcZip)
|
|
||||||
// || StringUtil.isEmpty(adresDvCd)
|
|
||||||
// || ("01".equals(adresDvCd) && StringUtil.isEmpty(dlvylcRnmAdres))
|
|
||||||
// || ("02".equals(adresDvCd) && StringUtil.isEmpty(dlvylcLnbAdres))
|
|
||||||
// || StringUtil.isEmpty(adresDtl);
|
|
||||||
// });
|
|
||||||
//
|
|
||||||
// if (hasInvalidAddress) {
|
|
||||||
// content.put("result","Y");
|
|
||||||
// content.put("message", "배송지 정보를 찾을 수 없습니다. 다시 시도해 주세요.");
|
|
||||||
// return content;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// List<String> adresList = dlvylcListMulti.stream()
|
|
||||||
// .map(map -> {
|
|
||||||
// String adresDvCd = StringUtil.isNullToString(map.get("dlvylcAdresDvCd"));
|
|
||||||
// String adresDtl = StringUtil.isNullToString(map.get("dlvylcAdresDtl"));
|
|
||||||
// String dlvylcLnbAdres = StringUtil.isNullToString(map.get("dlvylcLnbAdres"));
|
|
||||||
// String dlvylcRnmAdres = StringUtil.isNullToString(map.get("dlvylcRnmAdres"));
|
|
||||||
// String adresMulti;
|
|
||||||
// if ("01".equals(adresDvCd)) {
|
|
||||||
// adresMulti = dlvylcRnmAdres + " " + adresDtl;
|
|
||||||
// } else {
|
|
||||||
// adresMulti = dlvylcLnbAdres + " " + adresDtl;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// return adresMulti;
|
|
||||||
// })
|
|
||||||
// .collect(Collectors.toList());
|
|
||||||
//
|
|
||||||
// adresArray = adresList.toArray(new String[0]);
|
|
||||||
//
|
|
||||||
// List<String> receptMbtlnbList = dlvylcListMulti.stream()
|
|
||||||
// .map(map -> {
|
|
||||||
// return StringUtil.isNullToString(map.get("recpntMbtlnb"));
|
|
||||||
// })
|
|
||||||
// .collect(Collectors.toList());
|
|
||||||
//
|
|
||||||
// receptMbtlnbArray = receptMbtlnbList.toArray(new String[0]);
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
if (
|
if (
|
||||||
StringUtil.isEmpty((String) shipping.get("dlvylcZip")) ||
|
StringUtil.isEmpty((String) shipping.get("dlvylcZip")) ||
|
||||||
StringUtil.isEmpty((String) shipping.get("dlvylcAdresDvCd")) ||
|
StringUtil.isEmpty((String) shipping.get("dlvylcAdresDvCd")) ||
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ spring:
|
|||||||
show-sql: true
|
show-sql: true
|
||||||
servlet:
|
servlet:
|
||||||
multipart:
|
multipart:
|
||||||
max-file-size: 10MB
|
max-file-size: 15MB
|
||||||
max-request-size: -1
|
max-request-size: -1
|
||||||
|
|
||||||
mybatis:
|
mybatis:
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ spring:
|
|||||||
show-sql: true
|
show-sql: true
|
||||||
servlet:
|
servlet:
|
||||||
multipart:
|
multipart:
|
||||||
max-file-size: 10MB
|
max-file-size: 15MB
|
||||||
max-request-size: -1
|
max-request-size: -1
|
||||||
|
|
||||||
mybatis:
|
mybatis:
|
||||||
|
|||||||
@@ -386,7 +386,9 @@
|
|||||||
, ORDR_STTUS_CD
|
, ORDR_STTUS_CD
|
||||||
, RECPNT_NM
|
, RECPNT_NM
|
||||||
, RECPNT_MBTLNB
|
, RECPNT_MBTLNB
|
||||||
|
, DLVYLC_AREA_CD
|
||||||
, DLVYLC_ZIP
|
, DLVYLC_ZIP
|
||||||
|
, PREFCD
|
||||||
, DLVYLC_ADRES_DV_CD
|
, DLVYLC_ADRES_DV_CD
|
||||||
, DLVYLC_LNB_ADRES
|
, DLVYLC_LNB_ADRES
|
||||||
, DLVYLC_RNM_ADRES
|
, DLVYLC_RNM_ADRES
|
||||||
@@ -422,7 +424,9 @@
|
|||||||
, #{ordrSttusCd}
|
, #{ordrSttusCd}
|
||||||
, #{recpntNm}
|
, #{recpntNm}
|
||||||
, HEX(AES_ENCRYPT(REPLACE(#{recpntMbtlnb}, '-', ''), '1df5be2f7e90ae36'))
|
, HEX(AES_ENCRYPT(REPLACE(#{recpntMbtlnb}, '-', ''), '1df5be2f7e90ae36'))
|
||||||
|
, #{dlvylcAreaCd}
|
||||||
, #{dlvylcZip}
|
, #{dlvylcZip}
|
||||||
|
, #{prefcd}
|
||||||
, #{dlvylcAdresDvCd}
|
, #{dlvylcAdresDvCd}
|
||||||
, #{dlvylcLnbAdres}
|
, #{dlvylcLnbAdres}
|
||||||
, #{dlvylcRnmAdres}
|
, #{dlvylcRnmAdres}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
THEN NOW() BETWEEN GS.EXPSR_BGN_DT AND GS.EXPSR_END_DT
|
THEN NOW() BETWEEN GS.EXPSR_BGN_DT AND GS.EXPSR_END_DT
|
||||||
ELSE 1=1
|
ELSE 1=1
|
||||||
END
|
END
|
||||||
|
AND GS.USE_AT = 'Y'
|
||||||
]]>
|
]]>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@@ -74,60 +75,61 @@
|
|||||||
, CAST(@ROWNUM:=@ROWNUM + 1 AS UNSIGNED) AS RNUM
|
, CAST(@ROWNUM:=@ROWNUM + 1 AS UNSIGNED) AS RNUM
|
||||||
FROM (
|
FROM (
|
||||||
SELECT COUNT(*) OVER() AS TOT_CNT
|
SELECT COUNT(*) OVER() AS TOT_CNT
|
||||||
, GC.SUBSVC_INNB
|
, GS.SUBSVC_INNB
|
||||||
, GC.SOPMAL_CD
|
, GS.SOPMAL_CD
|
||||||
, GC.SUBSVC_NM
|
, CONCAT(GS.SUBSVC_NM, ' (', GS.SUBSVC_GNR_NM, ')') AS SUBSVC_CONCAT_NM
|
||||||
, GC.SUBSVC_GNR
|
, GS.SUBSVC_NM
|
||||||
, GC.SUBSVC_GNR_NM
|
, GS.SUBSVC_GNR
|
||||||
, GC.DLVY_CNT
|
, GS.SUBSVC_GNR_NM
|
||||||
, GC.INVNTRY_QY
|
, GS.DLVY_CNT
|
||||||
, GC.INVNTRY_QY - GC.USEFUL_INVNTRY_QY AS AVAIL_QT /*가용제고*/
|
, GS.INVNTRY_QY
|
||||||
, GC.SUBSVC_STTUS_CD
|
, GS.INVNTRY_QY - GS.USEFUL_INVNTRY_QY AS AVAIL_QT /*가용제고*/
|
||||||
, FN_GET_COMMCODE_NAME('GOODS_STTUS', GC.SUBSVC_STTUS_CD) AS SUBSVC_STTUS /*구독서비스 상태*/
|
, GS.SUBSVC_STTUS_CD
|
||||||
, FN_GET_COMMCODE_NAME('EXPSR_DV', GC.EXPSR_DV_CD) AS EXPSR_DV /*노출구분*/
|
, FN_GET_COMMCODE_NAME('GOODS_STTUS', GS.SUBSVC_STTUS_CD) AS SUBSVC_STTUS /*구독서비스 상태*/
|
||||||
, GC.SUBSVC_CT /*구독료*/
|
, FN_GET_COMMCODE_NAME('EXPSR_DV', GS.EXPSR_DV_CD) AS EXPSR_DV /*노출구분*/
|
||||||
, GC.TME_DLVY_AMT /*1회배송비*/
|
, GS.SUBSVC_CT /*구독료*/
|
||||||
, GC.CNSMRPRIC /*소비자가*/
|
, GS.TME_DLVY_AMT /*1회배송비*/
|
||||||
, GC.SUBSVC_CT + (TME_DLVY_AMT * DLVY_CNT) as SELPRIC /*실판매가=구독료+(1회배송비X배송횟수)*/
|
, GS.CNSMRPRIC /*소비자가*/
|
||||||
, GC.IMG /*섬네일 이미지*/
|
, GS.SUBSVC_CT + (TME_DLVY_AMT * DLVY_CNT) as SELPRIC /*실판매가=구독료+(1회배송비X배송횟수)*/
|
||||||
, GC.LAST_PROCS_ODR /*최종차수*/
|
, GS.IMG /*섬네일 이미지*/
|
||||||
FROM GC_SUBSVC GC
|
, GS.LAST_PROCS_ODR /*최종차수*/
|
||||||
WHERE GC.USE_AT = 'Y'
|
FROM GC_SUBSVC GS
|
||||||
AND GC.SOPMAL_CD = #{sopmalCd}
|
WHERE GS.USE_AT = 'Y'
|
||||||
|
AND GS.SOPMAL_CD = #{sopmalCd}
|
||||||
<if test="srchSelSubsvcNm != null and srchSelSubsvcNm != ''">
|
<if test="srchSelSubsvcNm != null and srchSelSubsvcNm != ''">
|
||||||
AND GC.SUBSVC_NM = #{srchSelSubsvcNm} /*구독서비스 명*/
|
AND GS.SUBSVC_NM = #{srchSelSubsvcNm} /*구독서비스 명*/
|
||||||
</if>
|
</if>
|
||||||
<if test="srchSelSubsvcGnr != null and srchSelSubsvcGnr != ''">
|
<if test="srchSelSubsvcGnr != null and srchSelSubsvcGnr != ''">
|
||||||
AND GC.SUBSVC_GNR = #{srchSelSubsvcGnr} /*기수*/
|
AND GS.SUBSVC_GNR = #{srchSelSubsvcGnr} /*기수*/
|
||||||
</if>
|
</if>
|
||||||
<if test="srchSubsvcNm != null and srchSubsvcNm != ''">
|
<if test="srchSubsvcNm != null and srchSubsvcNm != ''">
|
||||||
AND GC.SUBSVC_NM LIKE CONCAT('%',#{srchSubsvcNm},'%') /*구독서비스 명*/
|
AND GS.SUBSVC_NM LIKE CONCAT('%',#{srchSubsvcNm},'%') /*구독서비스 명*/
|
||||||
</if>
|
</if>
|
||||||
<if test="srchSubsvcGnrNm != null and srchSubsvcGnrNm != ''">
|
<if test="srchSubsvcGnrNm != null and srchSubsvcGnrNm != ''">
|
||||||
AND GC.SUBSVC_GNR_NM LIKE CONCAT('%',#{srchSubsvcGnrNm},'%') /*기수명*/
|
AND GS.SUBSVC_GNR_NM LIKE CONCAT('%',#{srchSubsvcGnrNm},'%') /*기수명*/
|
||||||
</if>
|
</if>
|
||||||
<choose>
|
<choose>
|
||||||
<when test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(srchArrSubsvcSttusCd)">
|
<when test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(srchArrSubsvcSttusCd)">
|
||||||
/*판매상태*/
|
/*판매상태*/
|
||||||
AND GC.SUBSVC_STTUS_CD IN
|
AND GS.SUBSVC_STTUS_CD IN
|
||||||
<foreach collection="srchArrSubsvcSttusCd" item="subsvcSttusCd" open="(" close=")" separator=",">
|
<foreach collection="srchArrSubsvcSttusCd" item="subsvcSttusCd" open="(" close=")" separator=",">
|
||||||
#{subsvcSttusCd}
|
#{subsvcSttusCd}
|
||||||
</foreach>
|
</foreach>
|
||||||
</when>
|
</when>
|
||||||
</choose>
|
</choose>
|
||||||
<if test="srchExpsrDvCd != null and srchExpsrDvCd != ''">
|
<if test="srchExpsrDvCd != null and srchExpsrDvCd != ''">
|
||||||
AND GC.EXPSR_DV_CD = #{srchExpsrDvCd} /*노출여부*/
|
AND GS.EXPSR_DV_CD = #{srchExpsrDvCd} /*노출여부*/
|
||||||
</if>
|
</if>
|
||||||
ORDER BY
|
ORDER BY
|
||||||
<choose>
|
<choose>
|
||||||
<when test="sortDv == 'subsvcGnrAsc'">
|
<when test="sortDv == 'subsvcGnrAsc'">
|
||||||
GC.SUBSVC_NM ASC, SUBSVC_GNR ASC,
|
GS.SUBSVC_NM ASC, SUBSVC_GNR ASC,
|
||||||
</when>
|
</when>
|
||||||
<otherwise>
|
<otherwise>
|
||||||
GC.SUBSVC_NM DESC, SUBSVC_GNR DESC,
|
GS.SUBSVC_NM DESC, SUBSVC_GNR DESC,
|
||||||
</otherwise>
|
</otherwise>
|
||||||
</choose>
|
</choose>
|
||||||
GC.SUBSVC_INNB ASC
|
GS.SUBSVC_INNB ASC
|
||||||
) TB
|
) TB
|
||||||
WHERE (@ROWNUM:=0)=0
|
WHERE (@ROWNUM:=0)=0
|
||||||
) PV
|
) PV
|
||||||
|
|||||||
@@ -683,6 +683,7 @@
|
|||||||
,FMG.MBR_GRAD_NM -- 회원 등급명
|
,FMG.MBR_GRAD_NM -- 회원 등급명
|
||||||
,IFNULL(REGEXP_REPLACE(CAST(AES_DECRYPT(UNHEX(SH.RECPNT_MBTLNB) , '1df5be2f7e90ae36') AS CHAR(50)), '(.{3})(.{4})(.{4})', '$1-$2-$3'), '') AS RECPNT_MBTLNB
|
,IFNULL(REGEXP_REPLACE(CAST(AES_DECRYPT(UNHEX(SH.RECPNT_MBTLNB) , '1df5be2f7e90ae36') AS CHAR(50)), '(.{3})(.{4})(.{4})', '$1-$2-$3'), '') AS RECPNT_MBTLNB
|
||||||
,IFNULL(REGEXP_REPLACE(CAST(AES_DECRYPT(UNHEX(O.ORDRR_MBTLNB) , '1df5be2f7e90ae36') AS CHAR(50)), '(.{3})(.{4})(.{4})', '$1-$2-$3'), '') AS ORDRR_MBTLNB
|
,IFNULL(REGEXP_REPLACE(CAST(AES_DECRYPT(UNHEX(O.ORDRR_MBTLNB) , '1df5be2f7e90ae36') AS CHAR(50)), '(.{3})(.{4})(.{4})', '$1-$2-$3'), '') AS ORDRR_MBTLNB
|
||||||
|
,FN_GET_COMMCODE_NAME('ORDR_STTUS', SH.ORDR_STTUS_CD) AS ORDR_STTUS_NM
|
||||||
]]>
|
]]>
|
||||||
<include refid="dlivyProcsFrom"/>
|
<include refid="dlivyProcsFrom"/>
|
||||||
<include refid="dlivyProcsWhere"/>
|
<include refid="dlivyProcsWhere"/>
|
||||||
|
|||||||
@@ -580,6 +580,7 @@
|
|||||||
END
|
END
|
||||||
)
|
)
|
||||||
) BLACK_DV -- 블랙리스트 구분
|
) BLACK_DV -- 블랙리스트 구분
|
||||||
|
, FO.SUBSVC_AT
|
||||||
FROM GC_ORDER FO
|
FROM GC_ORDER FO
|
||||||
LEFT JOIN LATERAL (
|
LEFT JOIN LATERAL (
|
||||||
SELECT FM.MBR_INNB
|
SELECT FM.MBR_INNB
|
||||||
@@ -1096,6 +1097,7 @@
|
|||||||
, FN_GET_COMMCODE_NAME('ORDR_TY', FO.ORDR_TY_CD) AS ordr_ty_nm
|
, FN_GET_COMMCODE_NAME('ORDR_TY', FO.ORDR_TY_CD) AS ordr_ty_nm
|
||||||
, FOI.optn_cd_1
|
, FOI.optn_cd_1
|
||||||
, FOSH.dlvy_mssage_cn
|
, FOSH.dlvy_mssage_cn
|
||||||
|
, FN_GET_COMMCODE_NAME('ORDR_STTUS', FOSH.ORDR_STTUS_CD) AS shipping_sttus_nm
|
||||||
FROM GC_ORDER FO
|
FROM GC_ORDER FO
|
||||||
INNER JOIN LATERAL (
|
INNER JOIN LATERAL (
|
||||||
SELECT GOI.SOPMAL_CD
|
SELECT GOI.SOPMAL_CD
|
||||||
@@ -1650,8 +1652,10 @@
|
|||||||
, REFUND_ACNT_DPSTR_NM
|
, REFUND_ACNT_DPSTR_NM
|
||||||
, REFUND_ACNTNB
|
, REFUND_ACNTNB
|
||||||
, REFUND_AMT
|
, REFUND_AMT
|
||||||
|
, WON_REFUND_AMT
|
||||||
, REFUND_ACCMLMNY_AMT
|
, REFUND_ACCMLMNY_AMT
|
||||||
, REFUND_DLVY_AMT
|
, REFUND_DLVY_AMT
|
||||||
|
, WON_REFUND_DLVY_AMT
|
||||||
, MLG_ACCMLMNY_AMT
|
, MLG_ACCMLMNY_AMT
|
||||||
, MLG_ACCMLMNY_VALID_DT
|
, MLG_ACCMLMNY_VALID_DT
|
||||||
, ENURI_REVISN_AMT
|
, ENURI_REVISN_AMT
|
||||||
@@ -1677,6 +1681,7 @@
|
|||||||
, RETURN_CSTMR_TELNB
|
, RETURN_CSTMR_TELNB
|
||||||
, RETURN_CSTMR_MBTLNB
|
, RETURN_CSTMR_MBTLNB
|
||||||
, RETURN_DLVY_AMT
|
, RETURN_DLVY_AMT
|
||||||
|
, WON_RETURN_DLVY_AMT
|
||||||
, RETURN_DLVY_TRGET_CD
|
, RETURN_DLVY_TRGET_CD
|
||||||
, RETURN_DLVY_RSPNSBL_CD
|
, RETURN_DLVY_RSPNSBL_CD
|
||||||
, RETURN_DLVY_PYMNT_TY_CD
|
, RETURN_DLVY_PYMNT_TY_CD
|
||||||
@@ -1714,8 +1719,10 @@
|
|||||||
, #{refundAcntDpstrNm}
|
, #{refundAcntDpstrNm}
|
||||||
, REPLACE(#{refundAcntnb}, '-', '')
|
, REPLACE(#{refundAcntnb}, '-', '')
|
||||||
, #{refundAmt}
|
, #{refundAmt}
|
||||||
|
, #{wonRefundAmt}
|
||||||
, #{refundAccmlmnyAmt}
|
, #{refundAccmlmnyAmt}
|
||||||
, #{refundDlvyAmt}
|
, #{refundDlvyAmt}
|
||||||
|
, #{wonRefundDlvyAmt}
|
||||||
, #{mlgAccmlmnyAmt}
|
, #{mlgAccmlmnyAmt}
|
||||||
, #{mlgAccmlmnyValidDt}
|
, #{mlgAccmlmnyValidDt}
|
||||||
, #{enuriRevisnAmt}
|
, #{enuriRevisnAmt}
|
||||||
@@ -1741,6 +1748,7 @@
|
|||||||
, HEX(AES_ENCRYPT(REPLACE(#{returnCstmrTelnb}, '-', ''), '1df5be2f7e90ae36'))
|
, HEX(AES_ENCRYPT(REPLACE(#{returnCstmrTelnb}, '-', ''), '1df5be2f7e90ae36'))
|
||||||
, HEX(AES_ENCRYPT(REPLACE(#{returnCstmrMbtlnb}, '-', ''), '1df5be2f7e90ae36'))
|
, HEX(AES_ENCRYPT(REPLACE(#{returnCstmrMbtlnb}, '-', ''), '1df5be2f7e90ae36'))
|
||||||
, #{returnDlvyAmt}
|
, #{returnDlvyAmt}
|
||||||
|
, #{wonReturnDlvyAmt}
|
||||||
, #{returnDlvyTrgetCd}
|
, #{returnDlvyTrgetCd}
|
||||||
, #{returnDlvyRspnsblCd}
|
, #{returnDlvyRspnsblCd}
|
||||||
, #{returnDlvyPymntTyCd}
|
, #{returnDlvyPymntTyCd}
|
||||||
@@ -1992,6 +2000,71 @@
|
|||||||
ORDER BY FOS.ORDR_DLVY_INNB ASC
|
ORDER BY FOS.ORDR_DLVY_INNB ASC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<!-- 배송지정보 목록 조회 그룹 -->
|
||||||
|
<select id="selectOrderShippingListGrp" parameterType="com.wb.domainserver.domain.gcone.ordr.ordr.vo.BOOrdrShippingVO" resultType="dataMap">
|
||||||
|
SELECT SOPMAL_CD, ORDR_INNB, RECPNT_NM, RECPNT_TELNB, RECPNT_MBTLNB, DLVYLC_ZIP, DLVYLC_ADRES_DV_CD, ADRES, DLVYLC_RNM_ADRES, DLVYLC_LNB_ADRES, DLVYLC_ADRES_DTL, DLVY_MSSAGE_CN, GIFT_MSSAGE_CN, GIFT_STTUS_CD, GIFT_STTUS_CD_NM, ORDR_STTUS_CD, ORDR_STTUS_NM, FREE_DLVY_CND_AMT, DFT_DLVY_AMT
|
||||||
|
FROM (
|
||||||
|
SELECT FOS.SOPMAL_CD
|
||||||
|
, FOS.ORDR_INNB
|
||||||
|
, FOS.ORDR_DLVY_INNB
|
||||||
|
, FOS.RECPNT_NM
|
||||||
|
, CASE
|
||||||
|
WHEN LENGTH(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50))) = 11 THEN
|
||||||
|
CONCAT(SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)), 1, 3), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)), 4, 4), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)), 8, 4))
|
||||||
|
WHEN LENGTH(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50))) = 10 AND CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)) LIKE '02%' THEN
|
||||||
|
CONCAT(SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)), 1, 2), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)), 3, 4), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)), 7, 4))
|
||||||
|
WHEN LENGTH(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50))) = 10 AND CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)) NOT LIKE '02%' THEN
|
||||||
|
CONCAT(SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)), 1, 3), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)), 4, 3), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)), 7, 4))
|
||||||
|
WHEN LENGTH(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50))) = 9 THEN
|
||||||
|
CONCAT(SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)), 1, 2), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)), 3, 3), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)), 6, 4))
|
||||||
|
WHEN LENGTH(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50))) = 8 THEN
|
||||||
|
CONCAT(SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)), 1, 4), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50)), 5, 4))
|
||||||
|
ELSE
|
||||||
|
CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_TELNB), '1df5be2f7e90ae36') AS CHAR(50))
|
||||||
|
END AS RECPNT_TELNB
|
||||||
|
, CASE
|
||||||
|
WHEN LENGTH(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50))) = 11 THEN
|
||||||
|
CONCAT(SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)), 1, 3), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)), 4, 4), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)), 8, 4))
|
||||||
|
WHEN LENGTH(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50))) = 10 AND CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)) LIKE '02%' THEN
|
||||||
|
CONCAT(SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)), 1, 2), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)), 3, 4), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)), 7, 4))
|
||||||
|
WHEN LENGTH(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50))) = 10 AND CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)) NOT LIKE '02%' THEN
|
||||||
|
CONCAT(SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)), 1, 3), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)), 4, 3), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)), 7, 4))
|
||||||
|
WHEN LENGTH(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50))) = 9 THEN
|
||||||
|
CONCAT(SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)), 1, 2), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)), 3, 3), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)), 6, 4))
|
||||||
|
WHEN LENGTH(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50))) = 8 THEN
|
||||||
|
CONCAT(SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)), 1, 4), '-', SUBSTR(CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50)), 5, 4))
|
||||||
|
ELSE
|
||||||
|
CAST(AES_DECRYPT(UNHEX(FOS.RECPNT_MBTLNB), '1df5be2f7e90ae36') AS CHAR(50))
|
||||||
|
END AS RECPNT_MBTLNB
|
||||||
|
, FOS.DLVYLC_ZIP
|
||||||
|
, FOS.DLVYLC_ADRES_DV_CD
|
||||||
|
, CASE WHEN FOS.DLVYLC_ADRES_DV_CD = '01'
|
||||||
|
THEN FOS.DLVYLC_RNM_ADRES
|
||||||
|
ELSE FOS.DLVYLC_LNB_ADRES
|
||||||
|
END ADRES
|
||||||
|
, FOS.DLVYLC_RNM_ADRES
|
||||||
|
, FOS.DLVYLC_LNB_ADRES
|
||||||
|
, FOS.DLVYLC_ADRES_DTL
|
||||||
|
, FOS.DLVY_MSSAGE_CN
|
||||||
|
, FOS.GIFT_MSSAGE_CN
|
||||||
|
, FOS.GIFT_STTUS_CD
|
||||||
|
, FN_GET_COMMCODE_NAME('GIFT_STTUS', FOS.GIFT_STTUS_CD) AS GIFT_STTUS_CD_NM
|
||||||
|
, FOS.ORDR_STTUS_CD
|
||||||
|
, FN_GET_COMMCODE_NAME('ORDR_STTUS', FOS.ORDR_STTUS_CD) AS ORDR_STTUS_NM
|
||||||
|
, ROUND(FOS.RL_DLVY_AMT) AS RL_DLVY_AMT
|
||||||
|
, ROUND(FOS.FREE_DLVY_CND_AMT) AS FREE_DLVY_CND_AMT
|
||||||
|
, ROUND(FOS.DFT_DLVY_AMT) AS DFT_DLVY_AMT
|
||||||
|
FROM GC_ORDER_SHIPPING FOS
|
||||||
|
WHERE FOS.SOPMAL_CD = #{sopmalCd}
|
||||||
|
AND FOS.ORDR_INNB = #{ordrInnb}
|
||||||
|
<if test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(ordrDlvyInnb)">
|
||||||
|
AND FOS.ORDR_DLVY_INNB = #{ordrDlvyInnb}
|
||||||
|
</if>
|
||||||
|
ORDER BY FOS.ORDR_DLVY_INNB ASC
|
||||||
|
) AA
|
||||||
|
GROUP BY SOPMAL_CD, ORDR_INNB, RECPNT_NM, RECPNT_TELNB, RECPNT_MBTLNB, DLVYLC_ZIP, DLVYLC_ADRES_DV_CD, ADRES, DLVYLC_RNM_ADRES, DLVYLC_LNB_ADRES, DLVYLC_ADRES_DTL, DLVY_MSSAGE_CN, GIFT_MSSAGE_CN, GIFT_STTUS_CD, GIFT_STTUS_CD_NM, ORDR_STTUS_CD, ORDR_STTUS_NM, FREE_DLVY_CND_AMT, DFT_DLVY_AMT
|
||||||
|
</select>
|
||||||
|
|
||||||
<!-- 배송지별 상품 목록 조회 -->
|
<!-- 배송지별 상품 목록 조회 -->
|
||||||
<select id="selectOrderShippingGoodsList" parameterType="dataMap" resultType="dataMap">
|
<select id="selectOrderShippingGoodsList" parameterType="dataMap" resultType="dataMap">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
@@ -2233,6 +2306,16 @@
|
|||||||
]]>
|
]]>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<!-- 배송지정보 일치여부 확인 -->
|
||||||
|
<select id="selectDlvylcAreaCdInfo" parameterType="com.wb.domainserver.domain.gcone.ordr.ordr.vo.BOOrdrShippingVO">
|
||||||
|
SELECT COUNT(*) AS CNT
|
||||||
|
FROM GC_ORDER_SHIPPING GOS
|
||||||
|
WHERE GOS.SOPMAL_CD = #{sopmalCd}
|
||||||
|
AND GOS.ORDR_INNB = #{ordrInnb}
|
||||||
|
AND GOS.ORDR_DLVY_INNB = #{ordrDlvyInnb}
|
||||||
|
AND GOS.DLVYLC_AREA_CD = #{dlvylcAreaCd}
|
||||||
|
</select>
|
||||||
|
|
||||||
<!-- 배송지정보 수정 -->
|
<!-- 배송지정보 수정 -->
|
||||||
<update id="updateDlvylcInfo" parameterType="com.wb.domainserver.domain.gcone.ordr.ordr.vo.BOOrdrShippingVO">
|
<update id="updateDlvylcInfo" parameterType="com.wb.domainserver.domain.gcone.ordr.ordr.vo.BOOrdrShippingVO">
|
||||||
UPDATE GC_ORDER_SHIPPING FOS
|
UPDATE GC_ORDER_SHIPPING FOS
|
||||||
@@ -2264,6 +2347,7 @@
|
|||||||
WHERE FOS.SOPMAL_CD = #{sopmalCd}
|
WHERE FOS.SOPMAL_CD = #{sopmalCd}
|
||||||
AND FOS.ORDR_INNB = #{ordrInnb}
|
AND FOS.ORDR_INNB = #{ordrInnb}
|
||||||
AND FOS.ORDR_DLVY_INNB = #{ordrDlvyInnb}
|
AND FOS.ORDR_DLVY_INNB = #{ordrDlvyInnb}
|
||||||
|
AND FOS.DLVYLC_AREA_CD = #{dlvylcAreaCd}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<!-- 주문메모 목록 조회 -->
|
<!-- 주문메모 목록 조회 -->
|
||||||
|
|||||||
@@ -326,12 +326,11 @@
|
|||||||
<sql id="mbrRefundListWhere">
|
<sql id="mbrRefundListWhere">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
WHERE 1=1
|
WHERE 1=1
|
||||||
]]>
|
|
||||||
<![CDATA[
|
|
||||||
AND RE.SOPMAL_CD = #{sopmalCd}
|
AND RE.SOPMAL_CD = #{sopmalCd}
|
||||||
AND O.MBR_DV_CD = #{mbrDvCd}
|
AND O.MBR_DV_CD = #{mbrDvCd}
|
||||||
AND O.MBR_INNB = #{mbrInnb}
|
AND O.MBR_INNB = #{mbrInnb}
|
||||||
AND RE.USE_AT = 'Y'
|
AND RE.USE_AT = 'Y'
|
||||||
|
AND RE.REFUND_PROCS_STTUS_CD = '03' /*환불완료*/
|
||||||
]]>
|
]]>
|
||||||
<if test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(srchwrd)">
|
<if test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(srchwrd)">
|
||||||
AND (
|
AND (
|
||||||
@@ -364,6 +363,7 @@
|
|||||||
INNER JOIN GC_ORDER O
|
INNER JOIN GC_ORDER O
|
||||||
ON RE.SOPMAL_CD = O.SOPMAL_CD -- 쇼핑몰 코드
|
ON RE.SOPMAL_CD = O.SOPMAL_CD -- 쇼핑몰 코드
|
||||||
AND RE.ORDR_INNB = O.ORDR_INNB -- 주문 고유번호
|
AND RE.ORDR_INNB = O.ORDR_INNB -- 주문 고유번호
|
||||||
|
AND O.SUBSVC_AT = 'N' /*구독상품 제외*/
|
||||||
]]>
|
]]>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
@@ -842,7 +842,7 @@
|
|||||||
CASE
|
CASE
|
||||||
WHEN RE.RETURN_DLVY_PYMNT_TY_CD = '02' THEN
|
WHEN RE.RETURN_DLVY_PYMNT_TY_CD = '02' THEN
|
||||||
CASE
|
CASE
|
||||||
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '01' THEN GREATEST(RE.REFUND_AMT - IFNULL(RE.DLVY_AMT_REFUND_AMT, 0), 0)
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '01' THEN GREATEST(RE.REFUND_AMT - IFNULL(RE.RETURN_DLVY_AMT, 0), 0)
|
||||||
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '02' THEN GREATEST(RE.REFUND_AMT + IFNULL(RE.REFUND_DLVY_AMT, 0), 0)
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '02' THEN GREATEST(RE.REFUND_AMT + IFNULL(RE.REFUND_DLVY_AMT, 0), 0)
|
||||||
END
|
END
|
||||||
ELSE
|
ELSE
|
||||||
@@ -854,6 +854,42 @@
|
|||||||
END + (REI.REFUND_MLG_AMT + REI.REFUND_MLG_RMNDR_AMT) + (REI.REFUND_CASH_AMT + REI.REFUND_CASH_RMNDR_AMT)))
|
END + (REI.REFUND_MLG_AMT + REI.REFUND_MLG_RMNDR_AMT) + (REI.REFUND_CASH_AMT + REI.REFUND_CASH_RMNDR_AMT)))
|
||||||
, 0) AS RL_REFUND_AMT -- 마일리지, 배송비 제외한 실 환불 금액
|
, 0) AS RL_REFUND_AMT -- 마일리지, 배송비 제외한 실 환불 금액
|
||||||
, IFNULL(
|
, IFNULL(
|
||||||
|
ROUND(CASE
|
||||||
|
WHEN RE.REFUND_TY_CD = '01' THEN RE.REFUND_AMT + RE.REFUND_DLVY_AMT
|
||||||
|
WHEN RE.REFUND_TY_CD = '02' THEN
|
||||||
|
CASE
|
||||||
|
WHEN RE.RETURN_DLVY_PYMNT_TY_CD = '02' THEN
|
||||||
|
CASE
|
||||||
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '01' THEN GREATEST(RE.REFUND_AMT - IFNULL(RE.RETURN_DLVY_AMT, 0), 0)
|
||||||
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '02' THEN GREATEST(RE.REFUND_AMT + IFNULL(RE.REFUND_DLVY_AMT, 0), 0)
|
||||||
|
END
|
||||||
|
ELSE
|
||||||
|
CASE
|
||||||
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '01' THEN RE.REFUND_AMT
|
||||||
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '02' THEN GREATEST(RE.REFUND_AMT + IFNULL(RE.REFUND_DLVY_AMT, 0), 0)
|
||||||
|
END
|
||||||
|
END
|
||||||
|
END)
|
||||||
|
, 0) AS REAL_REFUND_AMT -- 마일리지, 쿠폰, 캐시를 제외한 실 환불 금액
|
||||||
|
, IFNULL(
|
||||||
|
ROUND(CASE
|
||||||
|
WHEN RE.REFUND_TY_CD = '01' THEN RE.WON_REFUND_AMT + RE.WON_REFUND_DLVY_AMT
|
||||||
|
WHEN RE.REFUND_TY_CD = '02' THEN
|
||||||
|
CASE
|
||||||
|
WHEN RE.RETURN_DLVY_PYMNT_TY_CD = '02' THEN
|
||||||
|
CASE
|
||||||
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '01' THEN GREATEST(RE.WON_REFUND_AMT - IFNULL(RE.WON_RETURN_DLVY_AMT, 0), 0)
|
||||||
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '02' THEN GREATEST(RE.WON_REFUND_AMT + IFNULL(RE.WON_REFUND_DLVY_AMT, 0), 0)
|
||||||
|
END
|
||||||
|
ELSE
|
||||||
|
CASE
|
||||||
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '01' THEN RE.WON_REFUND_AMT
|
||||||
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '02' THEN GREATEST(RE.WON_REFUND_AMT + IFNULL(RE.WON_REFUND_DLVY_AMT, 0), 0)
|
||||||
|
END
|
||||||
|
END
|
||||||
|
END)
|
||||||
|
, 0) AS REAL_WON_REFUND_AMT -- 마일리지, 쿠폰, 캐시를 제외한 실 환불 금액
|
||||||
|
, IFNULL(
|
||||||
ROUND((CASE
|
ROUND((CASE
|
||||||
WHEN RE.REFUND_TY_CD = '01' THEN 0
|
WHEN RE.REFUND_TY_CD = '01' THEN 0
|
||||||
WHEN RE.REFUND_TY_CD = '02' THEN
|
WHEN RE.REFUND_TY_CD = '02' THEN
|
||||||
@@ -873,6 +909,7 @@
|
|||||||
))
|
))
|
||||||
, 0) AS RL_DLVY_AMT_REFUND_AMT -- 반품 배송비
|
, 0) AS RL_DLVY_AMT_REFUND_AMT -- 반품 배송비
|
||||||
, FN_GET_COMMCODE_NAME('SETLE_MTH', ST.SETLE_TY_CD) AS SETLE_TY_CD_NM
|
, FN_GET_COMMCODE_NAME('SETLE_MTH', ST.SETLE_TY_CD) AS SETLE_TY_CD_NM
|
||||||
|
, ROUND(ST.WON_SETLE_AMT) AS WON_SETLE_AMT
|
||||||
FROM (SELECT REI.SOPMAL_CD
|
FROM (SELECT REI.SOPMAL_CD
|
||||||
, REI.ORDER_REFUND_INNB
|
, REI.ORDER_REFUND_INNB
|
||||||
, ROUND(SUM(REI.GOODS_REFUND_AMT)) AS REFUND_AMT -- * REI.REFUND_QY
|
, ROUND(SUM(REI.GOODS_REFUND_AMT)) AS REFUND_AMT -- * REI.REFUND_QY
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ secured:
|
|||||||
- /sopmal/mpage/bnef/**
|
- /sopmal/mpage/bnef/**
|
||||||
- /sopmal/mpage/mbr/**
|
- /sopmal/mpage/mbr/**
|
||||||
- /sopmal/bnft/**
|
- /sopmal/bnft/**
|
||||||
|
- /sopmal/ordr/**
|
||||||
admin:
|
admin:
|
||||||
anonmymous:
|
anonmymous:
|
||||||
# 로그인 없이 접근가능한 uri없음
|
# 로그인 없이 접근가능한 uri없음
|
||||||
|
|||||||
@@ -39,6 +39,20 @@ const fn_save_dftDlvylcAt = function (msg, adbkInnb) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**********************************************
|
||||||
|
리턴 formId 세팅
|
||||||
|
***********************************************/
|
||||||
|
let formIdSave;
|
||||||
|
const fn_set_formId = function (formId) {
|
||||||
|
if (formId !== ''){
|
||||||
|
formIdSave = formId;
|
||||||
|
} else {
|
||||||
|
formId = formIdSave;
|
||||||
|
}
|
||||||
|
|
||||||
|
return formId;
|
||||||
|
}
|
||||||
/**********************************************
|
/**********************************************
|
||||||
배송지 관리 팝업 ()
|
배송지 관리 팝업 ()
|
||||||
***********************************************/
|
***********************************************/
|
||||||
@@ -46,7 +60,9 @@ const fn_move_dlvylc_manage_pop = function (pageIndex,callback, formId = '') {
|
|||||||
if (callback == undefined) {
|
if (callback == undefined) {
|
||||||
callback = 'fn_set_dlvylc';
|
callback = 'fn_set_dlvylc';
|
||||||
}
|
}
|
||||||
|
formId = fn_set_formId(formId);
|
||||||
console.log("배송지 관리 팝업 : ", formId);
|
console.log("배송지 관리 팝업 : ", formId);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/sopmal/mpage/mbr/selectDlvylcManagePopup',
|
url: '/sopmal/mpage/mbr/selectDlvylcManagePopup',
|
||||||
@@ -77,7 +93,9 @@ const fn_move_dlvylc_manage_full = function (pageIndex, callback, formId = '') {
|
|||||||
if (callback == undefined) {
|
if (callback == undefined) {
|
||||||
callback = 'fn_set_dlvylc';
|
callback = 'fn_set_dlvylc';
|
||||||
}
|
}
|
||||||
|
formId = fn_set_formId(formId);
|
||||||
console.log("모바일 배송지 팝업 formId : ", formId);
|
console.log("모바일 배송지 팝업 formId : ", formId);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/sopmal/mpage/mbr/selectDlvylcManagePopup',
|
url: '/sopmal/mpage/mbr/selectDlvylcManagePopup',
|
||||||
|
|||||||
@@ -72,6 +72,20 @@ const fn_select_recentDlvylcList = function (pageIndex, ordering) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**********************************************
|
||||||
|
리턴 formId 세팅
|
||||||
|
***********************************************/
|
||||||
|
let formIdSave;
|
||||||
|
const fn_set_formId = function (formId) {
|
||||||
|
if (formId !== ''){
|
||||||
|
formIdSave = formId;
|
||||||
|
} else {
|
||||||
|
formId = formIdSave;
|
||||||
|
}
|
||||||
|
|
||||||
|
return formId;
|
||||||
|
}
|
||||||
/**********************************************
|
/**********************************************
|
||||||
배송지 관리 팝업 (처음 호출 할 때)
|
배송지 관리 팝업 (처음 호출 할 때)
|
||||||
***********************************************/
|
***********************************************/
|
||||||
@@ -82,6 +96,8 @@ const fn_move_dlvylc_manage_pop = function (pageIndex, mbrInnb, mbrDvCd, callbac
|
|||||||
if (callback == undefined) {
|
if (callback == undefined) {
|
||||||
callback = fn_set_dlvylc;
|
callback = fn_set_dlvylc;
|
||||||
}
|
}
|
||||||
|
formId = fn_set_formId(formId);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/crm/dlvylc/selectRpuseDlvylcListInqire',
|
url: '/crm/dlvylc/selectRpuseDlvylcListInqire',
|
||||||
|
|||||||
@@ -72,6 +72,20 @@ const fn_select_recentDlvylcList = function (pageIndex, ordering) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**********************************************
|
||||||
|
리턴 formId 세팅
|
||||||
|
***********************************************/
|
||||||
|
let formIdSave;
|
||||||
|
const fn_set_formId = function (formId) {
|
||||||
|
if (formId !== ''){
|
||||||
|
formIdSave = formId;
|
||||||
|
} else {
|
||||||
|
formId = formIdSave;
|
||||||
|
}
|
||||||
|
|
||||||
|
return formId;
|
||||||
|
}
|
||||||
/**********************************************
|
/**********************************************
|
||||||
배송지 관리 팝업 (처음 호출 할 때)
|
배송지 관리 팝업 (처음 호출 할 때)
|
||||||
***********************************************/
|
***********************************************/
|
||||||
@@ -82,6 +96,8 @@ const fn_move_dlvylc_manage_pop = function (pageIndex, mbrInnb, mbrDvCd, callbac
|
|||||||
if (callback == undefined) {
|
if (callback == undefined) {
|
||||||
callback = fn_set_dlvylc;
|
callback = fn_set_dlvylc;
|
||||||
}
|
}
|
||||||
|
formId = fn_set_formId(formId);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/crm/dlvylc/selectRpuseDlvylcListInqire',
|
url: '/crm/dlvylc/selectRpuseDlvylcListInqire',
|
||||||
|
|||||||
@@ -48,8 +48,8 @@
|
|||||||
<script src="<c:url value='/mngr/vendor/time-picker/timepicker.min.js'/>"></script>
|
<script src="<c:url value='/mngr/vendor/time-picker/timepicker.min.js'/>"></script>
|
||||||
<script src="<c:url value='/mngr/vendor/dropzone/dropzone.min.js'/>"></script>
|
<script src="<c:url value='/mngr/vendor/dropzone/dropzone.min.js'/>"></script>
|
||||||
<script src="<c:url value='/crm/js/script.js'/>" defer></script>
|
<script src="<c:url value='/crm/js/script.js'/>" defer></script>
|
||||||
<script src="<c:url value='/js/gcone.js'/>"></script>
|
<script src="<c:url value='/js/mngr/gcone.js'/>"></script>
|
||||||
<script src="<c:url value='/js/fileupload_comm.js'/>"></script>
|
<script src="<c:url value='/js/mngr/fileupload_comm.js'/>"></script>
|
||||||
<script src="<c:url value='/ckeditor/ckeditor.js'/>"></script>
|
<script src="<c:url value='/ckeditor/ckeditor.js'/>"></script>
|
||||||
<script src="<c:url value='/mngr/vendor/chart.js/chart.umd.min.js'/>"></script>
|
<script src="<c:url value='/mngr/vendor/chart.js/chart.umd.min.js'/>"></script>
|
||||||
<script src="<c:url value='/admin/vendor/jstree/jstree.min.js'/>"></script>
|
<script src="<c:url value='/admin/vendor/jstree/jstree.min.js'/>"></script>
|
||||||
|
|||||||
@@ -192,9 +192,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -319,9 +319,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -369,9 +369,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -409,9 +409,9 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -482,8 +482,8 @@
|
|||||||
// fn_move_dtlupdt(parsedResult.dlivyInnb);
|
// fn_move_dtlupdt(parsedResult.dlivyInnb);
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -612,9 +612,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -643,9 +643,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -663,9 +663,9 @@
|
|||||||
if (data.resBody != null) {}
|
if (data.resBody != null) {}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -693,9 +693,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -1570,7 +1570,8 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
alert(message)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,8 +114,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="sendOut-info__info-name">
|
<div class="sendOut-info__info-name">
|
||||||
<a href="" class="blue-6 fw-500"><c:out value="${ exList.ordrrNm }"/></a>
|
<a href="" class="blue-6 fw-500"><c:out value="${ exList.ordrrNm }"/></a>
|
||||||
<span style="font-size: 10px;" class="stone-7">▶</span>
|
<br><span> [<c:out value="${exList.ordrSttusNm}"/>]</span>
|
||||||
<span><c:out value="${ exList.recpntNm }"/>님에게 1번째</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p class="sendOut-info__info-address">(<c:out value="${ exList.dlvylcZip }"/>)
|
<p class="sendOut-info__info-address">(<c:out value="${ exList.dlvylcZip }"/>)
|
||||||
|
|||||||
@@ -179,6 +179,15 @@
|
|||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
</c:if>
|
</c:if>
|
||||||
|
<c:if test="${ cdList.cd eq 50 }">
|
||||||
|
<label class="b-checkbox checkbox">
|
||||||
|
<input type="checkbox" value="<c:out value="${ cdList.cd }"/>" name="srchOrdrSttusCds">
|
||||||
|
<span class="check"></span>
|
||||||
|
<span class="control-label">
|
||||||
|
<span class="order-status-badge export"><c:out value="${ cdList.cdNm }"/></span>
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
</c:if>
|
||||||
<c:if test="${ cdList.cd eq 60 }">
|
<c:if test="${ cdList.cd eq 60 }">
|
||||||
<label class="b-checkbox checkbox">
|
<label class="b-checkbox checkbox">
|
||||||
<input type="checkbox" value="<c:out value="${ cdList.cd }"/>" name="srchOrdrSttusCds">
|
<input type="checkbox" value="<c:out value="${ cdList.cd }"/>" name="srchOrdrSttusCds">
|
||||||
|
|||||||
@@ -215,31 +215,21 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const checkedRows = $('input.dlivyCk:checked').closest('tr');
|
const checkedRows = $('input.dlivyCk:checked').closest('tr');
|
||||||
|
|
||||||
let checkedRowTd = null;
|
let checkedRowTd = null;
|
||||||
let rowTdClass = null;
|
let rowTdClass = null;
|
||||||
|
|
||||||
let data = [];
|
let data = [];
|
||||||
|
|
||||||
checkedRows.each(function(index) {
|
checkedRows.each(function(index) {
|
||||||
const currentRow = $(this);
|
const currentRow = $(this);
|
||||||
const nextRow = currentRow.next('tr');
|
const nextRow = currentRow.next('tr');
|
||||||
|
|
||||||
|
|
||||||
checkedRowTd = currentRow.find('td').eq(1);
|
checkedRowTd = currentRow.find('td').eq(1);
|
||||||
|
|
||||||
|
|
||||||
rowTdClass = checkedRowTd.find('button').attr('class');
|
rowTdClass = checkedRowTd.find('button').attr('class');
|
||||||
|
|
||||||
|
|
||||||
if (rowTdClass && rowTdClass.includes('closed')) {
|
if (rowTdClass && rowTdClass.includes('closed')) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let tempRow = nextRow.next(); // 'nextRow'는 제외하고 그 다음 'tr'부터 시작
|
let tempRow = nextRow.next(); // 'nextRow'는 제외하고 그 다음 'tr'부터 시작
|
||||||
|
|
||||||
while (tempRow.length && !tempRow.hasClass('sendOut-info__first')) {
|
while (tempRow.length && !tempRow.hasClass('sendOut-info__first')) {
|
||||||
const inputs = tempRow.find('input[name], select[name]');
|
const inputs = tempRow.find('input[name], select[name]');
|
||||||
let rowData = {};
|
let rowData = {};
|
||||||
@@ -247,39 +237,24 @@
|
|||||||
inputs.each(function () {
|
inputs.each(function () {
|
||||||
const input = $(this);
|
const input = $(this);
|
||||||
rowData[input.attr('name')] = input.val();
|
rowData[input.attr('name')] = input.val();
|
||||||
|
fn_create_input_popup('hidden', 'dlivyUpdtVOList[' + index + '].'+(input.attr('name').split('.')[1]), input.val(), hiddenForm);
|
||||||
|
|
||||||
fn_create_input_popup('hidden', input.attr('name'), input.val(), hiddenForm);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
data.push(rowData);
|
data.push(rowData);
|
||||||
|
|
||||||
tempRow = tempRow.next(); // 다음 'tr'로 이동
|
tempRow = tempRow.next(); // 다음 'tr'로 이동
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const inputs = currentRow.find('input[name], select[name]').add(nextRow.find('input[name], select[name]'));
|
const inputs = currentRow.find('input[name], select[name]').add(nextRow.find('input[name], select[name]'));
|
||||||
let rowData = {};
|
let rowData = {};
|
||||||
|
|
||||||
inputs.each(function() {
|
inputs.each(function() {
|
||||||
const input = $(this);
|
const input = $(this);
|
||||||
rowData[input.attr('name')] = input.val();
|
rowData[input.attr('name')] = input.val();
|
||||||
|
fn_create_input_popup('hidden', 'dlivyUpdtVOList[' + index + '].'+(input.attr('name').split('.')[1]), input.val(), hiddenForm);
|
||||||
|
// fn_create_input_popup('hidden', input.attr('name'), input.val(), hiddenForm);
|
||||||
fn_create_input_popup('hidden', input.attr('name'), input.val(), hiddenForm);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
data.push(rowData);
|
data.push(rowData);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
fn_create_input_popup('hidden', 'dlivyDt', dlivyRegistDate, hiddenForm);
|
fn_create_input_popup('hidden', 'dlivyDt', dlivyRegistDate, hiddenForm);
|
||||||
@@ -287,11 +262,6 @@
|
|||||||
|
|
||||||
const hiddenData = $('#hiddenForm').serializeArray();
|
const hiddenData = $('#hiddenForm').serializeArray();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (isChecked()) {
|
if (isChecked()) {
|
||||||
if (confirm('해당 주문을 출고처리 하시겠습니까?')) {
|
if (confirm('해당 주문을 출고처리 하시겠습니까?')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@@ -928,7 +898,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -1040,7 +1011,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -1131,7 +1103,8 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -251,9 +251,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function(request, status, error) {
|
error:function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -284,9 +284,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function(request, status, error) {
|
error:function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -602,7 +602,7 @@
|
|||||||
const paginationInfo = result.paginationInfo;
|
const paginationInfo = result.paginationInfo;
|
||||||
|
|
||||||
if (allOrdrList == null) {
|
if (allOrdrList == null) {
|
||||||
$('#orderList').append('<tr class="row"><td class="center" colspan="15">검색어가 없거나 검색 결과가 없습니다.</td>');
|
$('#orderList').append('<tr class="row"><td class="center" colspan="14">검색어가 없거나 검색 결과가 없습니다.</td>');
|
||||||
} else {
|
} else {
|
||||||
let rowNum = paginationInfo.totalRecordCount - ((paginationInfo.currentPageNo -1) * paginationInfo.recordCountPerPage) + 1;
|
let rowNum = paginationInfo.totalRecordCount - ((paginationInfo.currentPageNo -1) * paginationInfo.recordCountPerPage) + 1;
|
||||||
|
|
||||||
@@ -636,9 +636,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -666,9 +666,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -686,9 +686,9 @@
|
|||||||
if (data.resBody != null) {}
|
if (data.resBody != null) {}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -718,9 +718,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function(request, status, error) {
|
error:function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -736,7 +736,7 @@
|
|||||||
let header = '';
|
let header = '';
|
||||||
|
|
||||||
header += '<tr class="row order-section__header ' + ordrSttus + '" id="' + currTr + '-header">';
|
header += '<tr class="row order-section__header ' + ordrSttus + '" id="' + currTr + '-header">';
|
||||||
header += ' <td colspan="15">';
|
header += ' <td colspan="14">';
|
||||||
header += ' <div class="form-control-container">';
|
header += ' <div class="form-control-container">';
|
||||||
header += ' <div class="left">';
|
header += ' <div class="left">';
|
||||||
header += ' <div class="select-box">';
|
header += ' <div class="select-box">';
|
||||||
@@ -755,7 +755,7 @@
|
|||||||
/* header += ' <button type="button" id="ordrSttus85" class="btn-' + currTr + ' btn gray xsm">결제취소</button>'; */
|
/* header += ' <button type="button" id="ordrSttus85" class="btn-' + currTr + ' btn gray xsm">결제취소</button>'; */
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('35' === data.ordrSttusCd) {
|
if ('35' === data.ordrSttusCd || '50' === data.ordrSttusCd || '60' === data.ordrSttusCd || '70' === data.ordrSttusCd) {
|
||||||
header += ' <button type="button" onclick="fn_dlivy_procs_popup_check_ordrs(\'/mngr/ordr/dlivy/selectOrdrDlivyPopupForm\',\'팝업\',\'1400\',\'840\');" class="btn primary xsm btn-dlivy-procs-pop-' + data.ordrSttusCd + '">출고처리</button>';
|
header += ' <button type="button" onclick="fn_dlivy_procs_popup_check_ordrs(\'/mngr/ordr/dlivy/selectOrdrDlivyPopupForm\',\'팝업\',\'1400\',\'840\');" class="btn primary xsm btn-dlivy-procs-pop-' + data.ordrSttusCd + '">출고처리</button>';
|
||||||
/* header += ' <button type="button" id="ordrSttus85" class="btn-' + currTr + ' btn gray xsm">결제취소</button>'; */
|
/* header += ' <button type="button" id="ordrSttus85" class="btn-' + currTr + ' btn gray xsm">결제취소</button>'; */
|
||||||
}
|
}
|
||||||
@@ -850,16 +850,13 @@
|
|||||||
tr += ' <td>' + (rowNum - 1) + '</td>';
|
tr += ' <td>' + (rowNum - 1) + '</td>';
|
||||||
tr += ' <td>';
|
tr += ' <td>';
|
||||||
|
|
||||||
if (!fn_is_empty(data.inflowCoursUrl)) {
|
/** 구독서비스 여부 (구독/일반)*/
|
||||||
tr += ' <a href="' + data.inflowCoursUrl + '" target="_blank">';
|
if (data.subsvcAt == 'Y'){
|
||||||
tr += ' <span class="blue-8 fw-500" title="' + data.inflowCoursUrl + '">' + (data.inflowCoursNm).substring(0, 1); + '</span></td>';
|
tr += '구독';
|
||||||
tr += ' </a>';
|
}else{
|
||||||
} else {
|
tr += '일반';
|
||||||
tr += ' <span class="blue-8 fw-500" title="' + data.inflowCoursUrl + '">' + (data.inflowCoursNm).substring(0, 1); + '</span></td>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tr += ' </td>';
|
tr += ' </td>';
|
||||||
tr += ' <td><span class="blue-8 fw-500" title="' + data.sopmalNm + '">' + (data.sopmalNm).substring(0, 1) + '</span></td>';
|
|
||||||
tr += ' <td>' + data.ordrRceptDt + '</td>';
|
tr += ' <td>' + data.ordrRceptDt + '</td>';
|
||||||
tr += ' <td>' + fn_nvl(data.sleEnvrnNm, '') + '</td>';
|
tr += ' <td>' + fn_nvl(data.sleEnvrnNm, '') + '</td>';
|
||||||
tr += ' <td class="left">';
|
tr += ' <td class="left">';
|
||||||
@@ -993,7 +990,7 @@
|
|||||||
let detail = '';
|
let detail = '';
|
||||||
|
|
||||||
detail += '<tr class="row order-section__detail' + ' ordr-innb-detail-' + ordrInnb + '">';
|
detail += '<tr class="row order-section__detail' + ' ordr-innb-detail-' + ordrInnb + '">';
|
||||||
detail += ' <td colspan="15">';
|
detail += ' <td colspan="14">';
|
||||||
detail += ' <div class="order-section__detail-inner">';
|
detail += ' <div class="order-section__detail-inner">';
|
||||||
detail += ' <h5 class="order-section__detail-title">주문상품</h5>';
|
detail += ' <h5 class="order-section__detail-title">주문상품</h5>';
|
||||||
detail += ' <div class="table-wrapper">';
|
detail += ' <div class="table-wrapper">';
|
||||||
@@ -1331,7 +1328,7 @@
|
|||||||
let footer = '';
|
let footer = '';
|
||||||
|
|
||||||
footer += '<tr class="row order-section__footer">';
|
footer += '<tr class="row order-section__footer">';
|
||||||
footer += ' <td colspan="15">';
|
footer += ' <td colspan="14">';
|
||||||
footer += ' <div class="form-control-container">';
|
footer += ' <div class="form-control-container">';
|
||||||
footer += ' <div class="left">';
|
footer += ' <div class="left">';
|
||||||
footer += ' <div class="select-box">';
|
footer += ' <div class="select-box">';
|
||||||
@@ -1350,8 +1347,8 @@
|
|||||||
/* footer += ' <button type="button" id="ordrSttus85" class="btn-' + currTr + ' btn gray xsm">결제취소</button>'; */
|
/* footer += ' <button type="button" id="ordrSttus85" class="btn-' + currTr + ' btn gray xsm">결제취소</button>'; */
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('35' === prevOrderSttusCd) {
|
if ('35' === prevOrderSttusCd || '50' === prevOrderSttusCd || '60' === data.prevOrderSttusCd || '70' === data.prevOrderSttusCd) {
|
||||||
footer += ' <button type="button" onclick="fn_dlivy_procs_popup_check_ordrs(\'/mngr/ordr/dlivy/selectOrdrDlivyPopupForm\',\'팝업\',\'1400\',\'840\');" class="btn primary xsm btn-dlivy-procs-pop-' + data.ordrSttusCd + '">출고처리</button>';
|
footer += ' <button type="button" onclick="fn_dlivy_procs_popup_check_ordrs(\'/mngr/ordr/dlivy/selectOrdrDlivyPopupForm\',\'팝업\',\'1400\',\'840\');" class="btn primary xsm btn-dlivy-procs-pop-' + prevOrderSttusCd + '">출고처리</button>';
|
||||||
/* footer += ' <button type="button" id="ordrSttus85" class="btn-' + currTr + ' btn gray xsm">결제취소</button>'; */
|
/* footer += ' <button type="button" id="ordrSttus85" class="btn-' + currTr + ' btn gray xsm">결제취소</button>'; */
|
||||||
}
|
}
|
||||||
footer += ' <button type="button" class="btn-order-print-' + data.ordrSttusCd + ' btn outline xsm fs-13"><i class="icon icon_print"></i>프린트</button>';
|
footer += ' <button type="button" class="btn-order-print-' + data.ordrSttusCd + ' btn outline xsm fs-13"><i class="icon icon_print"></i>프린트</button>';
|
||||||
@@ -2187,7 +2184,6 @@
|
|||||||
<col style="width: 50px">
|
<col style="width: 50px">
|
||||||
<col style="width: 50px">
|
<col style="width: 50px">
|
||||||
<col style="width: 50px">
|
<col style="width: 50px">
|
||||||
<col style="width: 50px">
|
|
||||||
<col style="width: 120px">
|
<col style="width: 120px">
|
||||||
<col style="width: 50px">
|
<col style="width: 50px">
|
||||||
<col style="width: 215px">
|
<col style="width: 215px">
|
||||||
@@ -2204,8 +2200,7 @@
|
|||||||
<th>선택</th>
|
<th>선택</th>
|
||||||
<th>중요</th>
|
<th>중요</th>
|
||||||
<th>번호</th>
|
<th>번호</th>
|
||||||
<th>유입</th>
|
<th>주문구분</th>
|
||||||
<th>마켓</th>
|
|
||||||
<th>주문일시</th>
|
<th>주문일시</th>
|
||||||
<th>환경</th>
|
<th>환경</th>
|
||||||
<th>주문번호</th>
|
<th>주문번호</th>
|
||||||
@@ -2220,7 +2215,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody id="orderList">
|
<tbody id="orderList">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="15">
|
<td colspan="14">
|
||||||
<div class="form-control-container">
|
<div class="form-control-container">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<span class="gray-6">* 블랙리스트는 자사몰은 적색, 물류센터는 녹색으로 표시됩니다.</span>
|
<span class="gray-6">* 블랙리스트는 자사몰은 적색, 물류센터는 녹색으로 표시됩니다.</span>
|
||||||
|
|||||||
@@ -89,9 +89,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function(request, status, error) {
|
error:function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -586,9 +586,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -613,9 +613,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -633,9 +633,9 @@
|
|||||||
if (data.resBody != null) {}
|
if (data.resBody != null) {}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -663,9 +663,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -586,9 +586,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -613,9 +613,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -633,9 +633,9 @@
|
|||||||
if (data.resBody != null) {}
|
if (data.resBody != null) {}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -663,9 +663,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -834,9 +834,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function(request, status, error) {
|
error:function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -866,9 +866,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function(request, status, error) {
|
error:function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -914,9 +914,9 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -1573,9 +1573,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -369,13 +369,13 @@
|
|||||||
|
|
||||||
|
|
||||||
$('input[name="prosbleCancelAmt"]').on('input', function() {
|
$('input[name="prosbleCancelAmt"]').on('input', function() {
|
||||||
console.log("엄ㄴ아런밍럼니;아러");
|
|
||||||
fn_mlg_display_ctrl();
|
fn_mlg_display_ctrl();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
function rlRefundAmtProcessing() {
|
function rlRefundAmtProcessing() {
|
||||||
|
let rlSetleAmt = parseAmount('${resultMap.result.totRefundDscntAmt.rlSetleAmt}');
|
||||||
|
let wonSetleAmt = parseAmount('${resultMap.result.totRefundDscntAmt.wonSetleAmt}');
|
||||||
let refundTyCd = '<c:out value="${ resultMap.result.refnd.refundTyCd }"/>';
|
let refundTyCd = '<c:out value="${ resultMap.result.refnd.refundTyCd }"/>';
|
||||||
let returnMthCd = $('input[name="returnMthCd"]:checked').val(); // 반품 방법 코드
|
let returnMthCd = $('input[name="returnMthCd"]:checked').val(); // 반품 방법 코드
|
||||||
let refundDlvyAmt = '<c:out value="${ resultMap.result.refnd.refundDlvyAmt }"/>'; // 환불 배송비 금액
|
let refundDlvyAmt = '<c:out value="${ resultMap.result.refnd.refundDlvyAmt }"/>'; // 환불 배송비 금액
|
||||||
@@ -523,31 +523,38 @@
|
|||||||
rlRefundAmt = rlRefundAmt > 0 ? rlRefundAmt : 0;
|
rlRefundAmt = rlRefundAmt > 0 ? rlRefundAmt : 0;
|
||||||
$('.rlRefundAmt').text(formatWithComma(rlRefundAmt));
|
$('.rlRefundAmt').text(formatWithComma(rlRefundAmt));
|
||||||
|
|
||||||
|
/*엔화 비율을 구해서 한화환불금액 계산*/
|
||||||
|
console.log("rlRefundAmt:",rlRefundAmt,"rlSetleAmt:",rlSetleAmt,"wonSetleAmt:",wonSetleAmt);
|
||||||
|
let wonRlRefundAmt = Math.ceil((rlRefundAmt / rlSetleAmt) * wonSetleAmt);
|
||||||
|
wonRlRefundAmt = wonRlRefundAmt > 0 ? wonRlRefundAmt : 0;
|
||||||
|
$('.wonRlRefundAmt').text(formatWithComma(wonRlRefundAmt));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function rlRefundAmtProcessingInput() {
|
function rlRefundAmtProcessingInput() {
|
||||||
|
|
||||||
let refundTyCd = '<c:out value="${ resultMap.result.refnd.refundTyCd }"/>';
|
let rlSetleAmt = parseAmount('${resultMap.result.totRefundDscntAmt.rlSetleAmt}');
|
||||||
let returnMthCd = $('input[name="returnMthCd"]:checked').val(); // 반품 방법 코드
|
let wonSetleAmt = parseAmount('${resultMap.result.totRefundDscntAmt.wonSetleAmt}');
|
||||||
let refundDlvyAmt = '<c:out value="${ resultMap.result.refnd.refundDlvyAmt }"/>'; // 환불 배송비 금액
|
let refundTyCd = '<c:out value="${ resultMap.result.refnd.refundTyCd }"/>';
|
||||||
let returnDlvyRspnsblCd = $('input[name="returnDlvyRspnsblCd"]:checked').val();
|
let returnMthCd = $('input[name="returnMthCd"]:checked').val(); // 반품 방법 코드
|
||||||
let returnDlvyPymntTyCd = $('select[name="returnDlvyPymntTyCd"] option:selected').val(); // 반품 지불 방법 코드
|
let refundDlvyAmt = '<c:out value="${ resultMap.result.refnd.refundDlvyAmt }"/>'; // 환불 배송비 금액
|
||||||
let returnDlvyAmt = $('input[name="returnDlvyAmt"]').val(); // 반품 배송비 금액
|
let returnDlvyRspnsblCd = $('input[name="returnDlvyRspnsblCd"]:checked').val();
|
||||||
let returnDlvyAmtStdr = $('input[name="returnDlvyAmtStdr"]').val(); // 반품 배송비 금액
|
let returnDlvyPymntTyCd = $('select[name="returnDlvyPymntTyCd"] option:selected').val(); // 반품 지불 방법 코드
|
||||||
|
let returnDlvyAmt = $('input[name="returnDlvyAmt"]').val(); // 반품 배송비 금액
|
||||||
|
let returnDlvyAmtStdr = $('input[name="returnDlvyAmtStdr"]').val(); // 반품 배송비 금액
|
||||||
|
|
||||||
let refundMltAmt = 0;
|
let refundMltAmt = 0;
|
||||||
refundMltAmt = parseAmount(refundMltAmt);
|
refundMltAmt = parseAmount(refundMltAmt);
|
||||||
|
|
||||||
let refundCashAmt = 0;
|
let refundCashAmt = 0;
|
||||||
refundCashAmt = parseAmount(refundCashAmt);
|
refundCashAmt = parseAmount(refundCashAmt);
|
||||||
|
|
||||||
|
|
||||||
let refundAmt = 0; // 최종 환불 금액
|
let refundAmt = 0; // 최종 환불 금액
|
||||||
|
|
||||||
let setleAmtGoods = 0;
|
let setleAmtGoods = 0;
|
||||||
let setleAmtMlg = 0;
|
let setleAmtMlg = 0;
|
||||||
let setleAmtCash = 0;
|
let setleAmtCash = 0;
|
||||||
|
|
||||||
$('input[name="goodsRefundAmt"]').each(function(idx) {
|
$('input[name="goodsRefundAmt"]').each(function(idx) {
|
||||||
|
|
||||||
@@ -673,6 +680,13 @@
|
|||||||
rlRefundAmt = rlRefundAmt > 0 ? rlRefundAmt : 0;
|
rlRefundAmt = rlRefundAmt > 0 ? rlRefundAmt : 0;
|
||||||
$('.rlRefundAmt').text(formatWithComma(rlRefundAmt));
|
$('.rlRefundAmt').text(formatWithComma(rlRefundAmt));
|
||||||
|
|
||||||
|
/*엔화 비율을 구해서 한화환불금액 계산*/
|
||||||
|
console.log("rlRefundAmt:",rlRefundAmt,"rlSetleAmt:",rlSetleAmt,"wonSetleAmt:",wonSetleAmt);
|
||||||
|
let wonRlRefundAmt = Math.ceil((rlRefundAmt / rlSetleAmt) * wonSetleAmt);
|
||||||
|
wonRlRefundAmt = wonRlRefundAmt > 0 ? wonRlRefundAmt : 0;
|
||||||
|
$('.wonRlRefundAmt').text(formatWithComma(wonRlRefundAmt));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#returnDlvyPymntTyCd').on('change', function() {
|
$('#returnDlvyPymntTyCd').on('change', function() {
|
||||||
@@ -1170,8 +1184,8 @@
|
|||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
}, error : function(request, status, error) {
|
}, error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -1505,6 +1519,7 @@
|
|||||||
|
|
||||||
<spring:eval expression="@environment.getProperty('mngrfo.common.fileupload.cdnurl')" var="cdnurl"/>
|
<spring:eval expression="@environment.getProperty('mngrfo.common.fileupload.cdnurl')" var="cdnurl"/>
|
||||||
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
||||||
|
<spring:eval expression="@environment.getProperty('currency-unit.KR')" var="krUnit"/>
|
||||||
<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>
|
||||||
<div class="page-title">
|
<div class="page-title">
|
||||||
@@ -2739,9 +2754,8 @@
|
|||||||
<tfoot>
|
<tfoot>
|
||||||
<tr class="tfoot-sum">
|
<tr class="tfoot-sum">
|
||||||
<c:set var="reTotAmt" value="${ resultMap.result.totRefundDscntAmt }"/>
|
<c:set var="reTotAmt" value="${ resultMap.result.totRefundDscntAmt }"/>
|
||||||
<td>결제내역</td>
|
<td colspan="2" style="text-align: left;">결제내역</td>
|
||||||
<td colspan="4" class="text-right"></td>
|
<td colspan="10" class="tfoot-sum__sum table__blue-td text-right">
|
||||||
<td colspan="7" class="tfoot-sum__sum table__blue-td text-right">
|
|
||||||
<c:if test="${ not empty reTotAmt.refundAmtQySum }">
|
<c:if test="${ not empty reTotAmt.refundAmtQySum }">
|
||||||
<span class="comma setleAmtGoods">
|
<span class="comma setleAmtGoods">
|
||||||
<c:out value="${ reTotAmt.refundAmtQySum }"/>
|
<c:out value="${ reTotAmt.refundAmtQySum }"/>
|
||||||
@@ -2790,6 +2804,29 @@
|
|||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr class="tfoot-sum">
|
||||||
|
<td colspan="2" style="text-align: left">환불내역(원화 기준)</td>
|
||||||
|
<td colspan="10" class="tfoot-sum__sum table__blue-td text-center">
|
||||||
|
실결제 금액 :
|
||||||
|
<span class="comma">
|
||||||
|
<c:out value="${ reTotAmt.rlSetleAmt }"/>
|
||||||
|
</span>${curUnit}
|
||||||
|
/
|
||||||
|
<span class="comma">
|
||||||
|
<c:out value="${ reTotAmt.wonSetleAmt }"/>
|
||||||
|
</span>${krUnit}
|
||||||
|
|
|
||||||
|
환불 금액 :
|
||||||
|
<span class="comma rlRefundAmt">
|
||||||
|
<c:out value="${ reTotAmt.realRefundAmt }"/>
|
||||||
|
</span>${curUnit}
|
||||||
|
/
|
||||||
|
<span class="comma tfoot-sum__sum-num wonRlRefundAmt">
|
||||||
|
<c:out value="${ reTotAmt.realWonRefundAmt }"/>
|
||||||
|
</span>${krUnit}
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${ not empty resultMap.list }">
|
<c:when test="${ not empty resultMap.list }">
|
||||||
<c:forEach items="${ resultMap.list }" var="subsvcOrdr" varStatus="status">
|
<c:forEach items="${ resultMap.list }" var="subsvcOrdr" varStatus="status">
|
||||||
<tr<c:if test="${lastProcsOdr > mbrLastProcsOdr}"> class="sendOut-info__reseller"</c:if>>
|
<tr<c:if test="${subsvcOrdr.lastProcsOdr > subsvcOrdr.mbrLastProcsOdr}"> class="sendOut-info__reseller"</c:if>>
|
||||||
<td>
|
<td>
|
||||||
<label class="b-checkbox checkbox is-medium check-all">
|
<label class="b-checkbox checkbox is-medium check-all">
|
||||||
<input type="checkbox" name="arrCheck" class="arrCheck" value="${subsvcOrdr.ordrInnb}@${subsvcOrdr.ordrGoodsInnb}@${subsvcOrdr.ordrGoodsOptnInnb}@${subsvcOrdr.ordrDlvyInnb}">
|
<input type="checkbox" name="arrCheck" class="arrCheck" value="${subsvcOrdr.ordrInnb}@${subsvcOrdr.ordrGoodsInnb}@${subsvcOrdr.ordrGoodsOptnInnb}@${subsvcOrdr.ordrDlvyInnb}">
|
||||||
|
|||||||
@@ -1145,9 +1145,9 @@ since : 2024.01.04 추지훈 최초 생성
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}/*, error : function(request, status, error) {
|
}/*, error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}*/
|
}*/
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -343,11 +343,12 @@
|
|||||||
</c:choose>
|
</c:choose>
|
||||||
<div class="table-wrapper">
|
<div class="table-wrapper">
|
||||||
<form id="bbsRegForm">
|
<form id="bbsRegForm">
|
||||||
<div class="refund-clause ck-content">
|
<%--구독취소 유의사항--%>
|
||||||
<c:out value="${clauseList[0].stplatNm}" escapeXml="false"/>
|
<%-- <div class="refund-clause ck-content">--%>
|
||||||
<br><br>
|
<%-- <c:out value="${clauseList[0].stplatNm}" escapeXml="false"/>--%>
|
||||||
<c:out value="${clauseList[0].stplatCn}" escapeXml="false"/>
|
<%-- <br><br>--%>
|
||||||
</div>
|
<%-- <c:out value="${clauseList[0].stplatCn}" escapeXml="false"/>--%>
|
||||||
|
<%-- </div>--%>
|
||||||
<table class="table write">
|
<table class="table write">
|
||||||
<caption>게시글 등록</caption>
|
<caption>게시글 등록</caption>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
|
|||||||
@@ -292,11 +292,13 @@
|
|||||||
<div class="table-wrapper">
|
<div class="table-wrapper">
|
||||||
<form id="bbsRegForm">
|
<form id="bbsRegForm">
|
||||||
<input type='hidden' name='bbsTyCd' id='bbsTyCd' value='<c:out value="${bbsInfo.bbsTyCd}"/>'>
|
<input type='hidden' name='bbsTyCd' id='bbsTyCd' value='<c:out value="${bbsInfo.bbsTyCd}"/>'>
|
||||||
<div class="refund-clause ck-content">
|
<c:if test="${bbsInfo.bbsTyCd eq '12'}">
|
||||||
<c:out value="${clauseList[0].stplatNm}" escapeXml="false"/>
|
<div class="refund-clause ck-content">
|
||||||
<br><br>
|
<c:out value="${clauseList[0].stplatNm}" escapeXml="false"/>
|
||||||
<c:out value="${clauseList[0].stplatCn}" escapeXml="false"/>
|
<br><br>
|
||||||
</div>
|
<c:out value="${clauseList[0].stplatCn}" escapeXml="false"/>
|
||||||
|
</div>
|
||||||
|
</c:if>
|
||||||
<table class="table write">
|
<table class="table write">
|
||||||
<caption>게시글 등록</caption>
|
<caption>게시글 등록</caption>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<jsp:include page="/WEB-INF/views/comm/Include.jsp"/>
|
<jsp:include page="/WEB-INF/views/comm/Include.jsp"/>
|
||||||
|
<spring:eval expression="@environment.getProperty('sopmalfo.common.fileupload.cdnurl')" var="cdnurl"/>
|
||||||
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@@ -23,12 +24,14 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var subsvcInnb = $('#subsvcInnb').val();
|
var subsvcInnb = $('#subsvcInnb').val();
|
||||||
fn_select_subsvcDetail(subsvcInnb);
|
fn_select_subsvcDetail(subsvcInnb);
|
||||||
|
fn_scroll_event();
|
||||||
});
|
});
|
||||||
|
|
||||||
/******************************************************
|
/******************************************************
|
||||||
* 구독서비스 상세 조회
|
* 구독서비스 상세 조회
|
||||||
* ****************************************************/
|
* ****************************************************/
|
||||||
const fn_select_subsvcDetail = function(subsvcInnb) {
|
const fn_select_subsvcDetail = function(subsvcInnb) {
|
||||||
|
var cdnurl = '${cdnurl}';
|
||||||
var curUnit = '${curUnit}';
|
var curUnit = '${curUnit}';
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@@ -49,15 +52,23 @@
|
|||||||
$('#dscntRaito').text(data.dscntRaito + '%');
|
$('#dscntRaito').text(data.dscntRaito + '%');
|
||||||
$('#subsvcDc').html(data.subsvcDc);
|
$('#subsvcDc').html(data.subsvcDc);
|
||||||
|
|
||||||
|
$("#fixedImg").attr("src", cdnurl + data.img);
|
||||||
|
$('#fixedTitle').text(data.subsvcConcatNm);
|
||||||
|
$('#fixedPrice').text(fn_format_number(data.selpric));
|
||||||
|
|
||||||
switch (data.subsvcSttusCd) {
|
switch (data.subsvcSttusCd) {
|
||||||
case '01':
|
case '01':
|
||||||
$('#subscribeBtn').text('구독하기');
|
$('#subscribeBtn').text('구독하기');
|
||||||
$('#subscribeBtn').prop('disabled', false);
|
$('#subscribeBtn').prop('disabled', false);
|
||||||
|
$('#fixedButton').text('구독하기');
|
||||||
|
$('#fixedButton').prop('disabled', false);
|
||||||
break;
|
break;
|
||||||
case '02':
|
case '02':
|
||||||
case '03':
|
case '03':
|
||||||
$('#subscribeBtn').text(data.subsvcSttus);
|
$('#subscribeBtn').text(data.subsvcSttus);
|
||||||
$('#subscribeBtn').prop('disabled', true);
|
$('#subscribeBtn').prop('disabled', true);
|
||||||
|
$('#fixedButton').text(data.subsvcSttus);
|
||||||
|
$('#fixedButton').prop('disabled', true);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -66,9 +77,53 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************
|
||||||
|
* 숫자 자릿점 포메팅
|
||||||
|
* ****************************************************/
|
||||||
const fn_format_number = function(number) {
|
const fn_format_number = function(number) {
|
||||||
return Number(number).toLocaleString();
|
return Number(number).toLocaleString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************
|
||||||
|
탭, 스크롤 이벤트
|
||||||
|
**************************************************************/
|
||||||
|
const fn_scroll_event = () => {
|
||||||
|
function handleTabScroll() {
|
||||||
|
var scrollTop = $(window).scrollTop();
|
||||||
|
var fixedTabHeight = 100;
|
||||||
|
var initialProductDetailTop = $('#subsvcDc').offset().top;
|
||||||
|
|
||||||
|
var threshold = initialProductDetailTop - fixedTabHeight;
|
||||||
|
|
||||||
|
if (scrollTop > threshold) {
|
||||||
|
if (!$(".productDetailTab").hasClass("fixed")) {
|
||||||
|
$(".productDetailTab").addClass("fixed");
|
||||||
|
$(".fixedProduct").addClass("fixed");
|
||||||
|
$('#subsvcDc').css("margin-top", 62 + "px");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if ($(".productDetailTab").hasClass("fixed")) {
|
||||||
|
$(".productDetailTab").removeClass("fixed");
|
||||||
|
$(".fixedProduct").removeClass("fixed");
|
||||||
|
$('#subsvcDc').css("margin-top", "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var debounce = function (func, delay) {
|
||||||
|
var timer;
|
||||||
|
return function () {
|
||||||
|
var context = this,
|
||||||
|
args = arguments;
|
||||||
|
clearTimeout(timer);
|
||||||
|
timer = setTimeout(function () {
|
||||||
|
func.apply(context, args);
|
||||||
|
}, delay);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
$(window).scroll(debounce(handleTabScroll, 20));
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.container {
|
.container {
|
||||||
@@ -112,6 +167,10 @@
|
|||||||
border: 1px solid #e9ecef;
|
border: 1px solid #e9ecef;
|
||||||
padding: clamp(12px, 3%, 18px);
|
padding: clamp(12px, 3%, 18px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.productDetailTab.fixed {
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<body>
|
<body>
|
||||||
<%-- 공통 Header --%>
|
<%-- 공통 Header --%>
|
||||||
@@ -120,9 +179,9 @@
|
|||||||
<main>
|
<main>
|
||||||
<div class="sub-wrapper">
|
<div class="sub-wrapper">
|
||||||
<div class="sub-content">
|
<div class="sub-content">
|
||||||
<form>
|
<form method="post" action="/sopmal/ordr/selectSubsvcPurchsForm">
|
||||||
<h2 class="subList__title">구독 서비스</h2>
|
<h2 class="subList__title">구독 서비스</h2>
|
||||||
<div class="ck-content" style="border: 1px solid #e9ecef">
|
<div class="ck-content" style="border: 1px solid #e9ecef; background-color: #f8f9fB;">
|
||||||
<c:out value="${ resultMap.sopmalInfo[0].subsvcGuidanceWords }" escapeXml="false"/>
|
<c:out value="${ resultMap.sopmalInfo[0].subsvcGuidanceWords }" escapeXml="false"/>
|
||||||
</div>
|
</div>
|
||||||
<c:choose>
|
<c:choose>
|
||||||
@@ -167,7 +226,25 @@
|
|||||||
<span style="display: block; width: 100%; text-align: center; font-size: 32px;">구독 서비스 상품 준비중</span>
|
<span style="display: block; width: 100%; text-align: center; font-size: 32px;">구독 서비스 상품 준비중</span>
|
||||||
</c:otherwise>
|
</c:otherwise>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
|
<div class="productDetailTab">
|
||||||
|
<div class="fixedProduct">
|
||||||
|
<div class="fixedProduct__left">
|
||||||
|
<div class="fixedProduct__image">
|
||||||
|
<img id="fixedImg" alt="상품이미지" onerror="this.src='/pc/images/image_placeholder.png'">
|
||||||
|
</div>
|
||||||
|
<div class="fixedProduct__product">
|
||||||
|
<p id="fixedTitle" class="fixedProduct__title">상품명</p>
|
||||||
|
<span class="fixedProduct__price">
|
||||||
|
<span id="fixedPrice" class="comma">상품가격</span>
|
||||||
|
<span class="priceUnit"></span><span class="priceUnit">${curUnit}</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="fixedProduct__right">
|
||||||
|
<button type="button" id="fixedButton" class="btn theme lg purchsOrdr">구독하기</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div id="subsvcDc" class="ck-content">구독 서비스 상품 설명</div>
|
<div id="subsvcDc" class="ck-content">구독 서비스 상품 설명</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
**********************************************************/
|
**********************************************************/
|
||||||
const fn_init = function () {
|
const fn_init = function () {
|
||||||
fn_get_ordr_dlvy_list(1);
|
fn_get_ordr_dlvy_list(1);
|
||||||
|
fn_get_subsvc_ordr_dlvy_list(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ********************************************************
|
/* ********************************************************
|
||||||
@@ -535,9 +536,32 @@
|
|||||||
$('#pageDiv').html(html);
|
$('#pageDiv').html(html);
|
||||||
},
|
},
|
||||||
error:function (request) {
|
error:function (request) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 구독서비스 주문/배송 목록 조회 */
|
||||||
|
const fn_get_subsvc_ordr_dlvy_list = function (index) {
|
||||||
|
if (!fn_is_empty(index)) {
|
||||||
|
$('#subsvcPageIndex').val(index);
|
||||||
|
}
|
||||||
|
|
||||||
|
let data = $('#subsvcCondForm').serialize();
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type:'post',
|
||||||
|
url:'<c:url value="/sopmal/mpage/ordr/selectMbrSubsvcOrdrListInqireMapge"/>',
|
||||||
|
data:data,
|
||||||
|
success:function (html) {
|
||||||
|
$('#subsvcPageDiv').html(html);
|
||||||
|
},
|
||||||
|
error:function (request) {
|
||||||
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -563,9 +587,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -591,9 +615,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -611,6 +635,19 @@
|
|||||||
$(form).submit();
|
$(form).submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 구독서비스 주문상세 이동 */
|
||||||
|
const fn_go_subsvc_dtl = function (sopmalCd, ordrInnb) {
|
||||||
|
var form = $('#condForm');
|
||||||
|
|
||||||
|
$(form).append($('<input/>', {type: 'hidden', name: 'ordrInnb', id: 'ordrInnb', value: ordrInnb}));
|
||||||
|
$(form).append($('<input/>', {type: 'hidden', name: 'dateRange', id: 'dateRange', value: 'allDays'}));
|
||||||
|
|
||||||
|
$(form).attr('method', 'get');
|
||||||
|
$(form).attr('action', '<c:url value="/sopmal/mpage/ordr/selectMbrSubsvcOrdrDtlInqire"/>');
|
||||||
|
|
||||||
|
$(form).submit();
|
||||||
|
}
|
||||||
|
|
||||||
/* 검색조건 세팅 */
|
/* 검색조건 세팅 */
|
||||||
const fn_set_param = function () {
|
const fn_set_param = function () {
|
||||||
const params = ${paramVO};
|
const params = ${paramVO};
|
||||||
@@ -701,9 +738,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -752,9 +789,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -812,9 +849,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -932,6 +969,15 @@
|
|||||||
<a class="sub-right-content__more" href="/sopmal/mpage/ordr/selectMbrOrdrListInqire">전체보기</a>
|
<a class="sub-right-content__more" href="/sopmal/mpage/ordr/selectMbrOrdrListInqire">전체보기</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="sub-right-content__section">
|
||||||
|
<h3 class="sub-right-content__innerTitle">최근 주문 (구독서비스)</h3>
|
||||||
|
<form id="subsvcCondForm">
|
||||||
|
<input type="hidden" name="pageIndex" id="subsvcPageIndex" value="1">
|
||||||
|
</form>
|
||||||
|
<div id="subsvcPageDiv"></div>
|
||||||
|
<a class="sub-right-content__more" href="/sopmal/mpage/ordr/selectMbrSubsvcOrdrListInqireRForm">전체보기</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="sub-right-content__section">
|
<div class="sub-right-content__section">
|
||||||
<h3 class="sub-right-content__innerTitle">위시리스트</h3>
|
<h3 class="sub-right-content__innerTitle">위시리스트</h3>
|
||||||
<c:choose>
|
<c:choose>
|
||||||
|
|||||||
@@ -64,9 +64,9 @@
|
|||||||
$('#pageDiv').html(html);
|
$('#pageDiv').html(html);
|
||||||
},
|
},
|
||||||
error: function(data) {
|
error: function(data) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -542,9 +542,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (request, status, error) {
|
error: function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -572,9 +572,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (request, status, error) {
|
error: function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -653,9 +653,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (request, status, error) {
|
error: function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
$("#btnSetleCancl").prop("disabled",false);
|
$("#btnSetleCancl").prop("disabled",false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -702,9 +702,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (request, status, error) {
|
error: function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -773,9 +773,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (request, status, error) {
|
error: function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
$("#btnReturnRegist").prop("disabled",false);
|
$("#btnReturnRegist").prop("disabled",false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -1382,7 +1382,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<p class="textInfo"><i class="icon icon_textInfo--sm"></i>주문자 정보로 주문 관련 정보가 문자와 이메일로 발송됩니다.</p>
|
<%-- <p class="textInfo"><i class="icon icon_textInfo--sm"></i>주문자 정보로 주문 관련 정보가 문자와 이메일로 발송됩니다.</p>--%>
|
||||||
|
<p class="textInfo"><i class="icon icon_textInfo--sm"></i>주문자 정보로 주문 관련 정보가 이메일로 발송됩니다.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -557,9 +557,9 @@
|
|||||||
$('#pageDiv').html(html);
|
$('#pageDiv').html(html);
|
||||||
},
|
},
|
||||||
error:function (data) {
|
error:function (data) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -587,9 +587,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -619,9 +619,9 @@
|
|||||||
fn_mpage_info_refresh();
|
fn_mpage_info_refresh();
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -743,9 +743,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -814,8 +814,8 @@
|
|||||||
$('#btnSetleCancl').prop('disabled', false);
|
$('#btnSetleCancl').prop('disabled', false);
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
$('#btnSetleCancl').prop('disabled', false);
|
$('#btnSetleCancl').prop('disabled', false);
|
||||||
}
|
}
|
||||||
}).done( function (data) {
|
}).done( function (data) {
|
||||||
@@ -899,8 +899,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
$('#btnReturnRegist').prop('disabled', false);
|
$('#btnReturnRegist').prop('disabled', false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -49,6 +49,9 @@
|
|||||||
<c:when test="${order.ordrSttusCd == 75}">
|
<c:when test="${order.ordrSttusCd == 75}">
|
||||||
<span class="orderList__status complete"><c:out value="${order.ordrSttusNm}"/></span>
|
<span class="orderList__status complete"><c:out value="${order.ordrSttusNm}"/></span>
|
||||||
</c:when>
|
</c:when>
|
||||||
|
<c:when test="${order.ordrSttusCd > 84 && order.ordrSttusCd < 100}">
|
||||||
|
<a class="btn full orderList__status cancel" style="background-color:transparent;"><c:out value="${order.ordrSttusNm}"/></a>
|
||||||
|
</c:when>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
<c:if test="${ order.ordrTyCd == '04'}">
|
<c:if test="${ order.ordrTyCd == '04'}">
|
||||||
<br/>
|
<br/>
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
<%-- 공통 include --%>
|
<%-- 공통 include --%>
|
||||||
<jsp:include page="/WEB-INF/views/comm/Include.jsp"/>
|
<jsp:include page="/WEB-INF/views/comm/Include.jsp"/>
|
||||||
|
<c:set var="order" value="${data.order}"/>
|
||||||
|
|
||||||
<script src="<c:url value='/js/dlvylc/dlvylc.js'/>"></script>
|
<script src="<c:url value='/js/dlvylc/dlvylc.js'/>"></script>
|
||||||
|
|
||||||
@@ -96,6 +97,12 @@
|
|||||||
|
|
||||||
const checkLength = $(row).find('input[name="goodsCheck"]:checked').length;
|
const checkLength = $(row).find('input[name="goodsCheck"]:checked').length;
|
||||||
|
|
||||||
|
/** 결제 확인상태인 경우 전체취소 불가*/
|
||||||
|
if ('${order.ordrSttusCd}' == '25'){
|
||||||
|
alert('결제확인 상태에서는 전체 취소만 가능합니다.');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (checkLength === 0) {
|
if (checkLength === 0) {
|
||||||
alert('결제취소/환불 하실 상품을 선택해 주십시요.');
|
alert('결제취소/환불 하실 상품을 선택해 주십시요.');
|
||||||
|
|
||||||
@@ -583,6 +590,8 @@
|
|||||||
dlvylc['recpntNm'] = data.recpntNm;
|
dlvylc['recpntNm'] = data.recpntNm;
|
||||||
dlvylc['recpntMbtlnb'] = data.mbtlnb;
|
dlvylc['recpntMbtlnb'] = data.mbtlnb;
|
||||||
dlvylc['dlvylcZip'] = data.postcode;
|
dlvylc['dlvylcZip'] = data.postcode;
|
||||||
|
dlvylc['dlvylcAreaCd'] = data.dlvylcAreaCd;
|
||||||
|
dlvylc['prefcd'] = data.prefcd;
|
||||||
dlvylc['dlvylcAdresDvCd'] = data.addressType;
|
dlvylc['dlvylcAdresDvCd'] = data.addressType;
|
||||||
dlvylc['dlvylcLnbAdres'] = data.jibunAddress;
|
dlvylc['dlvylcLnbAdres'] = data.jibunAddress;
|
||||||
dlvylc['dlvylcRnmAdres'] = data.roadAddress;
|
dlvylc['dlvylcRnmAdres'] = data.roadAddress;
|
||||||
@@ -602,9 +611,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function(request, status, error) {
|
error:function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -631,9 +640,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function(request, status, error) {
|
error:function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -707,9 +716,10 @@
|
|||||||
$("#btnSetleCancl").prop("disabled",true);
|
$("#btnSetleCancl").prop("disabled",true);
|
||||||
},
|
},
|
||||||
error:function(request, status, error) {
|
error:function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
console.log(request);
|
||||||
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
$("#btnSetleCancl").prop("disabled",true);
|
$("#btnSetleCancl").prop("disabled",true);
|
||||||
}
|
}
|
||||||
}).done( function (data) {
|
}).done( function (data) {
|
||||||
@@ -760,9 +770,9 @@
|
|||||||
location.reload();
|
location.reload();
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -826,9 +836,9 @@
|
|||||||
$("#btnReturnRegist").prop("disabled",false);
|
$("#btnReturnRegist").prop("disabled",false);
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
$("#btnReturnRegist").prop("disabled",false);
|
$("#btnReturnRegist").prop("disabled",false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -1122,7 +1132,6 @@
|
|||||||
<%-- 마이페이지 Right 영역 --%>
|
<%-- 마이페이지 Right 영역 --%>
|
||||||
<jsp:include page="/WEB-INF/views/comm/mpage/MypageRight.jsp"/>
|
<jsp:include page="/WEB-INF/views/comm/mpage/MypageRight.jsp"/>
|
||||||
<spring:eval expression="@environment.getProperty('sopmalfo.common.fileupload.cdnurl')" var="cdnurl"/>
|
<spring:eval expression="@environment.getProperty('sopmalfo.common.fileupload.cdnurl')" var="cdnurl"/>
|
||||||
<c:set var="order" value="${data.order}"/>
|
|
||||||
<form id="refundForm">
|
<form id="refundForm">
|
||||||
<input type="hidden" id="orderReInnb" name="orderReInnb"/>
|
<input type="hidden" id="orderReInnb" name="orderReInnb"/>
|
||||||
<input type="hidden" id="refundOrdrInnb" name="ordrInnb"/>
|
<input type="hidden" id="refundOrdrInnb" name="ordrInnb"/>
|
||||||
@@ -1577,7 +1586,8 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<p class="textInfo"><i class="icon icon_textInfo--sm"></i>개인정보 보호법에 의하여 6개월이 지난 주문의 개인정보는 삭제처리됩니다.</p><br>
|
<p class="textInfo"><i class="icon icon_textInfo--sm"></i>개인정보 보호법에 의하여 6개월이 지난 주문의 개인정보는 삭제처리됩니다.</p><br>
|
||||||
<p class="textInfo"><i class="icon icon_textInfo--sm"></i>주문자 정보로 주문 관련 정보가 문자와 이메일로 발송됩니다.</p>
|
<%-- <p class="textInfo"><i class="icon icon_textInfo--sm"></i>주문자 정보로 주문 관련 정보가 문자와 이메일로 발송됩니다.</p>--%>
|
||||||
|
<p class="textInfo"><i class="icon icon_textInfo--sm"></i>주문자 정보로 주문 관련 정보가 이메일로 발송됩니다.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1735,61 +1745,61 @@
|
|||||||
</c:forEach>
|
</c:forEach>
|
||||||
|
|
||||||
<%-- <c:if test="${not empty data.refundList }">--%>
|
<%-- <c:if test="${not empty data.refundList }">--%>
|
||||||
<c:if test="${showSection}">
|
<%-- <c:if test="${showSection}">--%>
|
||||||
<div class="sub-right-content__section">
|
<%-- <div class="sub-right-content__section">--%>
|
||||||
<h3 class="sub-right-content__title">무효/취소/반품 내역</h3>
|
<%-- <h3 class="sub-right-content__title">무효/취소/반품 내역</h3>--%>
|
||||||
<div class="sub-right-content__section">
|
<%-- <div class="sub-right-content__section">--%>
|
||||||
<div class="table-wrapper">
|
<%-- <div class="table-wrapper">--%>
|
||||||
<table class="table vertical">
|
<%-- <table class="table vertical">--%>
|
||||||
<caption>주문상세내역</caption>
|
<%-- <caption>주문상세내역</caption>--%>
|
||||||
<colgroup>
|
<%-- <colgroup>--%>
|
||||||
<col style="width: auto;">
|
<%-- <col style="width: auto;">--%>
|
||||||
<col style="width: 20%;">
|
<%-- <col style="width: 20%;">--%>
|
||||||
<col style="width: 20%;">
|
<%-- <col style="width: 20%;">--%>
|
||||||
<col style="width: 12%;">
|
<%-- <col style="width: 12%;">--%>
|
||||||
<col style="width: 12%;">
|
<%-- <col style="width: 12%;">--%>
|
||||||
<col style="width: 12%;">
|
<%-- <col style="width: 12%;">--%>
|
||||||
</colgroup>
|
<%-- </colgroup>--%>
|
||||||
<thead>
|
<%-- <thead>--%>
|
||||||
<tr>
|
<%-- <tr>--%>
|
||||||
<th>무효/취소/반품</th>
|
<%-- <th>무효/취소/반품</th>--%>
|
||||||
<th>접수일시</th>
|
<%-- <th>접수일시</th>--%>
|
||||||
<th>처리일시</th>
|
<%-- <th>처리일시</th>--%>
|
||||||
<th>처리수량</th>
|
<%-- <th>처리수량</th>--%>
|
||||||
<th>처리금액</th>
|
<%-- <th>처리금액</th>--%>
|
||||||
<th>처리상태</th>
|
<%-- <th>처리상태</th>--%>
|
||||||
<th>보기</th>
|
<%-- <th>보기</th>--%>
|
||||||
</tr>
|
<%-- </tr>--%>
|
||||||
</thead>
|
<%-- </thead>--%>
|
||||||
<tbody>
|
<%-- <tbody>--%>
|
||||||
<c:forEach var="refund" items="${data.refundList}">
|
<%-- <c:forEach var="refund" items="${data.refundList}">--%>
|
||||||
<c:if test="${ refund.useAt eq 'Y' }">
|
<%-- <c:if test="${ refund.useAt eq 'Y' }">--%>
|
||||||
<tr>
|
<%-- <tr>--%>
|
||||||
<td> <c:out value="${refund.refundTyNm}"/></td>
|
<%-- <td> <c:out value="${refund.refundTyNm}"/></td>--%>
|
||||||
<td><c:out value="${refund.refundReqstDt}"/></td>
|
<%-- <td><c:out value="${refund.refundReqstDt}"/></td>--%>
|
||||||
<td><c:out value="${refund.refundComptDt}"/></td>
|
<%-- <td><c:out value="${refund.refundComptDt}"/></td>--%>
|
||||||
<td><fmt:formatNumber value="${refund.refundQy}" pattern="#,###"/></td>
|
<%-- <td><fmt:formatNumber value="${refund.refundQy}" pattern="#,###"/></td>--%>
|
||||||
<td><fmt:formatNumber value="${refund.refundAmt}" pattern="#,###"/></td>
|
<%-- <td><fmt:formatNumber value="${refund.refundAmt}" pattern="#,###"/></td>--%>
|
||||||
<td>
|
<%-- <td>--%>
|
||||||
<c:out value="${refund.refundProcsSttusNm }"/>
|
<%-- <c:out value="${refund.refundProcsSttusNm }"/>--%>
|
||||||
</td>
|
<%-- </td>--%>
|
||||||
<td>
|
<%-- <td>--%>
|
||||||
<c:if test = "${order.ordrSttusCd ne '95'}">
|
<%-- <c:if test = "${order.ordrSttusCd ne '95'}">--%>
|
||||||
<button type="button" class="btn sm outline"
|
<%-- <button type="button" class="btn sm outline"--%>
|
||||||
onclick="fn_move_dtlupdt('<c:out value="${refund.orderRefundInnb}"/>','<c:out value="${refund.ordrInnb}"/>');">
|
<%-- onclick="fn_move_dtlupdt('<c:out value="${refund.orderRefundInnb}"/>','<c:out value="${refund.ordrInnb}"/>');">--%>
|
||||||
상세보기
|
<%-- 상세보기--%>
|
||||||
</button>
|
<%-- </button>--%>
|
||||||
</c:if>
|
<%-- </c:if>--%>
|
||||||
</td>
|
<%-- </td>--%>
|
||||||
</tr>
|
<%-- </tr>--%>
|
||||||
</c:if>
|
<%-- </c:if>--%>
|
||||||
</c:forEach>
|
<%-- </c:forEach>--%>
|
||||||
</tbody>
|
<%-- </tbody>--%>
|
||||||
</table>
|
<%-- </table>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</c:if>
|
<%-- </c:if>--%>
|
||||||
|
|
||||||
<div class="sub-bottom-btn-container">
|
<div class="sub-bottom-btn-container">
|
||||||
<a href="javascript:void(0);" id="btnOrdrList" class="btn xl outline theme">주문 목록</a>
|
<a href="javascript:void(0);" id="btnOrdrList" class="btn xl outline theme">주문 목록</a>
|
||||||
|
|||||||
@@ -165,6 +165,7 @@
|
|||||||
<div class="sub-rl">
|
<div class="sub-rl">
|
||||||
<spring:eval expression="@environment.getProperty('sopmalfo.common.fileupload.cdnurl')" var="cdnurl"/>
|
<spring:eval expression="@environment.getProperty('sopmalfo.common.fileupload.cdnurl')" var="cdnurl"/>
|
||||||
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
||||||
|
<spring:eval expression="@environment.getProperty('currency-unit.KR')" var="krUnit"/>
|
||||||
<%-- 마이페이지 Left 영역 --%>
|
<%-- 마이페이지 Left 영역 --%>
|
||||||
<jsp:include page="/WEB-INF/views/comm/mpage/MypageLeft.jsp"/>
|
<jsp:include page="/WEB-INF/views/comm/mpage/MypageLeft.jsp"/>
|
||||||
<div class="sub-right-content">
|
<div class="sub-right-content">
|
||||||
@@ -758,8 +759,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="priceSum__operator">
|
<div class="priceSum__operator">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
||||||
viewBox="0 0 16 16" fill="none">
|
|
||||||
<g clip-path="url(#clip0_160_29539)">
|
<g clip-path="url(#clip0_160_29539)">
|
||||||
<path
|
<path
|
||||||
d="M8.99824 7.00176V0H7.00176V7.00176H0V8.99824H7.00176V16H8.99824V8.99824H16V7.00176H8.99824Z"
|
d="M8.99824 7.00176V0H7.00176V7.00176H0V8.99824H7.00176V16H8.99824V8.99824H16V7.00176H8.99824Z"
|
||||||
@@ -854,14 +854,24 @@
|
|||||||
<path d="M3.5 8.16699H24.5V10.5003H3.5V8.16699Z" fill="black" />
|
<path d="M3.5 8.16699H24.5V10.5003H3.5V8.16699Z" fill="black" />
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<div class="priceSum__total">
|
<div class="priceSum__item priceSum__item--misc" style="align-items: unset;">
|
||||||
<span class="priceSum__totalTitle">환불 금액</span>
|
<div class="priceSum__total">
|
||||||
<div class="priceSum__totalPrice">
|
<span class="priceSum__totalTitle">총 환불금액</span>
|
||||||
<span class="comma"><c:out value="${ reTotAmt.rlRefundAmt }"/></span>
|
<div class="priceSum__itemPrice">
|
||||||
<span class="priceUnit">${curUnit}</span>
|
<span class="comma"><c:out value="${ reTotAmt.rlRefundAmt }"/></span>
|
||||||
|
<span class="priceUnit">${curUnit}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="priceSum__totalDetail">
|
<div class="priceSum__total">
|
||||||
(상품금액 <span class="comma"><c:out value="${ reTotAmt.refundAmtQySum }"/></span>${curUnit} + 배송비 <span class="comma"><c:out value="${ reTotAmt.rlDlvyAmt }"/></span>${curUnit})
|
<span class="priceSum__totalTitle">실 환불금액</span>
|
||||||
|
<div class="priceSum__totalPrice">
|
||||||
|
<span class="comma"><c:out value="${ reTotAmt.rlRefundAmt }"/></span>
|
||||||
|
<span class="priceUnit">${curUnit}</span>
|
||||||
|
</div>
|
||||||
|
<span class="priceSum__itemPrice">
|
||||||
|
[<span class="comma"><c:out value="${ reTotAmt.realWonRefundAmt }"/></span>
|
||||||
|
<span class="priceUnit">${krUnit}</span>]
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -902,6 +912,9 @@
|
|||||||
<input type="hidden" id="pageIndex" name="pageIndex" value="${ paramVO.pageIndex }"/>
|
<input type="hidden" id="pageIndex" name="pageIndex" value="${ paramVO.pageIndex }"/>
|
||||||
<input type="hidden" id="recordCountPerPage" name="recordCountPerPage" value="${ paramVO.recordCountPerPage }"/>
|
<input type="hidden" id="recordCountPerPage" name="recordCountPerPage" value="${ paramVO.recordCountPerPage }"/>
|
||||||
<input type="hidden" id="pageUnit" name="pageUnit" value="${ paramVO.pageUnit }"/>
|
<input type="hidden" id="pageUnit" name="pageUnit" value="${ paramVO.pageUnit }"/>
|
||||||
|
<input type="hidden" name="srchwrd" id="srchwrd" value="${ paramVO.srchwrd }"/>
|
||||||
|
<input type="hidden" name="bgnDt" id="bgnDt" value="${ paramVO.bgnDt }"/>
|
||||||
|
<input type="hidden" name="endDt" id="endDt" value="${ paramVO.endDt }"/>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<%-- 공통 Footer --%>
|
<%-- 공통 Footer --%>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
// fn_set_param();
|
fn_set_param();
|
||||||
|
|
||||||
let pageIndex = '<c:out value="${ resultMap.paramVO.pageIndex }"/>';
|
let pageIndex = '<c:out value="${ resultMap.paramVO.pageIndex }"/>';
|
||||||
let pageUnit = '<c:out value="${ resultMap.paramVO.pageUnit }"/>';
|
let pageUnit = '<c:out value="${ resultMap.paramVO.pageUnit }"/>';
|
||||||
@@ -71,7 +71,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 검색조건 세팅 */
|
/******************************************************************
|
||||||
|
* 검색조건 세팅
|
||||||
|
******************************************************************/
|
||||||
const fn_set_param = function() {
|
const fn_set_param = function() {
|
||||||
const params = ${paramVO};
|
const params = ${paramVO};
|
||||||
const keys = Object.keys(params);
|
const keys = Object.keys(params);
|
||||||
|
|||||||
@@ -0,0 +1,92 @@
|
|||||||
|
<%@ 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="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||||
|
<%@ taglib prefix="ui" uri="http://www.winbit.kr/ctl/ui"%>
|
||||||
|
<%@ taglib prefix="f" uri="/WEB-INF/tlds/f.tld"%>
|
||||||
|
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${not empty data.resultList}">
|
||||||
|
<c:forEach var="order" items="${data.resultList}" begin="0" end="4">
|
||||||
|
<div class="orderList__item">
|
||||||
|
<div class="orderList__item__inner">
|
||||||
|
<a href="<c:url value="/sopmal/goods/selectGoodsDtl?sopmalCd=${order.sopmalCd}&goodsInnb=${order.goodsInnb}"/>" class="orderList__image">
|
||||||
|
<spring:eval expression="@environment.getProperty('sopmalfo.common.fileupload.cdnurl')" var="cdnurl"/>
|
||||||
|
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
||||||
|
<img src="<c:out value="${ cdnurl }${order.goodsImageUrl}"/>" onerror="this.src='/pc/images/image_placeholder.png'" alt="<c:out value="${order.goodsNm}"/>">
|
||||||
|
</a>
|
||||||
|
<div class="orderList__description">
|
||||||
|
<div class="orderList__description__first">
|
||||||
|
<div class="orderList__item__top">
|
||||||
|
<a href="javascript:void(0);" onclick="fn_go_subsvc_dtl('<c:out value="${order.sopmalCd}"/>', '<c:out value="${order.ordrInnb}"/>');" class="orderList__orderNum"><c:out value="${order.ordrInnb}"/></a>
|
||||||
|
<span class="orderList__dot">·</span>
|
||||||
|
<span class="orderList__date"><c:out value="${order.ordrDt}"/> 주문</span>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" onclick="fn_go_subsvc_dtl('<c:out value="${order.sopmalCd}"/>', '<c:out value="${order.ordrInnb}"/>');" class="orderList__productTitle"><c:out value="${order.goodsNm}"/></a>
|
||||||
|
<%--<span class="orderList__option"><c:out value="${order.optnNm}"/></span>--%>
|
||||||
|
<span class="cartItem__productOption"><span class="option-badge">옵션</span> <c:out value="${order.optnNm}"/></span>
|
||||||
|
<c:if test="${not empty order.inputOptnText}">
|
||||||
|
<span class="orderList__option"><c:out value="${order.inputOptnText}"/></span>
|
||||||
|
</c:if>
|
||||||
|
</div>
|
||||||
|
<div class="orderList__description__second">
|
||||||
|
<span class="orderList__price"><span class="comma"><fmt:formatNumber value="${order.setleAmt}" pattern="#,###"/></span>${curUnit}</span>
|
||||||
|
</div>
|
||||||
|
<%-- <div class="orderList__description__third">--%>
|
||||||
|
<%-- <span class="orderList__mileage"><span class="comma">예상적립 <fmt:formatNumber value="${order.mlgAmt}" pattern="#,###"/></span>점</span>--%>
|
||||||
|
<%-- </div>--%>
|
||||||
|
<div class="orderList__description__fourth">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${order.ordrSttusCd > 14 && order.ordrSttusCd < 36}">
|
||||||
|
<span class="orderList__status"><c:out value="${order.ordrSttusNm}"/></span>
|
||||||
|
</c:when>
|
||||||
|
<c:when test="${order.ordrSttusCd > 39 && order.ordrSttusCd < 71}">
|
||||||
|
<span class="orderList__status delivery"><c:out value="${order.ordrSttusNm}"/></span>
|
||||||
|
</c:when>
|
||||||
|
<c:when test="${order.ordrSttusCd == 75}">
|
||||||
|
<span class="orderList__status complete"><c:out value="${order.ordrSttusNm}"/></span>
|
||||||
|
</c:when>
|
||||||
|
<c:when test="${order.ordrSttusCd > 84 && order.ordrSttusCd < 100}">
|
||||||
|
<span class="orderList__status cancel"><c:out value="${order.ordrSttusNm}"/></span>
|
||||||
|
</c:when>
|
||||||
|
</c:choose>
|
||||||
|
</div>
|
||||||
|
<%--
|
||||||
|
<div class="orderList__btnControls">
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${order.ordrSttusCd == 15}">
|
||||||
|
<a href="javascript:void(0);" onclick="fn_post_cancl_ordr('<c:out value="${order.sopmalCd}"/>', '<c:out value="${order.ordrInnb}"/>');" class="btn-ordr-sttus btn gray sm full">주문무효</a>
|
||||||
|
<a href="javascript:void(0);" onclick="fn_dlvylc_manage_pop('<c:out value="${order.sopmalCd}"/>', '<c:out value="${order.ordrInnb}"/>', '<c:out value="${order.ordrDlvyInnb}"/>', '<c:out value="${order.mbrInnb}"/>', '<c:out value="${order.mbrDvCd}"/>');" class="btn-ordr-sttus btn outline sm full">배송지 변경</a>
|
||||||
|
</c:when>
|
||||||
|
<c:when test="${order.ordrSttusCd > 24 && order.ordrSttusCd < 36}">
|
||||||
|
<a href="javascript:void(0);" onclick="fn_call_setle_cancl_pop('<c:out value="${order.sopmalCd}"/>', '<c:out value="${order.ordrInnb}"/>', '');" class="btn-ordr-sttus btn gray sm full">결제취소</a>
|
||||||
|
<a href="javascript:void(0);" onclick="fn_dlvylc_manage_pop('<c:out value="${order.sopmalCd}"/>', '<c:out value="${order.ordrInnb}"/>', '<c:out value="${order.ordrDlvyInnb}"/>', '<c:out value="${order.mbrInnb}"/>', '<c:out value="${order.mbrDvCd}"/>');" class="btn-ordr-sttus btn outline sm full">배송지 변경</a>
|
||||||
|
</c:when>
|
||||||
|
|
||||||
|
<c:when test="${order.ordrSttusCd > 39 && order.ordrSttusCd < 66}">
|
||||||
|
<a href="javascript:void(0);" onclick="fn_call_dlvy_sweettracker_pop('<c:out value="${order.ordrInnb}"/>');" class="btn outline sm full">배송조회</a>
|
||||||
|
<a href="javascript:void(0);" onclick="fn_call_refund_pop('<c:out value="${order.ordrInnb}"/>');" class="btn-ordr-sttus btn gray sm full">반품신청</a>
|
||||||
|
</c:when>
|
||||||
|
<c:when test="${order.ordrSttusCd > 69 && order.ordrSttusCd < 76}">
|
||||||
|
<a href="javascript:void(0);" onclick="fn_call_dlvy_sweettracker_pop('<c:out value="${order.ordrInnb}"/>');" class="btn outline sm full">배송조회</a>
|
||||||
|
<a href="javascript:void(0);" onclick="fn_call_refund_pop('<c:out value="${order.ordrInnb}"/>');" class="btn-ordr-sttus btn gray sm full">반품신청</a>
|
||||||
|
<a href="<c:url value="/sopmal/mpage/act/selectMyRvwInqireForm"/>" class="btn-ordr-sttus btn outline sm full">리뷰작성</a>
|
||||||
|
<a href="javascript:void(0);" onclick="fn_post_purchs_dcsn_by_ordr('<c:out value="${order.sopmalCd}"/>', '<c:out value="${order.ordrInnb}"/>');" class="btn-ordr-sttus btn theme sm full">구매확정111</a>
|
||||||
|
</c:when>
|
||||||
|
</c:choose>
|
||||||
|
</div>
|
||||||
|
--%>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a class="sub-right-content__more" href="/sopmal/mpage/ordr/selectMbrOrdrListInqire">전체보기</a>
|
||||||
|
</div>
|
||||||
|
</c:forEach>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<div class="orderList__no-result">
|
||||||
|
<img src="<c:url value="/pc/images/icon__no-result.png"/>" alt="">
|
||||||
|
<p class="orderList__no-result-text">주문내역이 없습니다.</p>
|
||||||
|
</div>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
@@ -33,11 +33,11 @@
|
|||||||
<div class="orderList__description__second">
|
<div class="orderList__description__second">
|
||||||
<span class="orderList__price"><span class="comma"><fmt:formatNumber value="${order.setleAmt}" pattern="#,###"/></span>${curUnit}</span>
|
<span class="orderList__price"><span class="comma"><fmt:formatNumber value="${order.setleAmt}" pattern="#,###"/></span>${curUnit}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="orderList__description__third">
|
<%-- <div class="orderList__description__third">--%>
|
||||||
<c:if test = "${!(order.ordrSttusCd > 84 && order.ordrSttusCd < 100)}">
|
<%-- <c:if test = "${!(order.ordrSttusCd > 84 && order.ordrSttusCd < 100)}">--%>
|
||||||
<span class="orderList__mileage"><span class="comma">예상적립 <fmt:formatNumber value="${order.mlgAmt}" pattern="#,###"/></span>점</span>
|
<%-- <span class="orderList__mileage"><span class="comma">예상적립 <fmt:formatNumber value="${order.mlgAmt}" pattern="#,###"/></span>점</span>--%>
|
||||||
</c:if>
|
<%-- </c:if>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
<div class="orderList__description__fourth">
|
<div class="orderList__description__fourth">
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${order.ordrSttusCd > 14 && order.ordrSttusCd < 36}">
|
<c:when test="${order.ordrSttusCd > 14 && order.ordrSttusCd < 36}">
|
||||||
|
|||||||
@@ -556,9 +556,9 @@
|
|||||||
$('#pageDiv').html(html);
|
$('#pageDiv').html(html);
|
||||||
},
|
},
|
||||||
error:function (data) {
|
error:function (data) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -586,9 +586,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -618,9 +618,9 @@
|
|||||||
fn_mpage_info_refresh();
|
fn_mpage_info_refresh();
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -742,9 +742,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -813,8 +813,8 @@
|
|||||||
$('#btnSetleCancl').prop('disabled', false);
|
$('#btnSetleCancl').prop('disabled', false);
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
$('#btnSetleCancl').prop('disabled', false);
|
$('#btnSetleCancl').prop('disabled', false);
|
||||||
}
|
}
|
||||||
}).done( function (data) {
|
}).done( function (data) {
|
||||||
@@ -898,8 +898,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
$('#btnReturnRegist').prop('disabled', false);
|
$('#btnReturnRegist').prop('disabled', false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -55,8 +55,8 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/* 주문/배송 목록 화면 이동 버튼 선택 이벤트 */
|
/* 구독서비스 주문/배송 목록 화면 이동 버튼 선택 이벤트 */
|
||||||
$('#btnOrdrList').on('click', function() {
|
$('#btnSubsvcOrdrList').on('click', function() {
|
||||||
const params = ${paramVO};
|
const params = ${paramVO};
|
||||||
const keys = Object.keys(params);
|
const keys = Object.keys(params);
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
newForm.attr('name', 'newForm');
|
newForm.attr('name', 'newForm');
|
||||||
newForm.attr('method', 'post');
|
newForm.attr('method', 'post');
|
||||||
newForm.attr('action', '<c:url value="/sopmal/mpage/ordr/selectMbrOrdrListInqire"/>');
|
newForm.attr('action', '<c:url value="/sopmal/mpage/ordr/selectMbrSubsvcOrdrListInqireRForm"/>');
|
||||||
|
|
||||||
for (let i=0; i<keys.length; i++) {
|
for (let i=0; i<keys.length; i++) {
|
||||||
const key = keys[i];
|
const key = keys[i];
|
||||||
@@ -576,6 +576,7 @@
|
|||||||
|
|
||||||
dlvylc['recpntNm'] = data.recpntNm;
|
dlvylc['recpntNm'] = data.recpntNm;
|
||||||
dlvylc['recpntMbtlnb'] = data.mbtlnb;
|
dlvylc['recpntMbtlnb'] = data.mbtlnb;
|
||||||
|
dlvylc['dlvylcAreaCd'] = data.dlvylcAreaCd;
|
||||||
dlvylc['dlvylcZip'] = data.postcode;
|
dlvylc['dlvylcZip'] = data.postcode;
|
||||||
dlvylc['dlvylcAdresDvCd'] = data.addressType;
|
dlvylc['dlvylcAdresDvCd'] = data.addressType;
|
||||||
dlvylc['dlvylcLnbAdres'] = data.jibunAddress;
|
dlvylc['dlvylcLnbAdres'] = data.jibunAddress;
|
||||||
@@ -589,16 +590,20 @@
|
|||||||
data:JSON.stringify(dlvylc),
|
data:JSON.stringify(dlvylc),
|
||||||
dataType:'json',
|
dataType:'json',
|
||||||
success:function(data) {
|
success:function(data) {
|
||||||
if (data.resBody != null) {
|
let result = JSON.parse(data.resBody.result);
|
||||||
alert('<spring:message code="success.common.update"/>');
|
if (result != null) {
|
||||||
|
if(result.status == 0) {
|
||||||
location.reload();
|
alert('<spring:message code="success.common.update"/>');
|
||||||
|
location.reload();
|
||||||
|
} else {
|
||||||
|
alert(result.message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function(request, status, error) {
|
error:function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -625,9 +630,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function(request, status, error) {
|
error:function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -701,9 +706,9 @@
|
|||||||
$("#btnSetleCancl").prop("disabled",true);
|
$("#btnSetleCancl").prop("disabled",true);
|
||||||
},
|
},
|
||||||
error:function(request, status, error) {
|
error:function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
$("#btnSetleCancl").prop("disabled",true);
|
$("#btnSetleCancl").prop("disabled",true);
|
||||||
}
|
}
|
||||||
}).done( function (data) {
|
}).done( function (data) {
|
||||||
@@ -754,9 +759,9 @@
|
|||||||
location.reload();
|
location.reload();
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -820,9 +825,9 @@
|
|||||||
$("#btnReturnRegist").prop("disabled",false);
|
$("#btnReturnRegist").prop("disabled",false);
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
$("#btnReturnRegist").prop("disabled",false);
|
$("#btnReturnRegist").prop("disabled",false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -1212,7 +1217,7 @@
|
|||||||
<col style="width: 10%;">
|
<col style="width: 10%;">
|
||||||
<col style="width: 10%;">
|
<col style="width: 10%;">
|
||||||
<col style="width: 12%;">
|
<col style="width: 12%;">
|
||||||
<col style="width: 10%;">
|
<%-- <col style="width: 10%;">--%>
|
||||||
<col style="width: 10%;">
|
<col style="width: 10%;">
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead>
|
<thead>
|
||||||
@@ -1222,7 +1227,7 @@
|
|||||||
<th>상품금액</th>
|
<th>상품금액</th>
|
||||||
<th>할인금액</th>
|
<th>할인금액</th>
|
||||||
<th>할인적용금액</th>
|
<th>할인적용금액</th>
|
||||||
<th>적립금</th>
|
<%-- <th>적립금</th>--%>
|
||||||
<th>처리상태</th>
|
<th>처리상태</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -1264,12 +1269,12 @@
|
|||||||
<span class="priceUnit">${curUnit}</span>
|
<span class="priceUnit">${curUnit}</span>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<%--<td>
|
||||||
<span class="cartItem__mileage">
|
<span class="cartItem__mileage">
|
||||||
<span class=" comma"><fmt:formatNumber value="${goods.mlgAmt}" pattern="#,###"/></span>
|
<span class=" comma"><fmt:formatNumber value="${goods.mlgAmt}" pattern="#,###"/></span>
|
||||||
<span class="priceUnit">점</span>
|
<span class="priceUnit">점</span>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>--%>
|
||||||
<td>
|
<td>
|
||||||
<a class="orderList__status">
|
<a class="orderList__status">
|
||||||
<c:choose>
|
<c:choose>
|
||||||
@@ -1368,7 +1373,8 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<p class="textInfo"><i class="icon icon_textInfo--sm"></i>개인정보 보호법에 의하여 6개월이 지난 주문의 개인정보는 삭제처리됩니다.</p><br>
|
<p class="textInfo"><i class="icon icon_textInfo--sm"></i>개인정보 보호법에 의하여 6개월이 지난 주문의 개인정보는 삭제처리됩니다.</p><br>
|
||||||
<p class="textInfo"><i class="icon icon_textInfo--sm"></i>주문자 정보로 주문 관련 정보가 문자와 이메일로 발송됩니다.</p>
|
<%-- <p class="textInfo"><i class="icon icon_textInfo--sm"></i>주문자 정보로 주문 관련 정보가 문자와 이메일로 발송됩니다.</p>--%>
|
||||||
|
<p class="textInfo"><i class="icon icon_textInfo--sm"></i>주문자 정보로 주문 관련 정보가 이메일로 발송됩니다.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1526,64 +1532,64 @@
|
|||||||
</c:forEach>
|
</c:forEach>
|
||||||
|
|
||||||
<%-- <c:if test="${not empty data.refundList }">--%>
|
<%-- <c:if test="${not empty data.refundList }">--%>
|
||||||
<c:if test="${showSection}">
|
<%-- <c:if test="${showSection}">--%>
|
||||||
<div class="sub-right-content__section">
|
<%-- <div class="sub-right-content__section">--%>
|
||||||
<h3 class="sub-right-content__title">무효/취소/반품 내역</h3>
|
<%-- <h3 class="sub-right-content__title">무효/취소/반품 내역</h3>--%>
|
||||||
<div class="sub-right-content__section">
|
<%-- <div class="sub-right-content__section">--%>
|
||||||
<div class="table-wrapper">
|
<%-- <div class="table-wrapper">--%>
|
||||||
<table class="table vertical">
|
<%-- <table class="table vertical">--%>
|
||||||
<caption>구독서비스 주문상세내역</caption>
|
<%-- <caption>구독서비스 주문상세내역</caption>--%>
|
||||||
<colgroup>
|
<%-- <colgroup>--%>
|
||||||
<col style="width: auto;">
|
<%-- <col style="width: auto;">--%>
|
||||||
<col style="width: 20%;">
|
<%-- <col style="width: 20%;">--%>
|
||||||
<col style="width: 20%;">
|
<%-- <col style="width: 20%;">--%>
|
||||||
<col style="width: 12%;">
|
<%-- <col style="width: 12%;">--%>
|
||||||
<col style="width: 12%;">
|
<%-- <col style="width: 12%;">--%>
|
||||||
<col style="width: 12%;">
|
<%-- <col style="width: 12%;">--%>
|
||||||
</colgroup>
|
<%-- </colgroup>--%>
|
||||||
<thead>
|
<%-- <thead>--%>
|
||||||
<tr>
|
<%-- <tr>--%>
|
||||||
<th>무효/취소/반품</th>
|
<%-- <th>무효/취소/반품</th>--%>
|
||||||
<th>접수일시</th>
|
<%-- <th>접수일시</th>--%>
|
||||||
<th>처리일시</th>
|
<%-- <th>처리일시</th>--%>
|
||||||
<th>처리수량</th>
|
<%-- <th>처리수량</th>--%>
|
||||||
<th>처리금액</th>
|
<%-- <th>처리금액</th>--%>
|
||||||
<th>처리상태</th>
|
<%-- <th>처리상태</th>--%>
|
||||||
<th>보기</th>
|
<%-- <th>보기</th>--%>
|
||||||
</tr>
|
<%-- </tr>--%>
|
||||||
</thead>
|
<%-- </thead>--%>
|
||||||
<tbody>
|
<%-- <tbody>--%>
|
||||||
<c:forEach var="refund" items="${data.refundList}">
|
<%-- <c:forEach var="refund" items="${data.refundList}">--%>
|
||||||
<c:if test="${ refund.useAt eq 'Y' }">
|
<%-- <c:if test="${ refund.useAt eq 'Y' }">--%>
|
||||||
<tr>
|
<%-- <tr>--%>
|
||||||
<td> <c:out value="${refund.refundTyNm}"/></td>
|
<%-- <td> <c:out value="${refund.refundTyNm}"/></td>--%>
|
||||||
<td><c:out value="${refund.refundReqstDt}"/></td>
|
<%-- <td><c:out value="${refund.refundReqstDt}"/></td>--%>
|
||||||
<td><c:out value="${refund.refundComptDt}"/></td>
|
<%-- <td><c:out value="${refund.refundComptDt}"/></td>--%>
|
||||||
<td><fmt:formatNumber value="${refund.refundQy}" pattern="#,###"/></td>
|
<%-- <td><fmt:formatNumber value="${refund.refundQy}" pattern="#,###"/></td>--%>
|
||||||
<td><fmt:formatNumber value="${refund.refundAmt}" pattern="#,###"/></td>
|
<%-- <td><fmt:formatNumber value="${refund.refundAmt}" pattern="#,###"/></td>--%>
|
||||||
<td>
|
<%-- <td>--%>
|
||||||
<c:out value="${refund.refundProcsSttusNm }"/>
|
<%-- <c:out value="${refund.refundProcsSttusNm }"/>--%>
|
||||||
</td>
|
<%-- </td>--%>
|
||||||
<td>
|
<%-- <td>--%>
|
||||||
<c:if test = "${order.ordrSttusCd ne '95'}">
|
<%-- <c:if test = "${order.ordrSttusCd ne '95'}">--%>
|
||||||
<button type="button" class="btn sm outline"
|
<%-- <button type="button" class="btn sm outline"--%>
|
||||||
onclick="fn_move_dtlupdt('<c:out value="${refund.orderRefundInnb}"/>','<c:out value="${refund.ordrInnb}"/>');">
|
<%-- onclick="fn_move_dtlupdt('<c:out value="${refund.orderRefundInnb}"/>','<c:out value="${refund.ordrInnb}"/>');">--%>
|
||||||
상세보기
|
<%-- 상세보기--%>
|
||||||
</button>
|
<%-- </button>--%>
|
||||||
</c:if>
|
<%-- </c:if>--%>
|
||||||
</td>
|
<%-- </td>--%>
|
||||||
</tr>
|
<%-- </tr>--%>
|
||||||
</c:if>
|
<%-- </c:if>--%>
|
||||||
</c:forEach>
|
<%-- </c:forEach>--%>
|
||||||
</tbody>
|
<%-- </tbody>--%>
|
||||||
</table>
|
<%-- </table>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</c:if>
|
<%-- </c:if>--%>
|
||||||
|
|
||||||
<div class="sub-bottom-btn-container">
|
<div class="sub-bottom-btn-container">
|
||||||
<a href="javascript:void(0);" id="btnOrdrList" class="btn xl outline theme">주문 목록</a>
|
<a href="javascript:void(0);" id="btnSubsvcOrdrList" class="btn xl outline theme">주문 목록</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1833,25 +1833,6 @@
|
|||||||
$(form).find('input[name="dlvylcAdresDtl"]').val(data.dtlAdres);
|
$(form).find('input[name="dlvylcAdresDtl"]').val(data.dtlAdres);
|
||||||
$(form).find('input[name="dlvylcAdres"]').val('01' === $(form).find('input[name="dlvylcAdresDvCd"]').val() ? $(form).find('input[name="dlvylcRnmAdres"]').val() : $(form).find('input[name="dlvylcLnbAdres"]').val());
|
$(form).find('input[name="dlvylcAdres"]').val('01' === $(form).find('input[name="dlvylcAdresDvCd"]').val() ? $(form).find('input[name="dlvylcRnmAdres"]').val() : $(form).find('input[name="dlvylcLnbAdres"]').val());
|
||||||
|
|
||||||
// localStorage.setItem("dlvylcAreaCd", dlvylcAreaCd);
|
|
||||||
// localStorage.setItem("dlvylcAreaCd", dlvylcAreaCd);
|
|
||||||
// localStorage.setItem("dlvylcAreaCd", dlvylcAreaCd);
|
|
||||||
// localStorage.setItem("dlvylcAreaCd", dlvylcAreaCd);
|
|
||||||
// localStorage.setItem("dlvylcAreaCd", dlvylcAreaCd);
|
|
||||||
// localStorage.setItem("dlvylcAreaCd", dlvylcAreaCd);
|
|
||||||
// localStorage.setItem("dlvylcAreaCd", dlvylcAreaCd);
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// setle['sopmalCd'] = $('#sopmalCd').val();
|
|
||||||
// setle['dlvylc'] = JSON.parse(localStorage.getItem('dlvylc'));
|
|
||||||
// setle['goodsList'] = JSON.parse(localStorage.getItem('goodsList'));
|
|
||||||
// setle['enuri'] = JSON.parse(localStorage.getItem('enuri'));
|
|
||||||
// setle['dlvylcZip'] = localStorage.getItem('dlvylcZip');
|
|
||||||
// setle['dlvylcAreaCd'] = localStorage.getItem('dlvylcAreaCd');
|
|
||||||
// setle['prefcd'] = localStorage.getItem('prefcd');
|
|
||||||
// setle['multiOrdrDlvylc'] = JSON.parse(localStorage.getItem('multiOrdrDlvylc'));
|
|
||||||
// setle['ordrTyCd'] = $('input[name="ordrTy"]:checked').val();
|
|
||||||
|
|
||||||
// 배송지 정보 세팅 이후 결제예정금액 재계산
|
// 배송지 정보 세팅 이후 결제예정금액 재계산
|
||||||
fn_get_setle_amt();
|
fn_get_setle_amt();
|
||||||
}
|
}
|
||||||
@@ -2760,6 +2741,9 @@
|
|||||||
order['dlvylcAreaCd'] = localStorage.getItem('dlvylcAreaCd');
|
order['dlvylcAreaCd'] = localStorage.getItem('dlvylcAreaCd');
|
||||||
order['prefcd'] = localStorage.getItem('prefcd');
|
order['prefcd'] = localStorage.getItem('prefcd');
|
||||||
|
|
||||||
|
// order['subsvcInnb'] = 0;
|
||||||
|
// order['subsvcAt'] = 'N';
|
||||||
|
|
||||||
/* 여러곳 배송 > 배송지별 정합성 검사 시작 */
|
/* 여러곳 배송 > 배송지별 정합성 검사 시작 */
|
||||||
if (ordrTyCd === '05') { // 여러곳 배송
|
if (ordrTyCd === '05') { // 여러곳 배송
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,11 @@
|
|||||||
* 초기 설정
|
* 초기 설정
|
||||||
**********************************************************/
|
**********************************************************/
|
||||||
const fn_init = function() {
|
const fn_init = function() {
|
||||||
|
const recentSearches = localStorage.getItem('recentSearches');
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
|
if (recentSearches !== null){
|
||||||
|
localStorage.setItem('recentSearches', recentSearches);
|
||||||
|
}
|
||||||
|
|
||||||
fn_get_spbk_goods_list();
|
fn_get_spbk_goods_list();
|
||||||
}
|
}
|
||||||
@@ -1466,7 +1470,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<span class="cartOrderBox__th">배송비</span>
|
<span class="cartOrderBox__th">배송비</span>
|
||||||
<%-- <span class="cartOrderBox__td"><span class="comma" id="dlvyAmtSapn">0</span><span class="priceUnit">${curUnit}</span></span>--%>
|
<%-- <span class="cartOrderBox__td"><span class="comma" id="dlvyAmtSapn">0</span><span class="priceUnit">${curUnit}</span></span>--%>
|
||||||
<span class="cartOrderBox__td"><span class="comma" id="dlvyAmtSapn">0</span><span class="priceUnit">Calculated at next step</span></span>
|
<span class="cartOrderBox__td"><span class="priceUnit">Calculated at next step</span></span>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<span class="cartOrderBox__th">총 할인금액</span>
|
<span class="cartOrderBox__th">총 할인금액</span>
|
||||||
|
|||||||
4549
src/main/webapp/WEB-INF/views/sopmal/ordr/SubsvcPurchsC.jsp
Normal file
4549
src/main/webapp/WEB-INF/views/sopmal/ordr/SubsvcPurchsC.jsp
Normal file
File diff suppressed because it is too large
Load Diff
@@ -331,11 +331,12 @@
|
|||||||
<input type = "hidden" id = "bbsInfo" value = "<c:out value = '${bbsInfo.bbsInfo}'/>" name = "bbsInfo"/>
|
<input type = "hidden" id = "bbsInfo" value = "<c:out value = '${bbsInfo.bbsInfo}'/>" name = "bbsInfo"/>
|
||||||
<input type = "hidden" id = "bbscttSndngMthCd" value = "<c:out value = '${bbsInfo.bbscttSndngMthCd}'/>" name = "bbscttSndngMthCd"/>
|
<input type = "hidden" id = "bbscttSndngMthCd" value = "<c:out value = '${bbsInfo.bbscttSndngMthCd}'/>" name = "bbscttSndngMthCd"/>
|
||||||
<input type = "hidden" id = "regusrDvCd" value = "<c:out value = '${bbscttVO.regusrDvCd}'/>" name = "regusrDvCd"/>
|
<input type = "hidden" id = "regusrDvCd" value = "<c:out value = '${bbscttVO.regusrDvCd}'/>" name = "regusrDvCd"/>
|
||||||
<div class="refund-clause ck-content">
|
<%--구독취소 유의사항--%>
|
||||||
<c:out value="${clauseList[0].stplatNm}" escapeXml="false"/>
|
<%-- <div class="refund-clause ck-content">--%>
|
||||||
<br><br>
|
<%-- <c:out value="${clauseList[0].stplatNm}" escapeXml="false"/>--%>
|
||||||
<c:out value="${clauseList[0].stplatCn}" escapeXml="false"/>
|
<%-- <br><br>--%>
|
||||||
</div>
|
<%-- <c:out value="${clauseList[0].stplatCn}" escapeXml="false"/>--%>
|
||||||
|
<%-- </div>--%>
|
||||||
<div class="userForm">
|
<div class="userForm">
|
||||||
<div class="userForm__inputBox">
|
<div class="userForm__inputBox">
|
||||||
<div class="userForm__inputBox__item">
|
<div class="userForm__inputBox__item">
|
||||||
|
|||||||
@@ -296,11 +296,13 @@
|
|||||||
<div class="microModal__inner">
|
<div class="microModal__inner">
|
||||||
<form id="bbsRegForm">
|
<form id="bbsRegForm">
|
||||||
<input type='hidden' name='bbsTyCd' id='bbsTyCd' value='<c:out value="${bbsInfo.bbsTyCd}"/>'>
|
<input type='hidden' name='bbsTyCd' id='bbsTyCd' value='<c:out value="${bbsInfo.bbsTyCd}"/>'>
|
||||||
<div class="refund-clause ck-content">
|
<c:if test="${bbsInfo.bbsTyCd eq '12'}">
|
||||||
<c:out value="${clauseList[0].stplatNm}" escapeXml="false"/>
|
<div class="refund-clause ck-content">
|
||||||
<br><br>
|
<c:out value="${clauseList[0].stplatNm}" escapeXml="false"/>
|
||||||
<c:out value="${clauseList[0].stplatCn}" escapeXml="false"/>
|
<br><br>
|
||||||
</div>
|
<c:out value="${clauseList[0].stplatCn}" escapeXml="false"/>
|
||||||
|
</div>
|
||||||
|
</c:if>
|
||||||
<div class="userForm">
|
<div class="userForm">
|
||||||
<div class="userForm__inputBox">
|
<div class="userForm__inputBox">
|
||||||
<div class="userForm__inputBox__item">
|
<div class="userForm__inputBox__item">
|
||||||
|
|||||||
@@ -58,6 +58,9 @@
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 화면 최상단으로 스크롤
|
||||||
|
$("html, body").animate({ scrollTop: 0 }, 400);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -86,14 +89,14 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- 하단 탭바 -->
|
<!-- 하단 탭바 -->
|
||||||
<jsp:include page="/WEB-INF/views/comm/mobile/TabBar.jsp"/>
|
<%-- <jsp:include page="/WEB-INF/views/comm/mobile/TabBar.jsp"/>--%>
|
||||||
|
|
||||||
<!-- 메인 컨텐츠 -->
|
<!-- 메인 컨텐츠 -->
|
||||||
<div class="content-wrap">
|
<div class="content-wrap">
|
||||||
<main class="main">
|
<main class="main">
|
||||||
<div class="sub-page">
|
<div class="sub-page">
|
||||||
<div class="sub-box">
|
<div class="sub-box">
|
||||||
<div class="ck-content">
|
<div class="ck-content" style="background-color: #f8f9fB;">
|
||||||
<c:out value="${ resultMap.sopmalInfo[0].subsvcGuidanceWords }" escapeXml="false"/>
|
<c:out value="${ resultMap.sopmalInfo[0].subsvcGuidanceWords }" escapeXml="false"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -137,16 +140,13 @@
|
|||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="productDetailInfo">
|
|
||||||
<div class="productDetailInfo__body">
|
<div class="bottomFixedControls">
|
||||||
<button type="button" class="btn full md gray" onclick="openModal('product-option-sheet')">
|
<div class="bottomFixedControls__inner">
|
||||||
|
<button type="button" class="btn outline theme" onclick="openModal('product-option-sheet')">
|
||||||
옵션선택
|
옵션선택
|
||||||
</button>
|
</button>
|
||||||
</div>
|
<button type="button" id="subscribeBtn" class="btn theme">구독하기</button>
|
||||||
</div>
|
|
||||||
<div class="productDetailInfo">
|
|
||||||
<div class="productDetailInfo__body">
|
|
||||||
<button type="button" class="btn full theme">구매하기</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -114,9 +114,9 @@
|
|||||||
loading.remove();
|
loading.remove();
|
||||||
},
|
},
|
||||||
error:function (request) {
|
error:function (request) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
|
|
||||||
loading.remove();
|
loading.remove();
|
||||||
}
|
}
|
||||||
@@ -249,9 +249,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -301,9 +301,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -654,8 +654,8 @@
|
|||||||
onSuccess();
|
onSuccess();
|
||||||
},
|
},
|
||||||
error: function (request, status, error) {
|
error: function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,9 +56,9 @@
|
|||||||
loading.remove();
|
loading.remove();
|
||||||
},
|
},
|
||||||
error: function (request) {
|
error: function (request) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
|
|
||||||
loading.remove();
|
loading.remove();
|
||||||
}
|
}
|
||||||
@@ -93,9 +93,9 @@
|
|||||||
loading.remove();
|
loading.remove();
|
||||||
},
|
},
|
||||||
error:function (request) {
|
error:function (request) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
|
|
||||||
loading.remove();
|
loading.remove();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -109,9 +109,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function(request, status, error) {
|
error:function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -158,9 +158,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -259,8 +259,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (request, status, error) {
|
error: function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
$("#message.errorMsg").text(message.errorMsg);
|
$("#message.errorMsg").text(message);
|
||||||
openModal2("custom_alert")
|
openModal2("custom_alert")
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -115,9 +115,9 @@
|
|||||||
loading.remove();
|
loading.remove();
|
||||||
},
|
},
|
||||||
error:function (request) {
|
error:function (request) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
|
|
||||||
loading.remove();
|
loading.remove();
|
||||||
}
|
}
|
||||||
@@ -290,9 +290,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -345,9 +345,9 @@
|
|||||||
fn_get_ordr_dlvy_list(1);
|
fn_get_ordr_dlvy_list(1);
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -705,8 +705,8 @@
|
|||||||
onSuccess();
|
onSuccess();
|
||||||
},
|
},
|
||||||
error: function (request, status, error) {
|
error: function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,9 +107,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function(request, status, error) {
|
error:function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -159,9 +159,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -272,6 +272,8 @@
|
|||||||
dlvylc['recpntNm'] = data.recpntNm;
|
dlvylc['recpntNm'] = data.recpntNm;
|
||||||
dlvylc['recpntMbtlnb'] = data.mbtlnb;
|
dlvylc['recpntMbtlnb'] = data.mbtlnb;
|
||||||
dlvylc['dlvylcZip'] = data.postcode;
|
dlvylc['dlvylcZip'] = data.postcode;
|
||||||
|
dlvylc['dlvylcAreaCd'] = data.dlvylcAreaCd;
|
||||||
|
dlvylc['prefcd'] = data.prefcd;
|
||||||
dlvylc['dlvylcAdresDvCd'] = data.addressType;
|
dlvylc['dlvylcAdresDvCd'] = data.addressType;
|
||||||
dlvylc['dlvylcLnbAdres'] = data.jibunAddress;
|
dlvylc['dlvylcLnbAdres'] = data.jibunAddress;
|
||||||
dlvylc['dlvylcRnmAdres'] = data.roadAddress;
|
dlvylc['dlvylcRnmAdres'] = data.roadAddress;
|
||||||
@@ -292,8 +294,8 @@
|
|||||||
onSuccess();
|
onSuccess();
|
||||||
},
|
},
|
||||||
error: function (request, status, error) {
|
error: function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -1242,60 +1244,60 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<c:if test="${not empty data.refundList}">
|
<%-- <c:if test="${not empty data.refundList}">--%>
|
||||||
<div class="sub-box">
|
<%-- <div class="sub-box">--%>
|
||||||
<div class="orderDetailProduct">
|
<%-- <div class="orderDetailProduct">--%>
|
||||||
<div class="orderDetailProduct__top" role="button" tabindex="0">
|
<%-- <div class="orderDetailProduct__top" role="button" tabindex="0">--%>
|
||||||
<span class="orderDetailProduct__top__title">무효/취소/반품 내역</span>
|
<%-- <span class="orderDetailProduct__top__title">무효/취소/반품 내역</span>--%>
|
||||||
<span class="orderDetailProduct__top__chevron"></span>
|
<%-- <span class="orderDetailProduct__top__chevron"></span>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
<div class="orderDetail__content">
|
<%-- <div class="orderDetail__content">--%>
|
||||||
<div class="orderDetail__body">
|
<%-- <div class="orderDetail__body">--%>
|
||||||
<div class="table-wrapper orderDetail__table orderDetail__table--price">
|
<%-- <div class="table-wrapper orderDetail__table orderDetail__table--price">--%>
|
||||||
<table class="table">
|
<%-- <table class="table">--%>
|
||||||
<colgroup>
|
<%-- <colgroup>--%>
|
||||||
<col style="width: 40%">
|
<%-- <col style="width: 40%">--%>
|
||||||
<col style="width: auto">
|
<%-- <col style="width: auto">--%>
|
||||||
<col style="width: auto">
|
<%-- <col style="width: auto">--%>
|
||||||
</colgroup>
|
<%-- </colgroup>--%>
|
||||||
<tbody>
|
<%-- <tbody>--%>
|
||||||
<c:forEach var="refund" items="${data.refundList}">
|
<%-- <c:forEach var="refund" items="${data.refundList}">--%>
|
||||||
<tr>
|
<%-- <tr>--%>
|
||||||
<th colspan="2">
|
<%-- <th colspan="2">--%>
|
||||||
<strong>
|
<%-- <strong>--%>
|
||||||
<c:out value="${refund.refundTyNm}"/>
|
<%-- <c:out value="${refund.refundTyNm}"/>--%>
|
||||||
(<c:out value="${refund.refundProcsSttusNm }"/> <c:out value="${refund.orderRefundInnb}"/>)
|
<%-- (<c:out value="${refund.refundProcsSttusNm }"/> <c:out value="${refund.orderRefundInnb}"/>)--%>
|
||||||
</strong>
|
<%-- </strong>--%>
|
||||||
</th>
|
<%-- </th>--%>
|
||||||
<td><c:if test = "${order.ordrSttusCd ne '95'}"><button type="button" class="orderListItem__top__more" onclick="fn_move_dtlupdt('<c:out value="${refund.orderRefundInnb}"/>','<c:out value="${refund.ordrInnb}"/>');">상세보기</button></c:if></td>
|
<%-- <td><c:if test = "${order.ordrSttusCd ne '95'}"><button type="button" class="orderListItem__top__more" onclick="fn_move_dtlupdt('<c:out value="${refund.orderRefundInnb}"/>','<c:out value="${refund.ordrInnb}"/>');">상세보기</button></c:if></td>--%>
|
||||||
</tr>
|
<%-- </tr>--%>
|
||||||
<tr>
|
<%-- <tr>--%>
|
||||||
<th>접수일시</th>
|
<%-- <th>접수일시</th>--%>
|
||||||
<td colspan="2"><c:out value="${refund.sumRefundReqstDt}"/></td>
|
<%-- <td colspan="2"><c:out value="${refund.sumRefundReqstDt}"/></td>--%>
|
||||||
</tr>
|
<%-- </tr>--%>
|
||||||
<c:if test = "${not empty refund.sumRefundComptDt}">
|
<%-- <c:if test = "${not empty refund.sumRefundComptDt}">--%>
|
||||||
<tr>
|
<%-- <tr>--%>
|
||||||
<th> 처리일시</th>
|
<%-- <th> 처리일시</th>--%>
|
||||||
<td colspan="2"><c:out value="${refund.sumRefundComptDt}"/></td>
|
<%-- <td colspan="2"><c:out value="${refund.sumRefundComptDt}"/></td>--%>
|
||||||
</tr>
|
<%-- </tr>--%>
|
||||||
</c:if>
|
<%-- </c:if>--%>
|
||||||
<tr>
|
<%-- <tr>--%>
|
||||||
<th>처리수량</th>
|
<%-- <th>처리수량</th>--%>
|
||||||
<td colspan="2"><fmt:formatNumber value="${refund.refundQy}" pattern="#,###"/>개</td>
|
<%-- <td colspan="2"><fmt:formatNumber value="${refund.refundQy}" pattern="#,###"/>개</td>--%>
|
||||||
</tr>
|
<%-- </tr>--%>
|
||||||
<tr style="border-bottom: 1px solid #e9ecef;">
|
<%-- <tr style="border-bottom: 1px solid #e9ecef;">--%>
|
||||||
<th>처리금액</th>
|
<%-- <th>처리금액</th>--%>
|
||||||
<td colspan="2"><fmt:formatNumber value="${refund.refundAmt}" pattern="#,###"/>${curUnit}</td>
|
<%-- <td colspan="2"><fmt:formatNumber value="${refund.refundAmt}" pattern="#,###"/>${curUnit}</td>--%>
|
||||||
</tr>
|
<%-- </tr>--%>
|
||||||
</c:forEach>
|
<%-- </c:forEach>--%>
|
||||||
</tbody>
|
<%-- </tbody>--%>
|
||||||
</table>
|
<%-- </table>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</c:if>
|
<%-- </c:if>--%>
|
||||||
<div class="fullBtnSection">
|
<div class="fullBtnSection">
|
||||||
<button type="button" onclick="fn_go_ordr_list('${order.sopmalCd}', '${order.ordrInnb}')" class="btn md outline full">목록</button>
|
<button type="button" onclick="fn_go_ordr_list('${order.sopmalCd}', '${order.ordrInnb}')" class="btn md outline full">목록</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -286,9 +286,9 @@
|
|||||||
$("#btnSetleCancl").prop('disabled',false);
|
$("#btnSetleCancl").prop('disabled',false);
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
$("#btnSetleCancl").prop('disabled',false);
|
$("#btnSetleCancl").prop('disabled',false);
|
||||||
}
|
}
|
||||||
}).done( function (data) {
|
}).done( function (data) {
|
||||||
|
|||||||
@@ -385,9 +385,9 @@
|
|||||||
$("#btnReturnRegist").prop("disabled",false);
|
$("#btnReturnRegist").prop("disabled",false);
|
||||||
},
|
},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
$("#btnReturnRegist").prop("disabled",false);
|
$("#btnReturnRegist").prop("disabled",false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -200,6 +200,7 @@
|
|||||||
<div class="sub-page">
|
<div class="sub-page">
|
||||||
<spring:eval expression="@environment.getProperty('sopmalfo.common.fileupload.cdnurl')" var="cdnurl"/>
|
<spring:eval expression="@environment.getProperty('sopmalfo.common.fileupload.cdnurl')" var="cdnurl"/>
|
||||||
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
||||||
|
<spring:eval expression="@environment.getProperty('currency-unit.KR')" var="krUnit"/>
|
||||||
<div class="orderDetail">
|
<div class="orderDetail">
|
||||||
<c:if test="${ not empty resultMap.result.refnd.refundComptDt }">
|
<c:if test="${ not empty resultMap.result.refnd.refundComptDt }">
|
||||||
<div class="detailTop">
|
<div class="detailTop">
|
||||||
@@ -686,6 +687,12 @@
|
|||||||
<span class="comma"><c:out value="${ reTotAmt.rlRefundAmt }"/></span>${curUnit}
|
<span class="comma"><c:out value="${ reTotAmt.rlRefundAmt }"/></span>${curUnit}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>실 환불금액</th>
|
||||||
|
<td>
|
||||||
|
<span class="comma"><c:out value="${ reTotAmt.realRefundAmt }"/></span>${curUnit} [<span class="comma"><c:out value="${ reTotAmt.realWonRefundAmt }"/></span>${krUnit}]
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
@@ -713,6 +720,9 @@
|
|||||||
<input type="hidden" id="pageIndex" name="pageIndex" value="${ paramVO.pageIndex }"/>
|
<input type="hidden" id="pageIndex" name="pageIndex" value="${ paramVO.pageIndex }"/>
|
||||||
<input type="hidden" id="recordCountPerPage" name="recordCountPerPage" value="${ paramVO.recordCountPerPage }"/>
|
<input type="hidden" id="recordCountPerPage" name="recordCountPerPage" value="${ paramVO.recordCountPerPage }"/>
|
||||||
<input type="hidden" id="pageUnit" name="pageUnit" value="${ paramVO.pageUnit }"/>
|
<input type="hidden" id="pageUnit" name="pageUnit" value="${ paramVO.pageUnit }"/>
|
||||||
|
<input type="hidden" name="srchwrd" id="srchwrd" value="${ paramVO.srchwrd }"/>
|
||||||
|
<input type="hidden" name="bgnDt" id="bgnDt" value="${ paramVO.bgnDt }"/>
|
||||||
|
<input type="hidden" name="endDt" id="endDt" value="${ paramVO.endDt }"/>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!-- 푸터 -->
|
<!-- 푸터 -->
|
||||||
|
|||||||
@@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
$(document).ready(function (){
|
$(document).ready(function (){
|
||||||
|
|
||||||
|
fn_set_param();
|
||||||
|
|
||||||
const title = '반품/환불 내역';
|
const title = '반품/환불 내역';
|
||||||
fn_set_header_title(title);
|
fn_set_header_title(title);
|
||||||
|
|
||||||
@@ -70,6 +72,34 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************
|
||||||
|
* 검색조건 세팅
|
||||||
|
******************************************************************/
|
||||||
|
const fn_set_param = function() {
|
||||||
|
const params = ${paramVO};
|
||||||
|
const keys = Object.keys(params);
|
||||||
|
|
||||||
|
for (let i = 0; i < keys.length; i++) {
|
||||||
|
let key = keys[i];
|
||||||
|
let data = params[key];
|
||||||
|
|
||||||
|
if ('bgnDt' == key || 'endDt' == key) {
|
||||||
|
if (!fn_is_empty(data)) {
|
||||||
|
for (let i = 0; i < data.length; i++) {
|
||||||
|
$('#' + key).val(data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ('dateRange' == key) {
|
||||||
|
$('#'+ data).trigger('click');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ('srchwrd' == key) {
|
||||||
|
$('#' + key).val(data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************
|
/**********************************************************
|
||||||
|
|||||||
@@ -115,9 +115,9 @@
|
|||||||
loading.remove();
|
loading.remove();
|
||||||
},
|
},
|
||||||
error:function (request) {
|
error:function (request) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
|
|
||||||
loading.remove();
|
loading.remove();
|
||||||
}
|
}
|
||||||
@@ -163,7 +163,8 @@
|
|||||||
if (row.optnNm != null) {
|
if (row.optnNm != null) {
|
||||||
div += ' <p class="orderListItem__info__option">' + row.optnNm + '</p>';
|
div += ' <p class="orderListItem__info__option">' + row.optnNm + '</p>';
|
||||||
}
|
}
|
||||||
div += ' <p class="orderListItem__info__quantity">' + row.orderCnt + '개<span class="orderListItem__info__dot">·</span><span class="comma">' + (row.setleAmt).toLocaleString() + '</span>' + '${curUnit}';
|
<%--div += ' <p class="orderListItem__info__quantity">' + row.orderCnt + '개<span class="orderListItem__info__dot">·</span><span class="comma">' + (row.setleAmt).toLocaleString() + '</span>' + '${curUnit}';--%>
|
||||||
|
div += ' <p class="orderListItem__info__quantity">' + (row.setleAmt).toLocaleString() + '</span>' + '${curUnit}';
|
||||||
div += ' </p>';
|
div += ' </p>';
|
||||||
div += ' </div>';
|
div += ' </div>';
|
||||||
div += ' </div>';
|
div += ' </div>';
|
||||||
@@ -290,9 +291,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -345,9 +346,9 @@
|
|||||||
fn_get_ordr_dlvy_list(1);
|
fn_get_ordr_dlvy_list(1);
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -705,8 +706,8 @@
|
|||||||
onSuccess();
|
onSuccess();
|
||||||
},
|
},
|
||||||
error: function (request, status, error) {
|
error: function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,9 +107,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function(request, status, error) {
|
error:function(request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -159,9 +159,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function (request, status, error) {
|
error:function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
|
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -271,6 +271,7 @@
|
|||||||
|
|
||||||
dlvylc['recpntNm'] = data.recpntNm;
|
dlvylc['recpntNm'] = data.recpntNm;
|
||||||
dlvylc['recpntMbtlnb'] = data.mbtlnb;
|
dlvylc['recpntMbtlnb'] = data.mbtlnb;
|
||||||
|
dlvylc['dlvylcAreaCd'] = data.dlvylcAreaCd;
|
||||||
dlvylc['dlvylcZip'] = data.postcode;
|
dlvylc['dlvylcZip'] = data.postcode;
|
||||||
dlvylc['dlvylcAdresDvCd'] = data.addressType;
|
dlvylc['dlvylcAdresDvCd'] = data.addressType;
|
||||||
dlvylc['dlvylcLnbAdres'] = data.jibunAddress;
|
dlvylc['dlvylcLnbAdres'] = data.jibunAddress;
|
||||||
@@ -289,11 +290,20 @@
|
|||||||
data: JSON.stringify(dlvylc),
|
data: JSON.stringify(dlvylc),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
onSuccess();
|
let result = JSON.parse(data.resBody.result);
|
||||||
|
if (result != null) {
|
||||||
|
if(result.status == 0) {
|
||||||
|
onSuccess();
|
||||||
|
} else {
|
||||||
|
$("#customAlertCn").text(result.message);
|
||||||
|
closeModal('confirm_updt_alert');
|
||||||
|
openModal2("custom_alert");
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
error: function (request, status, error) {
|
error: function (request, status, error) {
|
||||||
let message = JSON.parse(JSON.parse(request.responseText).resBody.message);
|
let message = JSON.parse(request.responseText).resBody.result;
|
||||||
alert(message.errorMsg);
|
alert(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -422,8 +432,8 @@
|
|||||||
form.submit();
|
form.submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 주문배송 목록 이동 */
|
/* 구독서비스 주문배송 목록 이동 */
|
||||||
const fn_go_ordr_list = function (sopmalCd, ordrInnb) {
|
const fn_go_subsvc_ordr_list = function (sopmalCd, ordrInnb) {
|
||||||
const form = $("#newForm");
|
const form = $("#newForm");
|
||||||
form.submit();
|
form.submit();
|
||||||
}
|
}
|
||||||
@@ -659,7 +669,7 @@
|
|||||||
<input type="hidden" id="orderReInnb" name="orderReInnb"/>
|
<input type="hidden" id="orderReInnb" name="orderReInnb"/>
|
||||||
<input type="hidden" id="refundOrdrInnb" name="ordrInnb"/>
|
<input type="hidden" id="refundOrdrInnb" name="ordrInnb"/>
|
||||||
</form>
|
</form>
|
||||||
<form id="newForm" method="post" action="/sopmal/mpage/ordr/selectMbrOrdrListInqire">
|
<form id="newForm" method="post" action="/sopmal/mpage/ordr/selectMbrSubsvcOrdrListInqireRForm">
|
||||||
<input type = "hidden" name = "bgnDt" value = "<c:out value = "${vo.bgnDt}"/>" />
|
<input type = "hidden" name = "bgnDt" value = "<c:out value = "${vo.bgnDt}"/>" />
|
||||||
<input type = "hidden" name = "endDt" value = "<c:out value = "${vo.endDt}"/>" />
|
<input type = "hidden" name = "endDt" value = "<c:out value = "${vo.endDt}"/>" />
|
||||||
<input type = "hidden" name = "srchwrd" value = "<c:out value = "${vo.srchwrd}"/>" />
|
<input type = "hidden" name = "srchwrd" value = "<c:out value = "${vo.srchwrd}"/>" />
|
||||||
@@ -815,64 +825,65 @@
|
|||||||
</c:forEach>
|
</c:forEach>
|
||||||
</c:if>
|
</c:if>
|
||||||
<%--주문취소, 결제취소시 미노출--%>
|
<%--주문취소, 결제취소시 미노출--%>
|
||||||
<c:if test = "${order.ordrSttusCd ne '85' && order.ordrSttusCd ne '95'}">
|
<%--적립금 표시 제거--%>
|
||||||
<div class="sub-box">
|
<%-- <c:if test = "${order.ordrSttusCd ne '85' && order.ordrSttusCd ne '95'}">--%>
|
||||||
<div class="orderDetailProduct">
|
<%-- <div class="sub-box">--%>
|
||||||
<div class="orderDetailProduct__top" role="button" tabindex="0">
|
<%-- <div class="orderDetailProduct">--%>
|
||||||
<span class="orderDetailProduct__top__title">
|
<%-- <div class="orderDetailProduct__top" role="button" tabindex="0">--%>
|
||||||
적립금<%--<span class="misc">(최대 390원)</span>--%>
|
<%-- <span class="orderDetailProduct__top__title">--%>
|
||||||
</span>
|
<%-- 적립금<%–<span class="misc">(최대 390원)</span>–%>--%>
|
||||||
<span class="orderDetailProduct__top__chevron"></span>
|
<%-- </span>--%>
|
||||||
</div>
|
<%-- <span class="orderDetailProduct__top__chevron"></span>--%>
|
||||||
<div class="orderDetail__content">
|
<%-- </div>--%>
|
||||||
<div class="orderDetail__body">
|
<%-- <div class="orderDetail__content">--%>
|
||||||
<div class="table-wrapper orderDetail__table">
|
<%-- <div class="orderDetail__body">--%>
|
||||||
<table class="table">
|
<%-- <div class="table-wrapper orderDetail__table">--%>
|
||||||
<colgroup>
|
<%-- <table class="table">--%>
|
||||||
<col style="width: 40%">
|
<%-- <colgroup>--%>
|
||||||
<col style="width: 60%">
|
<%-- <col style="width: 40%">--%>
|
||||||
</colgroup>
|
<%-- <col style="width: 60%">--%>
|
||||||
<tbody>
|
<%-- </colgroup>--%>
|
||||||
<tr>
|
<%-- <tbody>--%>
|
||||||
<th>구매확정 시 적립예정</th>
|
<%-- <tr>--%>
|
||||||
<td>마일리지 <em><fmt:formatNumber value="${data.mlgAccmlAmt}" pattern="#,###"/>점</em></td>
|
<%-- <th>구매확정 시 적립예정</th>--%>
|
||||||
</tr>
|
<%-- <td>마일리지 <em><fmt:formatNumber value="${data.mlgAccmlAmt}" pattern="#,###"/>점</em></td>--%>
|
||||||
<tr>
|
<%-- </tr>--%>
|
||||||
<th>리뷰작성 시 적립예정</th>
|
<%-- <tr>--%>
|
||||||
<td>
|
<%-- <th>리뷰작성 시 적립예정</th>--%>
|
||||||
<c:forEach var="ntc" items="${data.mlgAccmlNtcList}" varStatus="status">
|
<%-- <td>--%>
|
||||||
<c:choose>
|
<%-- <c:forEach var="ntc" items="${data.mlgAccmlNtcList}" varStatus="status">--%>
|
||||||
<c:when test="${'06' == ntc.bbsTyCd}">
|
<%-- <c:choose>--%>
|
||||||
<c:if test="${not empty ntc.gnrlRvwAmt}">
|
<%-- <c:when test="${'06' == ntc.bbsTyCd}">--%>
|
||||||
일반리뷰 <em><c:out value="${ntc.gnrlRvwAmt}"/>점</em> 적립
|
<%-- <c:if test="${not empty ntc.gnrlRvwAmt}">--%>
|
||||||
</c:if>
|
<%-- 일반리뷰 <em><c:out value="${ntc.gnrlRvwAmt}"/>점</em> 적립--%>
|
||||||
<c:if test="${not empty ntc.photoRvwAmt}">
|
<%-- </c:if>--%>
|
||||||
<br/>포토리뷰 <em><c:out value="${ntc.photoRvwAmt}"/>점</em> 적립
|
<%-- <c:if test="${not empty ntc.photoRvwAmt}">--%>
|
||||||
</c:if>
|
<%-- <br/>포토리뷰 <em><c:out value="${ntc.photoRvwAmt}"/>점</em> 적립--%>
|
||||||
</c:when>
|
<%-- </c:if>--%>
|
||||||
<c:otherwise>
|
<%-- </c:when>--%>
|
||||||
<br/>한달리뷰 <em><c:out value="${ntc.photoRvwAmt}"/>점</em> 적립
|
<%-- <c:otherwise>--%>
|
||||||
</c:otherwise>
|
<%-- <br/>한달리뷰 <em><c:out value="${ntc.photoRvwAmt}"/>점</em> 적립--%>
|
||||||
</c:choose>
|
<%-- </c:otherwise>--%>
|
||||||
<c:if test="${not empty ntc.bgnDe && not empty ntc.endDe}">
|
<%-- </c:choose>--%>
|
||||||
<fmt:parseDate value="${ntc.bgnDe}" var="bgnDeDate" pattern="yyyyMMdd"/>
|
<%-- <c:if test="${not empty ntc.bgnDe && not empty ntc.endDe}">--%>
|
||||||
<fmt:formatDate value="${bgnDeDate}" var="bgnDe" pattern="yyyy-MM-dd"/>
|
<%-- <fmt:parseDate value="${ntc.bgnDe}" var="bgnDeDate" pattern="yyyyMMdd"/>--%>
|
||||||
<fmt:parseDate value="${ntc.endDe}" var="endDeDate" pattern="yyyyMMdd"/>
|
<%-- <fmt:formatDate value="${bgnDeDate}" var="bgnDe" pattern="yyyy-MM-dd"/>--%>
|
||||||
<fmt:formatDate value="${endDeDate}" var="endDe" pattern="yyyy-MM-dd"/>
|
<%-- <fmt:parseDate value="${ntc.endDe}" var="endDeDate" pattern="yyyyMMdd"/>--%>
|
||||||
|
<%-- <fmt:formatDate value="${endDeDate}" var="endDe" pattern="yyyy-MM-dd"/>--%>
|
||||||
<br/>(<c:out value="${bgnDe}"/> ~ <c:out value="${endDe}"/> 까지 <i><c:out value="${ntc.aditMlgAmt}"/>점</i> 추가 적립)
|
<%-- --%>
|
||||||
</c:if>
|
<%-- <br/>(<c:out value="${bgnDe}"/> ~ <c:out value="${endDe}"/> 까지 <i><c:out value="${ntc.aditMlgAmt}"/>점</i> 추가 적립)--%>
|
||||||
</c:forEach>
|
<%-- </c:if>--%>
|
||||||
</td>
|
<%-- </c:forEach>--%>
|
||||||
</tr>
|
<%-- </td>--%>
|
||||||
</tbody>
|
<%-- </tr>--%>
|
||||||
</table>
|
<%-- </tbody>--%>
|
||||||
</div>
|
<%-- </table>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</c:if>
|
<%-- </div>--%>
|
||||||
|
<%-- </c:if>--%>
|
||||||
|
|
||||||
<div class="sub-box">
|
<div class="sub-box">
|
||||||
<div class="orderDetailProduct">
|
<div class="orderDetailProduct">
|
||||||
@@ -1137,62 +1148,62 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<c:if test="${not empty data.refundList}">
|
<%-- <c:if test="${not empty data.refundList}">--%>
|
||||||
<div class="sub-box">
|
<%-- <div class="sub-box">--%>
|
||||||
<div class="orderDetailProduct">
|
<%-- <div class="orderDetailProduct">--%>
|
||||||
<div class="orderDetailProduct__top" role="button" tabindex="0">
|
<%-- <div class="orderDetailProduct__top" role="button" tabindex="0">--%>
|
||||||
<span class="orderDetailProduct__top__title">무효/취소/반품 내역</span>
|
<%-- <span class="orderDetailProduct__top__title">무효/취소/반품 내역</span>--%>
|
||||||
<span class="orderDetailProduct__top__chevron"></span>
|
<%-- <span class="orderDetailProduct__top__chevron"></span>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
<div class="orderDetail__content">
|
<%-- <div class="orderDetail__content">--%>
|
||||||
<div class="orderDetail__body">
|
<%-- <div class="orderDetail__body">--%>
|
||||||
<div class="table-wrapper orderDetail__table orderDetail__table--price">
|
<%-- <div class="table-wrapper orderDetail__table orderDetail__table--price">--%>
|
||||||
<table class="table">
|
<%-- <table class="table">--%>
|
||||||
<colgroup>
|
<%-- <colgroup>--%>
|
||||||
<col style="width: 40%">
|
<%-- <col style="width: 40%">--%>
|
||||||
<col style="width: auto">
|
<%-- <col style="width: auto">--%>
|
||||||
<col style="width: auto">
|
<%-- <col style="width: auto">--%>
|
||||||
</colgroup>
|
<%-- </colgroup>--%>
|
||||||
<tbody>
|
<%-- <tbody>--%>
|
||||||
<c:forEach var="refund" items="${data.refundList}">
|
<%-- <c:forEach var="refund" items="${data.refundList}">--%>
|
||||||
<tr>
|
<%-- <tr>--%>
|
||||||
<th colspan="2">
|
<%-- <th colspan="2">--%>
|
||||||
<strong>
|
<%-- <strong>--%>
|
||||||
<c:out value="${refund.refundTyNm}"/>
|
<%-- <c:out value="${refund.refundTyNm}"/>--%>
|
||||||
(<c:out value="${refund.refundProcsSttusNm }"/> <c:out value="${refund.orderRefundInnb}"/>)
|
<%-- (<c:out value="${refund.refundProcsSttusNm }"/> <c:out value="${refund.orderRefundInnb}"/>)--%>
|
||||||
</strong>
|
<%-- </strong>--%>
|
||||||
</th>
|
<%-- </th>--%>
|
||||||
<td><c:if test = "${order.ordrSttusCd ne '95'}"><button type="button" class="orderListItem__top__more" onclick="fn_move_dtlupdt('<c:out value="${refund.orderRefundInnb}"/>','<c:out value="${refund.ordrInnb}"/>');">상세보기</button></c:if></td>
|
<%-- <td><c:if test = "${order.ordrSttusCd ne '95'}"><button type="button" class="orderListItem__top__more" onclick="fn_move_dtlupdt('<c:out value="${refund.orderRefundInnb}"/>','<c:out value="${refund.ordrInnb}"/>');">상세보기</button></c:if></td>--%>
|
||||||
</tr>
|
<%-- </tr>--%>
|
||||||
<tr>
|
<%-- <tr>--%>
|
||||||
<th>접수일시</th>
|
<%-- <th>접수일시</th>--%>
|
||||||
<td colspan="2"><c:out value="${refund.sumRefundReqstDt}"/></td>
|
<%-- <td colspan="2"><c:out value="${refund.sumRefundReqstDt}"/></td>--%>
|
||||||
</tr>
|
<%-- </tr>--%>
|
||||||
<c:if test = "${not empty refund.sumRefundComptDt}">
|
<%-- <c:if test = "${not empty refund.sumRefundComptDt}">--%>
|
||||||
<tr>
|
<%-- <tr>--%>
|
||||||
<th> 처리일시</th>
|
<%-- <th> 처리일시</th>--%>
|
||||||
<td colspan="2"><c:out value="${refund.sumRefundComptDt}"/></td>
|
<%-- <td colspan="2"><c:out value="${refund.sumRefundComptDt}"/></td>--%>
|
||||||
</tr>
|
<%-- </tr>--%>
|
||||||
</c:if>
|
<%-- </c:if>--%>
|
||||||
<tr>
|
<%-- <tr>--%>
|
||||||
<th>처리수량</th>
|
<%-- <th>처리수량</th>--%>
|
||||||
<td colspan="2"><fmt:formatNumber value="${refund.refundQy}" pattern="#,###"/>개</td>
|
<%-- <td colspan="2"><fmt:formatNumber value="${refund.refundQy}" pattern="#,###"/>개</td>--%>
|
||||||
</tr>
|
<%-- </tr>--%>
|
||||||
<tr style="border-bottom: 1px solid #e9ecef;">
|
<%-- <tr style="border-bottom: 1px solid #e9ecef;">--%>
|
||||||
<th>처리금액</th>
|
<%-- <th>처리금액</th>--%>
|
||||||
<td colspan="2"><fmt:formatNumber value="${refund.refundAmt}" pattern="#,###"/>${curUnit}</td>
|
<%-- <td colspan="2"><fmt:formatNumber value="${refund.refundAmt}" pattern="#,###"/>${curUnit}</td>--%>
|
||||||
</tr>
|
<%-- </tr>--%>
|
||||||
</c:forEach>
|
<%-- </c:forEach>--%>
|
||||||
</tbody>
|
<%-- </tbody>--%>
|
||||||
</table>
|
<%-- </table>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</div>
|
<%-- </div>--%>
|
||||||
</c:if>
|
<%-- </c:if>--%>
|
||||||
<div class="fullBtnSection">
|
<div class="fullBtnSection">
|
||||||
<button type="button" onclick="fn_go_ordr_list('${order.sopmalCd}', '${order.ordrInnb}')" class="btn md outline full">목록</button>
|
<button type="button" onclick="fn_go_subsvc_ordr_list('${order.sopmalCd}', '${order.ordrInnb}')" class="btn md outline full">목록</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2488,6 +2488,16 @@
|
|||||||
|
|
||||||
let setle = {};
|
let setle = {};
|
||||||
|
|
||||||
|
let dlvylc = JSON.parse(localStorage.getItem('dlvylc'));
|
||||||
|
|
||||||
|
if (!fn_is_empty(dlvylc)) {
|
||||||
|
dlvylc = Object.assign({}, fn_get_dlvylc_data(), dlvylc);
|
||||||
|
} else {
|
||||||
|
dlvylc = fn_get_dlvylc_data();
|
||||||
|
}
|
||||||
|
|
||||||
|
order['shipping'] = dlvylc;
|
||||||
|
|
||||||
setle['sopmalCd'] = $('#sopmalCd').val();
|
setle['sopmalCd'] = $('#sopmalCd').val();
|
||||||
setle['dlvylc'] = JSON.parse(localStorage.getItem('dlvylc'));
|
setle['dlvylc'] = JSON.parse(localStorage.getItem('dlvylc'));
|
||||||
setle['goodsList'] = JSON.parse(localStorage.getItem('goodsList'));
|
setle['goodsList'] = JSON.parse(localStorage.getItem('goodsList'));
|
||||||
|
|||||||
Reference in New Issue
Block a user