|
|
@@ -305,8 +305,8 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
totalPrice = totalPrice.add(g.getGoodsPrice());
|
|
|
|
|
|
}
|
|
|
- BigDecimal zero = new BigDecimal(0.01);
|
|
|
- if(totalPrice.compareTo(zero) == -1){
|
|
|
+ BigDecimal zero = new BigDecimal("0.01");
|
|
|
+ if(totalPrice.compareTo(zero) < 0){
|
|
|
//价格不能小于0.01
|
|
|
totalPrice = zero;
|
|
|
}
|