mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-24 13:05:11 +08:00
update 用户总余额字段名
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user