| | |
| | | if (Objects.isNull(withdrawRecord) ) { |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | withdrawRecord.setBankInfo(Constants.getBankInfo(withdrawRecord.getBankName(),withdrawRecord.getBankAccount())); |
| | | if(!Constants.equalsInteger(withdrawRecord.getStatus(), Constants.ZERO)){ |
| | | String path = systemDictDataBiz.queryByCode(Constants.OSS, Constants.RESOURCE_PATH).getCode() + |
| | | systemDictDataBiz.queryByCode(Constants.OSS, Constants.TRANSFER_FILE).getCode(); |
| | |
| | | |
| | | |
| | | @Override |
| | | public void withdrawApply(WithdrawApplyRequest request, IntegralService integralService){ |
| | | public Integer withdrawApply(WithdrawApplyRequest request, IntegralService integralService){ |
| | | if (Objects.isNull( request) |
| | | || request.getMemberId() == null |
| | | || request.getBankId() == null |
| | |
| | | dealIntegralRequest.setMemberId(request.getMemberId()); |
| | | dealIntegralRequest.setDealType(Constants.ONE); |
| | | integralService.dealShopAmount(dealIntegralRequest); |
| | | return withdrawRecord.getId(); |
| | | } |
| | | |
| | | |