| | |
| | | @Override |
| | | public Map<Integer,List<SensorUnit>> queryGroupSensorBySids(List<Integer> sensorIds){ |
| | | SensorUnit sensorUnitQuery = new SensorUnit(); |
| | | Map<Integer,List<SensorUnit>> resultList = new HashMap<>(); |
| | | Map<Integer,List<SensorUnit>> resultListMap = new HashMap<>(); |
| | | for(Integer sensorId: sensorIds) { |
| | | sensorUnitQuery.setSensorId(sensorId); |
| | | sensorUnitQuery.setIsDelete(false); |
| | | List<SensorUnit> sensorUnitList = sensorUnitMapper.select(sensorUnitQuery); |
| | | if(sensorUnitList!=null&&sensorUnitList.size()>0){ |
| | | resultList.put(sensorId,sensorUnitList); |
| | | resultListMap.put(sensorId,sensorUnitList); |
| | | } |
| | | } |
| | | return resultList; |
| | | return resultListMap; |
| | | } |
| | | } |