|
@@ -1,5 +1,7 @@
|
|
|
package com.ym.mec.biz.service.impl;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.ym.mec.biz.dal.dao.*;
|
|
|
import com.ym.mec.biz.dal.dto.PageInfoOrder;
|
|
|
import com.ym.mec.biz.dal.dto.StudentPaymentRouteOrderDto;
|
|
@@ -120,7 +122,11 @@ public class StudentPaymentRouteOrderServiceImpl extends BaseServiceImpl<Long, S
|
|
|
hasRouteAmount = hasRouteAmount.add(actualAmount);
|
|
|
i++;
|
|
|
|
|
|
- // String agreeCostPrice = goods.getAgreeCostPrice() == null ? BigDecimal.ZERO : goods.getAgreeCostPrice();
|
|
|
+ Map<String, BigDecimal> CostMap = new HashMap<>();
|
|
|
+ CostMap.put("sellCost",goods.getDiscountPrice());
|
|
|
+ if(goods.getAgreeCostPrice() != null){
|
|
|
+ CostMap.put("SellCost2",goods.getAgreeCostPrice());
|
|
|
+ }
|
|
|
|
|
|
SellOrder sellOrder = new SellOrder();
|
|
|
sellOrder.setOrganId(studentPaymentRouteOrderDto.getOrganId());
|
|
@@ -132,7 +138,7 @@ public class StudentPaymentRouteOrderServiceImpl extends BaseServiceImpl<Long, S
|
|
|
sellOrder.setBalanceAmount(BigDecimal.ZERO);
|
|
|
sellOrder.setExpectAmount(actualAmount);
|
|
|
sellOrder.setSellCost(goods.getDiscountPrice().multiply(new BigDecimal(goodsMap.getValue())));
|
|
|
- //sellOrder.setSellCost2(agreeCostPrice.multiply(new BigDecimal(goodsMap.getValue())));
|
|
|
+ sellOrder.setSellCost2(JSON.toJSONString(CostMap));
|
|
|
sellOrder.setNum(goodsMap.getValue());
|
|
|
sellOrder.setUserId(studentPaymentRouteOrderDto.getUserId());
|
|
|
sellOrder.setPaymentChannel(studentPaymentRouteOrderDto.getPaymentChannel());
|