|
@@ -197,6 +197,10 @@ public class CmPayShopController extends BaseController {
|
|
|
|
|
|
@RequestMapping("saveChangePayShopAmount")
|
|
|
public String saveChangePayShopAmount(NewShopOrder newShopOrder) {
|
|
|
+ /**
|
|
|
+ * couponAmount 优惠券优惠金额
|
|
|
+ * promotionFullReduction 促销满减优惠(不考虑凑单促销)
|
|
|
+ */
|
|
|
String shopOrderID = newShopOrder.getId();
|
|
|
Double freight = newShopOrder.getShopPostFee();
|
|
|
Double thirdPartyFee = newShopOrder.getShopOtherFee() == null ? 0d : newShopOrder.getShopOtherFee();
|
|
@@ -388,8 +392,10 @@ public class CmPayShopController extends BaseController {
|
|
|
cmChangePayShopProduct.setSingleShouldPayTotalTax(product.getSingleShouldPayTotalTax());
|
|
|
cmChangePayShopProductService.save(cmChangePayShopProduct);
|
|
|
}
|
|
|
- shopOrder.setShopTaxFee(totalTaxesFee); //总税费
|
|
|
- shopOrder.setShopProductAmount(totalCostFee); //商品费
|
|
|
+ //总税费
|
|
|
+ shopOrder.setShopTaxFee(totalTaxesFee);
|
|
|
+ //商品费 - 优惠券 - 促销满减优惠
|
|
|
+ shopOrder.setShopProductAmount(MathUtil.sub(totalCostFee , MathUtil.add(shopOrder.getCouponAmount(), shopOrder.getPromotionFullReduction())).doubleValue());
|
|
|
//}
|
|
|
// 比例成本
|
|
|
/*if ("2".equals(costType)) {
|