Commit a50adbe4 by 周晓航

修改bug,存在赠品的情况会被计算2次

parent 367adc5c
......@@ -84,6 +84,9 @@ public class DeliverySdkAdapter {
}
BigDecimal result = BigDecimal.ZERO;
for (ProductBeanV1 p : productList) {
if (p.getIsSendGoods()) {
continue;
}
BigDecimal sum = p.getWeight().multiply(new BigDecimal(p.getNumber()));
BigDecimal comboSum = this.sumWeightByProduct(p.getComboProduct());
BigDecimal materSum = this.sumWeightByProduct(p.getMaterialProduct());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment