| | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | |
| | | @Api(tags = "数据大屏") |
| | |
| | | */ |
| | | @ApiOperation(value = "获取组织人员列表") |
| | | @GetMapping(value = "/largeUserList") |
| | | public R<List<TLargeUser>> largeUserList(@RequestParam String deptId) { |
| | | public R<List<TLargeUser>> largeUserList(String deptId) { |
| | | List<TLargeUser> list = largeUserService.list(Wrappers.lambdaQuery(TLargeUser.class) |
| | | .eq(TLargeUser::getDeptId, deptId) |
| | | .eq(Objects.nonNull(deptId),TLargeUser::getDeptId, deptId) |
| | | .orderByDesc(TLargeUser::getCreateTime)); |
| | | return R.ok(list); |
| | | } |
| | |
| | | // 助需 |
| | | long helpNeedsCount = tHelpNeedsService.count(); |
| | | Map<String,Long> map = new HashMap<>(); |
| | | map.put("appealServicesCount",appealServicesCount); |
| | | map.put("appealServicesCount",appealServicesCount+photoCount+appealCount+helpNeedsCount); |
| | | map.put("warningCount",warningCount); |
| | | map.put("photoCount",photoCount); |
| | | map.put("appealCount",appealCount); |