| | |
| | | package com.genersoft.iot.vmp.service.impl; |
| | | |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.genersoft.iot.vmp.common.InviteInfo; |
| | | import com.genersoft.iot.vmp.common.InviteSessionType; |
| | | import com.genersoft.iot.vmp.gb28181.bean.Device; |
| | |
| | | * @author lin |
| | | */ |
| | | @Service |
| | | @DS("master") |
| | | public class DeviceChannelServiceImpl implements IDeviceChannelService { |
| | | |
| | | private final static Logger logger = LoggerFactory.getLogger(DeviceChannelServiceImpl.class); |
| | |
| | | } |
| | | } |
| | | } |
| | | int limitCount = 300; |
| | | int limitCount = 50; |
| | | if (addChannels.size() > 0) { |
| | | if (addChannels.size() > limitCount) { |
| | | for (int i = 0; i < addChannels.size(); i += limitCount) { |
| | |
| | | deviceChannel.setUpdateTime(now); |
| | | result.add(updateGps(deviceChannel, device)); |
| | | }); |
| | | int limitCount = 300; |
| | | int limitCount = 50; |
| | | if (result.size() > limitCount) { |
| | | for (int i = 0; i < result.size(); i += limitCount) { |
| | | int toIndex = i + limitCount; |