| | |
| | | val map = mutableMapOf<String?, MutableList<FumeDailyAnalysis?>>() |
| | | fumeDailyAnalysisMapper.selectByExample(Example(FumeDailyAnalysis::class.java).apply { |
| | | createCriteria().andBetween("fumeDate", evaluationScene.config?.startTime, evaluationScene.config?.endTime) |
| | | .andIn("fumeDevId", deviceCodeList) |
| | | .apply { |
| | | if (deviceCodeList.isNotEmpty()) { |
| | | andIn("fumeDevId", deviceCodeList) |
| | | } |
| | | } |
| | | }).forEach { |
| | | if (!map.containsKey(it?.fumeDevId)) { |
| | | map[it?.fumeDevId] = mutableListOf() |
| | |
| | | } else { |
| | | val code = deviceCodeList[0] |
| | | fumeExceptionDataMapper.selectByExample(Example(FumeExceptionData::class.java).apply { |
| | | createCriteria().andBetween("beginTime", evaluationScene.config?.startTime, evaluationScene.config?.endTime) |
| | | createCriteria().andBetween("beginTime", |
| | | evaluationScene.config?.startTime, |
| | | evaluationScene.config?.endTime) |
| | | .andEqualTo("devId", code) |
| | | .andEqualTo("exception", "数据异常") |
| | | .andEqualTo("exceptionType", "0") |