| | |
| | | import com.ruoyi.system.model.*; |
| | | import com.ruoyi.system.query.StoryListQuery; |
| | | import com.ruoyi.system.service.*; |
| | | import com.ruoyi.system.vo.ClientDashboardQuery; |
| | | import com.ruoyi.system.vo.ClientDashboardVO; |
| | | import com.ruoyi.system.vo.ScreenUserVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | screenUserVo.setName(param.getName()); |
| | | screenUserVo.setPermissionClient(param.getPermissionClient()); |
| | | screenUserVo.setPermissionProject(param.getPermissionProject()); |
| | | screenUserVo.setCommentType(param.getCommentType()); |
| | | } |
| | | }else if(type==2){ |
| | | Project project = projectService.getById(id); |
| | | if(project==null){ |
| | | return R.fail("项目不存在"); |
| | | } |
| | | |
| | | Client client = clientService.getById(project.getClientId()); |
| | | ClientParam param = clientParamService.getOne(new LambdaQueryWrapper<ClientParam>().eq(ClientParam::getClientId, client.getId())); |
| | | if(param!=null){ |
| | | screenUserVo.setCommentType(param.getCommentType()); |
| | | } |
| | | screenUserVo.setName(project.getName()); |
| | | screenUserVo.setPermissionProject(project.getPermission()); |
| | | } |
| | |
| | | return R.ok(accidentBrief); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取委托方大屏首页统计数据 |
| | | * |
| | | * @param query 查询参数 |
| | | * @return 统计数据 |
| | | */ |
| | | @PostMapping("/index") |
| | | @ApiOperation("获取委托方大屏首页统计数据") |
| | | public R<ClientDashboardVO> index(@RequestBody ClientDashboardQuery query) { |
| | | ClientDashboardVO dashboard = clientService.getClientDashboard(query); |
| | | return R.ok(dashboard); |
| | | } |
| | | |
| | | |
| | | |