update 用户总余额字段名

This commit is contained in:
Guoqs
2024-07-12 17:28:21 +08:00
parent 44ba356bc3
commit 217284e272
7 changed files with 7 additions and 14 deletions

View File

@@ -11,10 +11,8 @@ import com.jsowell.common.core.domain.ykc.RealTimeMonitorData;
import com.jsowell.common.core.domain.ykc.TransactionRecordsData;
import com.jsowell.common.core.redis.RedisCache;
import com.jsowell.common.enums.ykc.*;
import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.util.DateUtils;
import com.jsowell.common.util.StringUtils;
import com.jsowell.common.util.id.IdUtils;
import com.jsowell.pile.domain.*;
import com.jsowell.pile.dto.*;
import com.jsowell.pile.service.*;
@@ -23,7 +21,6 @@ import com.jsowell.pile.vo.uniapp.MemberVO;
import com.jsowell.pile.vo.uniapp.PersonalPileInfoVO;
import com.jsowell.pile.vo.uniapp.PileConnectorDetailVO;
import com.jsowell.pile.vo.web.*;
import com.jsowell.wxpay.dto.WechatSendMsgDTO;
import com.jsowell.wxpay.service.WxAppletRemoteService;
import org.apache.commons.collections4.CollectionUtils;
import org.slf4j.Logger;
@@ -744,7 +741,7 @@ public abstract class AbstractProgramLogic implements InitializingBean {
protected Map<String, BigDecimal> calculateTheAmount(MemberVO memberVO) {
BigDecimal principalBalancePay;
BigDecimal giftBalancePay;
BigDecimal totalAccountAmount = memberVO.getTotalAccountAmount();
BigDecimal totalAccountAmount = memberVO.getTotalBalance();
// 余额支付最大下发200
BigDecimal defaultAmount = Constants.BALANCE_PAY_MAX_AMOUNT;
if (totalAccountAmount.compareTo(defaultAmount) < 0) {

View File

@@ -253,7 +253,7 @@ public class DelayMerchantProgramLogic extends AbstractProgramLogic {
// 查询该会员的余额 在所属运营商的余额
MemberVO memberVO = memberBasicInfoService.queryMemberInfoByMemberId(dto.getMemberId(), merchantId);
// 总余额
BigDecimal totalAccountAmount = memberVO.getTotalAccountAmount();
BigDecimal totalAccountAmount = memberVO.getTotalBalance();
if (totalAccountAmount.compareTo(chargeAmount) < 0) {
// 总余额小于充电金额
throw new BusinessException(ReturnCodeEnum.CODE_BALANCE_IS_INSUFFICIENT);

View File

@@ -237,7 +237,7 @@ public class NotDelayMerchantProgramLogic extends AbstractProgramLogic {
// 查询该会员的余额 在所属运营商的余额
MemberVO memberVO = memberBasicInfoService.queryMemberInfoByMemberId(memberId, merchantId);
// 总余额
BigDecimal totalAccountAmount = memberVO.getTotalAccountAmount();
BigDecimal totalAccountAmount = memberVO.getTotalBalance();
if (totalAccountAmount.compareTo(chargeAmount) < 0) {
// 总余额小于充电金额
throw new BusinessException(ReturnCodeEnum.CODE_BALANCE_IS_INSUFFICIENT);