xiaoyong931011
2023-09-07 04511f746e0cd35fa18e0877d7861d271eb81e9a
src/main/java/cc/mrbird/febs/mall/service/impl/MallMemberWithdrawServiceImpl.java
@@ -47,6 +47,7 @@
    private final MallMemberPaymentMapper mallMemberPaymentMapper;
    private final DataDictionaryCustomMapper dataDictionaryCustomMapper;
    private final MallMemberBankMapper mallMemberBankMapper;
    private final MallMemberAlipayMapper mallMemberAlipayMapper;
    @Override
    @Transactional(rollbackFor = Exception.class)
@@ -58,7 +59,11 @@
        if (1 != outsideWith) {
            throw new FebsException("功能升级中");
        }
        Integer isAuth = mallMember.getIsAuth();
        if (1 != isAuth) {
            throw new FebsException("未实名认证");
        }
        if (StrUtil.isBlank(mallMember.getTradePassword())) {
            throw new FebsException("未设置支付密码");
        }
@@ -91,9 +96,9 @@
            throw new FebsException("最小提现金额为"+cashOutSettingVo.getMinCashOut().setScale(2,BigDecimal.ROUND_DOWN));
        }
        MallMemberBank mallMemberBank = mallMemberBankMapper.selectById(withdrawalDto.getBankId());
        MallMemberAlipay mallMemberAlipay = mallMemberAlipayMapper.selectById(withdrawalDto.getBankId());
//        MallMemberBank mallMemberBank = mallMemberBankMapper.selectById(withdrawalDto.getBankId());
        if(ObjectUtil.isEmpty(mallMemberBank)){
        if(ObjectUtil.isEmpty(mallMemberAlipay)){
            throw new FebsException("未找到支付宝信息");
        }
//        if(ObjectUtil.isEmpty(mallMemberBank.getBankName())){
@@ -172,7 +177,7 @@
        withdraw.setStatus(1);
        withdraw.setAmountFee(serviceFee);
        withdraw.setRemark(remark);
        withdraw.setWtihdrawTypeId(mallMemberBank.getId());
        withdraw.setWtihdrawTypeId(mallMemberAlipay.getId());
        this.baseMapper.insert(withdraw);
        mallMemberService.addMoneyFlow(memberId, withdrawalDto.getAmount().negate(), MoneyFlowTypeEnum.WITHDRAWAL.getValue(), orderNo, null, null, null, 1, FlowTypeEnum.BALANCE.getValue());