mirror of
https://gitee.com/dromara/hmily.git
synced 2024-12-05 04:39:09 +08:00
修改demo bug
This commit is contained in:
parent
2b61d59129
commit
f1c60762c5
@ -76,7 +76,7 @@ public class PaymentServiceImpl implements PaymentService {
|
||||
|
||||
final Integer inventoryInfo= inventoryClient.findByProductId(order.getProductId());
|
||||
|
||||
if (accountInfo.compareTo(order.getTotalAmount()) <= 0) {
|
||||
if (accountInfo.compareTo(order.getTotalAmount()) < 0) {
|
||||
throw new TccRuntimeException("余额不足!");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user