| | |
| | | |
| | | @Value("${spring.mail.template-path}") |
| | | private String templatePath; |
| | | |
| | | @Autowired |
| | | private RedisUtil redisUtil; |
| | | |
| | | |
| | | |
| | |
| | | type = 6; |
| | | tDriver.setAuthState(4); |
| | | } |
| | | |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | |
| | | driver_audit1_user.text("Hello " + tDriver.getFirstName() + " " + tDriver.getLastName() + ","); |
| | | Element driver_audit1_content = document.getElementById("driver_audit1_content"); |
| | | if(1 == authState){ |
| | | driver_audit1_content.text("You application has been approved."); |
| | | driver_audit1_content.text("Your application has been approved."); |
| | | }else{ |
| | | driver_audit1_content.text("I'm sorry, your application was rejected. Reason for rejection: Incomplete filling in personal information."); |
| | | driver_audit1_content.text("We are sorry to inform you that your application was rejected. Please contact our service for relevant details, call 0577777767 or send e-mail to support@i-go.group"); |
| | | } |
| | | EmailUtil.send(tDriver.getEmail(), 1 == authState ? "Driver is verified and qualified" : "Driver is not verified and qualified", document.html()); |
| | | }catch (Exception e){ |
| | |
| | | tDriverService.updateById(driver); |
| | | return SUCCESS_TIP; |
| | | } |
| | | |
| | | @Autowired |
| | | private RedisUtil redisUtil; |
| | | |
| | | /** |
| | | * 操作司机状态 |
| | | */ |
| | |
| | | if (1 == optType){ //解冻 |
| | | tDriver.setAuthState(2); |
| | | }else if (2 == optType){ //冻结 |
| | | String key = redisUtil.getValue(tDriver.getPhone()); |
| | | redisUtil.remove(key);//删除个人信息数据 |
| | | String token = redisUtil.getValue("DRIVER_" + tDriver.getPhone()); |
| | | redisUtil.remove(token);//删除个人信息数据 |
| | | redisUtil.remove("DRIVER_" + tDriver.getPhone());//删除后台冻结相关缓存 |
| | | redisUtil.remove("DRIVER_" + driverId);//清除存储的token |
| | | redisUtil.remove("DEVICE_" + driverId);//清除车载端登录的标识 |
| | | tDriver.setAuthState(3); |
| | | } |
| | | tDriver.setRemark(remark); |