充值金额小于订单金额

This commit is contained in:
wangw 2025-09-29 15:13:47 +08:00
parent 524e3186ad
commit f2dee35c29
1 changed files with 1 additions and 0 deletions

View File

@ -275,6 +275,7 @@ public class PayServiceImpl implements PayService {
.eq(MkShopRechargeDetail::getShopRechargeId, payParam.getRechargeId()));
AssertUtil.isNull(rechargeDetail, "充值配置不存在");
if (orderInfo.getOrderAmount().compareTo(rechargeDetail.getAmount()) < 0) {
log.info("充值金额小于订单金额,充值金额:{} 订单金额:{}", rechargeDetail.getAmount(), orderInfo.getOrderAmount());
return CzgResult.failure("支付失败 充值金额小于订单金额");
}
String payOrderNo = orderInfo.getPlatformType() + IdUtil.getSnowflakeNextId();