|
@@ -718,7 +718,7 @@ public class SubmitServiceImpl implements SubmitService {
|
|
|
if (taxFlag) {
|
|
|
discountTax = MathUtil.div(MathUtil.mul(product.getDiscountPrice(), product.getTaxRate()), 100, 2).doubleValue();
|
|
|
}
|
|
|
- costPrice = MathUtil.div(MathUtil.mul(MathUtil.add(product.getDiscountPrice(), discountTax), product.getCostProportional()), 100).doubleValue();
|
|
|
+ costPrice = MathUtil.div(MathUtil.mul(MathUtil.add(product.getDiscountPrice(), discountTax), product.getCostProportional()), 100, 2).doubleValue();
|
|
|
}
|
|
|
if (null == costPrice) {
|
|
|
return ResponseJson.error("订单商品成本异常!", null);
|