|  |  | 
 |  |  | import com.genersoft.iot.vmp.storager.dao.DeviceMapper; | 
 |  |  | import com.genersoft.iot.vmp.utils.DateUtil; | 
 |  |  | import com.genersoft.iot.vmp.vmanager.bean.ResourceBaceInfo; | 
 |  |  | import com.genersoft.iot.vmp.vmanager.gb28181.platform.bean.ChannelReduce; | 
 |  |  | import org.slf4j.Logger; | 
 |  |  | import org.slf4j.LoggerFactory; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | 
 |  |  |         HashMap<String, DeviceChannel> channelsInStore = new HashMap<>(); | 
 |  |  |         Device device = deviceMapper.getDeviceByDeviceId(deviceId); | 
 |  |  |         if (channels != null && channels.size() > 0) { | 
 |  |  |             List<DeviceChannel> channelList = channelMapper.queryChannels(deviceId, null, null, null, null); | 
 |  |  |             List<DeviceChannel> channelList = channelMapper.queryChannels(deviceId, null, null, null, null,null); | 
 |  |  |             if (channelList.size() == 0) { | 
 |  |  |                 for (DeviceChannel channel : channels) { | 
 |  |  |                     channel.setDeviceId(deviceId); | 
 |  |  | 
 |  |  |     public ResourceBaceInfo getOverview() { | 
 |  |  |         return channelMapper.getOverview(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public List<ChannelReduce> queryAllChannelList(String platformId) { | 
 |  |  |         return channelMapper.queryChannelListInAll(null, null, null, platformId, null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  | } |