fengxiang
2018-09-27 086e24d444fbd660228e358802969902fe857f23
src/main/java/com/moral/service/impl/SensorUnitServiceImpl.java
@@ -77,14 +77,15 @@
    @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;
    }
}