| | |
| | | userWithdrawal.setImgUrlOne(userWithdrawalReq.getIdCardReversePicture()); |
| | | userWithdrawal.setIdCardFrontPicture(userWithdrawalReq.getCopy1()); |
| | | userWithdrawal.setIdCardReversePicture(userWithdrawalReq.getCopy2()); |
| | | userWithdrawal.setHuiFuId((String) resultMap.get("huifu_id")); |
| | | userWithdrawal.setHuifuId((String) resultMap.get("huifu_id")); |
| | | //调用汇付业务入驻接口 |
| | | Map<String, Object> map = douGongBasicDataBiz.userBusinessOpen(userWithdrawal); |
| | | if (!"00000000".equals(map.get("resp_code"))){ |
| | |
| | | UserWithdrawal userWithdrawal1 = userWithdrawalService.selectOne(new EntityWrapper<UserWithdrawal>() |
| | | .eq("phone", userInfo.getPhone()).eq("type", 1) |
| | | .last("LIMIT 1")); |
| | | if(userWithdrawal1==null|| userWithdrawal1.getHuiFuId()==null){ |
| | | if(userWithdrawal1==null|| userWithdrawal1.getHuifuId()==null){ |
| | | return ResultUtil.runErr(); |
| | | } |
| | | UserWithdrawal userWithdrawal = new UserWithdrawal(); |
| | |
| | | userWithdrawal1.setBankName(bankName); |
| | | userWithdrawal1.setImgUrl(idCardFrontPicture); |
| | | userWithdrawal1.setImgUrlOne(idCardReversePicture); |
| | | userWithdrawal1.setHuiFuId((String) resultMap.get("huifu_id")); |
| | | userWithdrawal1.setHuifuId((String) resultMap.get("huifu_id")); |
| | | userWithdrawal1.setTokenNo((String) map.get("token_no")); |
| | | userWithdrawalService.updateById(userWithdrawal1); |
| | | |