| | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.exceptions.ServiceException; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.sangeshenbian.SystemUserVo; |
| | | import com.panzhihua.common.model.vos.west.SystemUserVo; |
| | | import com.panzhihua.westcommittee.model.entity.*; |
| | | import com.panzhihua.westcommittee.model.query.AnalyticStatisticsQuery; |
| | | import com.panzhihua.westcommittee.model.vo.*; |
| | |
| | | @PostMapping("/data") |
| | | @ApiOperation(value = "分析统计", tags = {"西区纪委后台-分析统计"}) |
| | | public R<AnalyticStatisticsDataVo> data(@Valid @RequestBody AnalyticStatisticsQuery query){ |
| | | SystemUserVo loginUserInfoSanGeShenBian = getLoginUserInfoWest(); |
| | | Integer id = loginUserInfoSanGeShenBian.getId(); |
| | | SystemUserVo loginUserInfo = getLoginUserInfoWest(); |
| | | Integer id = loginUserInfo.getId(); |
| | | List<SystemUserLevel> listBySystemUsers = systemUserLevelService.getListBySystemUserId(id); |
| | | if(listBySystemUsers.size()==0){ |
| | | // 没有权限 |
| | |
| | | @GetMapping("/getRegion") |
| | | @ApiOperation(value = "分析统计--获取市-区县-街道-社区", tags = {"西区纪委后台-分析统计--获取市-区县-街道-社区"}) |
| | | public R<AnalyticStatisticsRegionVo> getRegion(){ |
| | | SystemUserVo loginUserInfoSanGeShenBian = getLoginUserInfoWest(); |
| | | Integer id = loginUserInfoSanGeShenBian.getId(); |
| | | SystemUserVo loginUserInfo = getLoginUserInfoWest(); |
| | | Integer id = loginUserInfo.getId(); |
| | | List<SystemUserLevel> listBySystemUsers = systemUserLevelService.getListBySystemUserId(id); |
| | | // 如果有市级权限 展示所有 |
| | | SystemUserLevel systemUserLevel = listBySystemUsers.stream().filter(e -> e.getLevel() == 1).findFirst().orElse(null); |