| | |
| | | import com.whyc.dto.paramter.DevAlarmPar; |
| | | import com.whyc.dto.result.AlarmRes; |
| | | import com.whyc.mapper.*; |
| | | import com.whyc.pojo.DevalarmDataHistory; |
| | | import com.whyc.pojo.PwrdevAlarmHistory; |
| | | import com.whyc.pojo.UserLog; |
| | | import com.whyc.pojo.*; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | List<String> tableList = getTableList(dbName, tableLike, regex); |
| | | List<Integer> levelList = new LinkedList(); |
| | | for (String tableName : tableList) { |
| | | List<BattalarmDataHistory> levelInfoSubList; |
| | | List<Integer> levelSubList; |
| | | if(tableLike.equals("tb_battalarm_data_history")) { |
| | | levelSubList = battAlarmDataHistoryMapper.getLevelSubList(uId, tableName); |
| | | levelInfoSubList = battAlarmDataHistoryMapper.getLevelSubList(uId, tableName); |
| | | } |
| | | else if(tableLike.equals("tb_devalarm_data_history")){ |
| | | levelSubList = devAlarmDataHistoryMapper.getLevelSubList(uId, tableName); |
| | | levelInfoSubList = devAlarmDataHistoryMapper.getLevelSubList(uId, tableName); |
| | | } |
| | | else{ |
| | | levelSubList = powerAlarmHistoryMapper.getLevelSubList(uId, tableName,almTypes); |
| | | levelInfoSubList = powerAlarmHistoryMapper.getLevelSubList(uId, tableName,almTypes); |
| | | } |
| | | levelSubList = levelInfoSubList.stream().map(BattalarmDataHistory::getAlmLevel).collect(Collectors.toList()); |
| | | levelList.addAll(levelSubList); |
| | | } |
| | | //分为四级查询个数 |