| | |
| | | private final MallMemberPaymentMapper mallMemberPaymentMapper; |
| | | private final DataDictionaryCustomMapper dataDictionaryCustomMapper; |
| | | private final MallMemberBankMapper mallMemberBankMapper; |
| | | private final MallMemberAlipayMapper mallMemberAlipayMapper; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | if (1 != outsideWith) { |
| | | throw new FebsException("功能升级中"); |
| | | } |
| | | Integer isAuth = mallMember.getIsAuth(); |
| | | |
| | | if (1 != isAuth) { |
| | | throw new FebsException("未实名认证"); |
| | | } |
| | | if (StrUtil.isBlank(mallMember.getTradePassword())) { |
| | | throw new FebsException("未设置支付密码"); |
| | | } |
| | |
| | | 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())){ |
| | |
| | | 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()); |