| | |
| | | import com.stylefeng.guns.modular.system.service.ITUserService; |
| | | import com.stylefeng.guns.modular.system.util.HttpRequestUtil; |
| | | import com.stylefeng.guns.modular.system.util.PushURL; |
| | | import com.stylefeng.guns.modular.system.util.RedisUtil; |
| | | import org.apache.commons.lang.time.DateUtils; |
| | | import org.apache.poi.ss.usermodel.Cell; |
| | | import org.apache.poi.ss.usermodel.Row; |
| | |
| | | return SUCCESS_TIP; |
| | | } |
| | | |
| | | @Autowired |
| | | private RedisUtil redisUtil; |
| | | /** |
| | | * 操作用户 |
| | | */ |
| | |
| | | if (1 == optType.intValue()){ //冻结 |
| | | tUser.setState(2); |
| | | tUser.setRemark(remark); |
| | | |
| | | String key = redisUtil.getValue("USER_" + tUser.getPhone()); |
| | | redisUtil.remove(key);//删除个人信息数据 |
| | | redisUtil.remove("USER_" + tUser.getPhone());//删除后台冻结相关缓存 |
| | | redisUtil.remove("USER_" + tUserId);//清除存储的token |
| | | //增加推送 |
| | | Map<String,String> map = new HashMap<>(); |
| | | map.put("uid", tUser.getId().toString()); |