|
@@ -534,7 +534,7 @@ public class SubmitServiceImpl implements SubmitService {
|
|
|
* todo 协销订单,在添加保存时子订单的协销Id应该保存下单协销的协销Id
|
|
|
* 21年改为保存下单人userId,会对订单后续处理产生疑惑,后续应该继续保存协销id
|
|
|
*/
|
|
|
- shopOrder.setSpId(orderParamBo.getBuyUserId());
|
|
|
+ shopOrder.setSpId(orderParamBo.getServiceProviderId());
|
|
|
}
|
|
|
// 商品总数量
|
|
|
AtomicInteger shopProductCount = new AtomicInteger(0);
|
|
@@ -2422,6 +2422,8 @@ public class SubmitServiceImpl implements SubmitService {
|
|
|
shopOrder.setShopTaxFee(shopTaxFee.get());
|
|
|
// 付供应商 = (商品费 + 运费 + 税费)* 供应商比例
|
|
|
shopOrder.setShouldPayShopAmount(shouldPayShopAmount.get());
|
|
|
+ // 均摊优惠后子订单待支付金额
|
|
|
+ shopOrder.setRealNeedPay(shopOrder.getNeedPayAmount());
|
|
|
|
|
|
orderProductList.forEach(o -> submitMapper.updateOrderProduct(o));
|
|
|
/**
|