648540858
2022-04-12 c2e2e24551f4603d2ef01c170de37359cf44afce
src/main/java/com/genersoft/iot/vmp/gb28181/session/CatalogDataCatch.java
@@ -5,7 +5,7 @@
import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel;
import com.genersoft.iot.vmp.gb28181.transmit.callback.DeferredResultHolder;
import com.genersoft.iot.vmp.gb28181.transmit.callback.RequestMessage;
import com.genersoft.iot.vmp.storager.IVideoManagerStorager;
import com.genersoft.iot.vmp.storager.IVideoManagerStorage;
import com.genersoft.iot.vmp.vmanager.bean.WVPResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
@@ -23,7 +23,7 @@
    private DeferredResultHolder deferredResultHolder;
    @Autowired
    private IVideoManagerStorager storager;
    private IVideoManagerStorage storager;
    public void put(String key, int total, Device device, List<DeviceChannel> deviceChannelList) {
        CatalogData catalogData = data.get(key);
@@ -44,6 +44,12 @@
        return catalogData.getChannelList();
    }
    public int getTotal(String key) {
        CatalogData catalogData = data.get(key);
        if (catalogData == null) return 0;
        return catalogData.getTotal();
    }
    public void del(String key) {
        data.remove(key);
    }