Browse Source

fix 充值

he2802 4 năm trước cách đây
mục cha
commit
4d4ebac8d3

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/order/service/impl/OrderServiceImpl.java

@@ -352,6 +352,8 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
         if(totalPrice.compareTo(zero) < 0){
             //价格不能小于0.01
             totalPrice = zero;
+        }
+        if(totalPrice==null){
             throw new CustomException("金额错误"+totalPrice);
         }
         add.setOrderPrice(totalPrice);