| | |
| | | if(ObjectUtils.isEmpty(walletBillRecordDO)){ |
| | | throw new ValidationException("提现没有对应的账单信息"); |
| | | } |
| | | walletBillRecordDO.setTransferId(transferReqDTO.getId()); |
| | | //提现金额 |
| | | BigDecimal withdrawAmount = withdrawRecordDO.getAmount(); |
| | | |
| | |
| | | transferReqDTO.setDetails(details); |
| | | try { |
| | | //发起转账 |
| | | paymentV3Service.doBatchTransfer(transferReqDTO, SecurityUtils.getUserId()); |
| | | paymentV3Service.doBatchTransfer(transferReqDTO, SecurityUtils.getUserId()); |
| | | } catch (Exception e) { |
| | | throw new ValidationException(e.getMessage()); |
| | | } |
| | |
| | | //记录转账状态,定时任务定时获取状态并更新钱包交易记录表信息 |
| | | walletBillRecordDO.setRemark("微信商户转账中"); |
| | | walletBillRecordDO.setActualTransferAmount(withdrawAmount); |
| | | walletBillRecordDO.setId(UUIDGenerator.getUUID()); |
| | | walletBillRecordDO.setApproveBy(SecurityUtils.getUserId()); |
| | | walletBillRecordDO.setApproveTime(LocalDateTime.now()); |
| | | walletBillRecordService.updateById(walletBillRecordDO); |
| | | // walletBillRecordMapper.insert(walletBillRecordDO); |
| | | walletBillRecordMapper.updateById(walletBillRecordDO); |
| | | //不需要更新结算单了,此时提现的金额和计算单上的金额不一致 |
| | | } |
| | | } finally { |