|
|
@@ -8,6 +8,8 @@ import com.zd.common.core.web.controller.BaseController;
|
|
|
import com.zd.laboratory.api.entity.LabSubjectEntity;
|
|
|
import com.zd.laboratory.api.entity.LabSubjectControllerVO;
|
|
|
import com.zd.laboratory.domain.LabHazardSubjectRelation;
|
|
|
+import com.zd.laboratory.domain.LabRiskPlanAbnormalGroup;
|
|
|
+import com.zd.laboratory.domain.LabSubject;
|
|
|
import com.zd.laboratory.domain.bigview.HardwareState;
|
|
|
import com.zd.laboratory.domain.bigview.HazardTotal;
|
|
|
import com.zd.laboratory.domain.bigview.SenseState;
|
|
|
@@ -81,6 +83,12 @@ public class BigViewController extends BaseController {
|
|
|
@Autowired
|
|
|
private TokenService tokenService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ILabRiskPlanAbnormalGroupService groupService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ ILabSubjectService subjectService;
|
|
|
+
|
|
|
/**
|
|
|
* echarts-条形图:设备概览
|
|
|
*
|
|
|
@@ -415,4 +423,42 @@ public class BigViewController extends BaseController {
|
|
|
List<LabCheckOptionStatisticsVo> list =labCheckOptionService.selectSubjectListList(statisticsVo);
|
|
|
return ResultData.success(list);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation("大屏-校级-预警通知")
|
|
|
+ @GetMapping("/warningNotice")
|
|
|
+ public ResultData warningNotice() {
|
|
|
+ List<LabSubjectControllerVO> list = new ArrayList<>();
|
|
|
+ //查询预警的实验室数量
|
|
|
+ LabRiskPlanAbnormalGroup group = new LabRiskPlanAbnormalGroup();
|
|
|
+ group.setStatus(1L);
|
|
|
+ List <LabRiskPlanAbnormalGroupVO> groupVOList = groupService.selectLabRiskPlanAbnormalGroupList(group);
|
|
|
+
|
|
|
+ List<LabSubjectVO> subList = new ArrayList<>();
|
|
|
+ //查询实验室详情
|
|
|
+ if(groupVOList!=null && groupVOList.size()>0){
|
|
|
+ for (LabRiskPlanAbnormalGroupVO vo:groupVOList) {
|
|
|
+ LabSubjectVO labSubject = new LabSubjectVO();
|
|
|
+ labSubject.setId(vo.getSubjectId());
|
|
|
+ List<LabSubjectVO> labSubjects = subjectService.selectLabSubjectListAuthByPc(labSubject);
|
|
|
+ labSubjects.get(0).setRemark(vo.getGroupName());
|
|
|
+ subList.add(labSubjects.size()>0?labSubjects.get(0):null);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //获取硬件信息
|
|
|
+ list = subjectManagerService.completeMainSubInfo(subList);
|
|
|
+ //组装楼栋、楼层、房间号、预案名称
|
|
|
+ for (LabSubjectControllerVO vo:list) {
|
|
|
+ for (LabSubjectVO suvo:subList) {
|
|
|
+ if(vo.getId().equals(suvo.getId())){
|
|
|
+ vo.setBuildName(suvo.getBuildName());
|
|
|
+ vo.setFloorName(suvo.getFloorName());
|
|
|
+ vo.setRoomName(suvo.getRoomName());
|
|
|
+ vo.setRiskName(suvo.getRemark());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return ResultData.success(list);
|
|
|
+ }
|
|
|
}
|