修改demo bug

This commit is contained in:
idefav 2018-07-20 20:01:20 +08:00
parent 2b61d59129
commit f1c60762c5

View File

@ -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("余额不足!");
}