| | |
| | | screenUserVo.setPermissionClient(param.getPermissionClient()); |
| | | screenUserVo.setPermissionProject(param.getPermissionProject()); |
| | | screenUserVo.setCommentType(param.getCommentType()); |
| | | screenUserVo.setSafetyId(param.getSafetyId()); |
| | | String name = clientParamService.getTemplateName(param.getSafetyId()); |
| | | screenUserVo.setSafetyName(name); |
| | | |
| | | screenUserVo.setDeviceTemplateId(param.getDeviceTemplateId()); |
| | | screenUserVo.setDeviceTemplateName(clientParamService.getTemplateName(param.getDeviceTemplateId())); |
| | | |
| | | screenUserVo.setBigHiddenDanger(param.getBigHiddenDanger()); |
| | | screenUserVo.setGeneralHiddenDanger(param.getGeneralHiddenDanger()); |
| | | } |
| | | }else if(type==2){ |
| | | Project project = projectService.getById(id); |
| | |
| | | Client client = clientService.getById(project.getClientId()); |
| | | ClientParam param = clientParamService.getOne(new LambdaQueryWrapper<ClientParam>().eq(ClientParam::getClientId, client.getId())); |
| | | if(param!=null){ |
| | | screenUserVo.setLogo(param.getLogo()); |
| | | screenUserVo.setName(param.getName()); |
| | | screenUserVo.setCommentType(param.getCommentType()); |
| | | screenUserVo.setSafetyId(param.getSafetyId()); |
| | | String name = clientParamService.getTemplateName(param.getSafetyId()); |
| | | screenUserVo.setSafetyName(name); |
| | | screenUserVo.setDeviceTemplateId(param.getDeviceTemplateId()); |
| | | String name1 = clientParamService.getTemplateName(param.getDeviceTemplateId()); |
| | | screenUserVo.setDeviceTemplateName(name1); |
| | | screenUserVo.setBigHiddenDanger(param.getBigHiddenDanger()); |
| | | screenUserVo.setGeneralHiddenDanger(param.getGeneralHiddenDanger()); |
| | | } |
| | | screenUserVo.setName(project.getName()); |
| | | screenUserVo.setProjectName(project.getName()); |
| | | screenUserVo.setPermissionProject(project.getPermission()); |
| | | } |
| | | |
| | |
| | | List<AccidentClassification> list = accidentClassificationService.list(new LambdaQueryWrapper<AccidentClassification>().eq(AccidentClassification::getDeleted, false)); |
| | | LambdaQueryWrapper<AccidentBrief> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(AccidentBrief::getState,1); |
| | | wrapper.eq(AccidentBrief::getDeleted,false); |
| | | if(query.getCity()!=null && !query.getCity().isEmpty()){ |
| | | wrapper.eq(AccidentBrief::getCity, query.getCity()); |
| | | } |
| | | if(query.getProvince()!=null && !query.getProvince().isEmpty()){ |
| | | wrapper.eq(AccidentBrief::getProvince, query.getProvince()); |
| | | } |
| | | if(query.getArea()!=null && !query.getArea().isEmpty()){ |
| | | wrapper.eq(AccidentBrief::getArea, query.getArea()); |
| | | } |
| | | |
| | | if(query.getClassifyId()!=null){ |
| | | wrapper.eq(AccidentBrief::getClassifyId, query.getClassifyId()); |
| | | } |
| | |
| | | * @return 统计数据 |
| | | */ |
| | | @PostMapping("/index") |
| | | @ApiOperation("获取委托方大屏首页统计数据") |
| | | @ApiOperation(value = "获取委托方大屏首页统计数据",tags = {"委托方端"}) |
| | | public R<ClientDashboardVO> index(@RequestBody ClientDashboardQuery query) { |
| | | ClientDashboardVO dashboard = clientService.getClientDashboard(query); |
| | | return R.ok(dashboard); |