| | |
| | | Long userId = tokenService.getLoginUser().getUserId(); |
| | | TAppUser byId = appUserService.getById(userId); |
| | | Long cacheObject = redisCache.getCacheObject("ALLERT:"+userId); |
| | | |
| | | if (cacheObject!=null && byId.getIsSetPreference() == 1){ |
| | | return R.ok(cacheObject == 1); |
| | | }else { |
| | |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "取消顶部提示",tags = {"web-取消顶部提示"}) |
| | | @PostMapping(value = "/cancelAllert") |
| | | public R cancelAllert() { |
| | | Long userId = tokenService.getLoginUser().getUserId(); |
| | | redisCache.deleteObject("ALLERT:"+userId); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "数据统计",tags = {"后台-统计"}) |
| | | @PostMapping(value = "/count") |