| | |
| | | screenUserVo.setPermissionClient(param.getPermissionClient()); |
| | | screenUserVo.setPermissionProject(param.getPermissionProject()); |
| | | screenUserVo.setCommentType(param.getCommentType()); |
| | | screenUserVo.setSafetyId(param.getSafetyId()); |
| | | screenUserVo.setDeviceTemplateId(param.getDeviceTemplateId()); |
| | | } |
| | | }else if(type==2){ |
| | | Project project = projectService.getById(id); |
| | |
| | | ClientParam param = clientParamService.getOne(new LambdaQueryWrapper<ClientParam>().eq(ClientParam::getClientId, client.getId())); |
| | | if(param!=null){ |
| | | screenUserVo.setCommentType(param.getCommentType()); |
| | | screenUserVo.setSafetyId(param.getSafetyId()); |
| | | screenUserVo.setDeviceTemplateId(param.getDeviceTemplateId()); |
| | | } |
| | | screenUserVo.setName(project.getName()); |
| | | screenUserVo.setPermissionProject(project.getPermission()); |
| | |
| | | * @return 统计数据 |
| | | */ |
| | | @PostMapping("/index") |
| | | @ApiOperation("获取委托方大屏首页统计数据") |
| | | @ApiOperation(value = "获取委托方大屏首页统计数据",tags = {"委托方端"}) |
| | | public R<ClientDashboardVO> index(@RequestBody ClientDashboardQuery query) { |
| | | ClientDashboardVO dashboard = clientService.getClientDashboard(query); |
| | | return R.ok(dashboard); |