구독서비스 결제 화면
This commit is contained in:
@@ -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.BOPurchsService;
|
||||
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.service.BOMbrService;
|
||||
import com.wb.domainserver.domain.gcone.mbr.mbr.vo.BOMbrAppnVO;
|
||||
@@ -144,6 +146,9 @@ public class BOOrdrService{
|
||||
@Autowired
|
||||
private BOOrderNoService orderNoService;
|
||||
|
||||
@Autowired
|
||||
private BOSubsvcService subsvcService;
|
||||
|
||||
@Autowired
|
||||
private PropertyService propertyService;
|
||||
|
||||
@@ -3807,6 +3812,50 @@ public class BOOrdrService{
|
||||
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);
|
||||
|
||||
List<LinkedHashMap> goodsList = (List<LinkedHashMap>) param.get("goodsList");
|
||||
log.debug("goodsList : {}", goodsList);
|
||||
|
||||
BOSubsvcVO subsvcVO = new BOSubsvcVO();
|
||||
subsvcVO.setSubsvcInnb((String) param.get("subsvcInnb"));
|
||||
subsvcVO.setSopmalCd((String) param.get("sopmalCd"));
|
||||
DataMap subsvcDetail = subsvcService.selectBOSubsvcDetail(subsvcVO);
|
||||
goodsAmt = (BigDecimal) subsvcDetail.get("subsvcCt");
|
||||
|
||||
// ############################################## 결제 예정 금액 적용 ##############################################
|
||||
setleExpectAmtMap.put("goodsAmt", goodsAmt.intValue());
|
||||
|
||||
content.put("setleExpectAmt", setleExpectAmtMap);
|
||||
content.put("goodsList", goodsList);
|
||||
|
||||
return content;
|
||||
}
|
||||
|
||||
/**
|
||||
* 사용자 > 상품 > 구매/결제 > 회원구매하기 > 구매 정보 등록
|
||||
* @param param
|
||||
|
||||
Reference in New Issue
Block a user