update lianlian启动金额

This commit is contained in:
2024-05-09 10:15:44 +08:00
parent 4c4c98d0c0
commit 66ccbb2ff1
8 changed files with 19 additions and 14 deletions

View File

@@ -2405,11 +2405,11 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
if (platformTesterVO != null && StringUtils.equals(Constants.ONE, platformTesterVO.getStatus())) {
// 是平台测试员
accountBalance = Constants.whitelistDefaultAmount;
accountBalance = Constants.WHITELIST_DEFAULT_AMOUNT;
payMode = OrderPayModeEnum.PAYMENT_OF_WHITELIST.getValue();
} else if (pileStationWhitelist != null) {
// 站点白名单
accountBalance = Constants.whitelistDefaultAmount;
accountBalance = Constants.WHITELIST_DEFAULT_AMOUNT;
payMode = OrderPayModeEnum.PAYMENT_OF_WHITELIST.getValue();
} else {
// 通过memberId获取账户余额
@@ -2422,7 +2422,7 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
logger.info("充电桩主动申请启动充电生成订单 余额不足, memberId:{}, MemberVO:{}", dto.getMemberId(), JSON.toJSONString(memberVO));
throw new BusinessException(ReturnCodeEnum.CODE_BALANCE_IS_INSUFFICIENT);
}
BigDecimal defaultAmount = Constants.balancePayMaxAmount;
BigDecimal defaultAmount = Constants.BALANCE_PAY_MAX_AMOUNT;
if (accountBalance.compareTo(defaultAmount) > 0) {
accountBalance = defaultAmount;
}