修复余额为0不能支付的问题

This commit is contained in:
hupeng
2020-09-09 20:04:30 +08:00
parent 0231aeac9f
commit fca99c7248

View File

@ -1520,7 +1520,7 @@ public class YxStoreOrderServiceImpl extends BaseServiceImpl<StoreOrderMapper, Y
YxUserQueryVo userInfo = userService.getYxUserById(uid);
if(userInfo.getNowMoney().compareTo(orderInfo.getPayPrice()) <= 0){
if(userInfo.getNowMoney().compareTo(orderInfo.getPayPrice()) < 0){
throw new YshopException("余额不足");
}