Browse Source

保存订单逻辑

lijun 5 năm trước cách đây
mục cha
commit
c249df761d

+ 1 - 0
src/main/java/com/caimei/service/order/impl/OrderServiceImpl.java

@@ -423,6 +423,7 @@ public class OrderServiceImpl implements OrderService {
 
             /**判断前端传入orderShouldPayFee订单应付金额,和后台计算应付金额对比*/
             double v = payableAmount.subtract(new BigDecimal(orderShouldPayFee)).doubleValue();
+            logger.info(">>>>>payableAmount:"+payableAmount+"orderShouldPayFee:"+orderShouldPayFee);
             if (v < -0.1d || v > 0.1d) {//考虑前端计算不精确
                 return wxJsonModel.error("-1", "订单付款金额异常");
             }