|
@@ -7,7 +7,6 @@ import com.zd.common.core.annotation.DataScope;
|
|
|
import com.zd.common.core.redis.RedisService;
|
|
import com.zd.common.core.redis.RedisService;
|
|
|
import com.zd.common.core.utils.DateUtils;
|
|
import com.zd.common.core.utils.DateUtils;
|
|
|
import com.zd.common.core.utils.SecurityUtils;
|
|
import com.zd.common.core.utils.SecurityUtils;
|
|
|
-import com.zd.laboratory.api.entity.SensorFunctionStatus;
|
|
|
|
|
import com.zd.laboratory.config.HardwareFunctionStatusConfig;
|
|
import com.zd.laboratory.config.HardwareFunctionStatusConfig;
|
|
|
import com.zd.laboratory.domain.*;
|
|
import com.zd.laboratory.domain.*;
|
|
|
import com.zd.laboratory.domain.vo.LabRiskPlanAbnormalLogVO;
|
|
import com.zd.laboratory.domain.vo.LabRiskPlanAbnormalLogVO;
|
|
@@ -249,23 +248,6 @@ public class LabRiskPlanAbnormalLogServiceImpl implements ILabRiskPlanAbnormalLo
|
|
|
result.put("sevenDays", dataMap);
|
|
result.put("sevenDays", dataMap);
|
|
|
|
|
|
|
|
/** ----------------------- 30天数据,暂时不要--------------------------- */
|
|
/** ----------------------- 30天数据,暂时不要--------------------------- */
|
|
|
- /*dataMap = new HashMap<>();
|
|
|
|
|
-
|
|
|
|
|
- // 风险数
|
|
|
|
|
- params.put("type", 2);
|
|
|
|
|
- maps = labRiskPlanAbnormalLogMapper.queryRiskTrend(params);
|
|
|
|
|
- dataMap.put("risks", maps);
|
|
|
|
|
-
|
|
|
|
|
- // 故障数
|
|
|
|
|
- maps = labAbnormalMapper.queryFailures(params);
|
|
|
|
|
- dataMap.put("failures", maps);
|
|
|
|
|
-
|
|
|
|
|
- // 隐患数
|
|
|
|
|
- maps = labPhotoNoteMapper.selectDangers(params);
|
|
|
|
|
- dataMap.put("dangers", maps);
|
|
|
|
|
-
|
|
|
|
|
- // 近30天数据
|
|
|
|
|
- result.put("oneMonth", dataMap);*/
|
|
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -330,7 +312,6 @@ public class LabRiskPlanAbnormalLogServiceImpl implements ILabRiskPlanAbnormalLo
|
|
|
if(subDiy.size()>0){
|
|
if(subDiy.size()>0){
|
|
|
appVo.setSubDiyVo(subDiy.get(0));
|
|
appVo.setSubDiyVo(subDiy.get(0));
|
|
|
}
|
|
}
|
|
|
-// appVo.setSubDiyVo(Optional.ofNullable(subDiy).filter(p->p.size()>0).orElseGet(Collections::emptyList).get(0));
|
|
|
|
|
appVo.setTodayHappenCount(todayHappenCount);
|
|
appVo.setTodayHappenCount(todayHappenCount);
|
|
|
longAdder.add(todayHappenCount);
|
|
longAdder.add(todayHappenCount);
|
|
|
//加入实验室信息
|
|
//加入实验室信息
|