|
|
@@ -99,6 +99,9 @@ public class BigViewController extends BaseController {
|
|
|
@Autowired
|
|
|
private WarningNoticeLogService warningNoticeLogService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ILabHazardSubjectRelationService hazardSubjectRelationService;
|
|
|
+
|
|
|
/**
|
|
|
* echarts-条形图:设备概览
|
|
|
*
|
|
|
@@ -145,6 +148,13 @@ public class BigViewController extends BaseController {
|
|
|
@ApiOperation("查询重点实验室")
|
|
|
@GetMapping("/my/sub")
|
|
|
public List<LabSubjectControllerVO> mySubview(com.zd.laboratory.domain.LabSubject labSubject) {
|
|
|
+
|
|
|
+ //查询配置硬件的实验室
|
|
|
+ List<LabHazardSubjectRelation> relationsList = hazardSubjectRelationService.relationSubjectGroupByCount();
|
|
|
+ if(relationsList!=null && relationsList.size()>0){
|
|
|
+ List<Long> ids = relationsList.stream().map(a->a.getSubjectId()).collect(Collectors.toList());
|
|
|
+ labSubject.setIds(ids);
|
|
|
+ }
|
|
|
return bigViewService.queryMySubview(labSubject);
|
|
|
}
|
|
|
|