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