| | |
| | | }) |
| | | public ResultUtil isElectronicLede(HttpServletRequest request){ |
| | | try { |
| | | Integer driverId = driverService.getUserIdFormRedis(request); |
| | | if(null == driverId){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | Driver driver = driverService.selectById(driverId); |
| | | List<UserWithdrawal> userWithdrawals = userWithdrawalService.selectList(new EntityWrapper<UserWithdrawal>().eq("phone", driver.getPhone())); |
| | | if(userWithdrawals.size()==0){ |
| | | return ResultUtil.success("yes"); |
| | | } |
| | | //临时关闭 |
| | | // Integer driverId = driverService.getUserIdFormRedis(request); |
| | | // if(null == driverId){ |
| | | // return ResultUtil.tokenErr(); |
| | | // } |
| | | // Driver driver = driverService.selectById(driverId); |
| | | // List<UserWithdrawal> userWithdrawals = userWithdrawalService.selectList(new EntityWrapper<UserWithdrawal>().eq("phone", driver.getPhone())); |
| | | // if(userWithdrawals.size()==0){ |
| | | // return ResultUtil.success("yes"); |
| | | // } |
| | | return ResultUtil.success("no"); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |