| | |
| | | // 查询司机 |
| | | // Driver driver = driverService.selectById(id); |
| | | Driver driver = driverService.selectById(driverId); |
| | | List<UserWithdrawal> userWithdrawals = userWithdrawalService.selectList(new EntityWrapper<UserWithdrawal>().eq("phone",driver.getPhone()).eq("type", 1)); |
| | | if (CollUtil.isNotEmpty(userWithdrawals)) { |
| | | UserWithdrawal userWithdrawal1 = userWithdrawalService.selectOne(new EntityWrapper<UserWithdrawal>() |
| | | .eq("userId",driver.getId()) |
| | | .eq("userType",2).eq("type",1) |
| | | .last("LIMIT 1")); |
| | | if (userWithdrawal1!=null) { |
| | | return ResultUtil.error("该手机号已绑定进件信息"); |
| | | } |
| | | userWithdrawalReq.setOutRequestNo(ToolUtil.getRandomString(32)); |
| | |
| | | BeanUtils.copyProperties(userWithdrawal1,userWithdrawal); |
| | | |
| | | userWithdrawal.setIdCardFrontPicture(copy1); |
| | | userWithdrawal.setUserId(driver.getId()); |
| | | userWithdrawal.setUserType(2); |
| | | userWithdrawal.setIdCardReversePicture(copy2); |
| | | userWithdrawal.setImgUrl(idCardFrontPicture); |
| | | userWithdrawal.setImgUrlOne(idCardReversePicture); |
| | |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | Driver driver = driverService.selectById(driverId); |
| | | List<UserWithdrawal> userWithdrawals = userWithdrawalService.selectList(new EntityWrapper<UserWithdrawal>().eq("phone",driver.getPhone()).eq("type", 1)); |
| | | List<UserWithdrawal> userWithdrawals = userWithdrawalService.selectList(new EntityWrapper<UserWithdrawal>().eq("userId",driver.getId()) |
| | | .eq("userType",2).eq("type",1)); |
| | | if(userWithdrawals.size()==0){ |
| | | return ResultUtil.success("yes"); |
| | | } |
| | |
| | | // 查询当前操作电子用户 |
| | | // 司机进件信息 |
| | | UserWithdrawal userWithdrawal = userWithdrawalService.selectOne(new EntityWrapper<UserWithdrawal>() |
| | | .eq("phone",driver.getPhone()) |
| | | .eq("type", 1) |
| | | .eq("userId",driver.getId()) |
| | | .eq("type", 1) .eq("userType",2) |
| | | //.eq("applicationStatus","succeeded") |
| | | .last("LIMIT 1")); |
| | | |
| | |
| | | // .eq("userId", driverId) |
| | | // .eq("userType", 2)); |
| | | userWithdrawal = userWithdrawalService.selectOne(new EntityWrapper<UserWithdrawal>() |
| | | .eq("phone", driver.getPhone()) |
| | | .eq("userId",driver.getId()) |
| | | .eq("userType",2) |
| | | .eq("type", 1) |
| | | .last("LIMIT 1")); |
| | | if(Objects.isNull(userWithdrawal)){ |