修复更新通道状态回复不准的问题
This commit is contained in:
@@ -43,6 +43,13 @@ public interface IDeviceService {
|
||||
*/
|
||||
SyncStatus getChannelSyncStatus(String deviceId);
|
||||
|
||||
/**
|
||||
* 查看是否仍在同步
|
||||
* @param deviceId 设备ID
|
||||
* @return
|
||||
*/
|
||||
Boolean isSyncRunning(String deviceId);
|
||||
|
||||
/**
|
||||
* 通道同步
|
||||
* @param device
|
||||
|
||||
@@ -99,6 +99,11 @@ public class DeviceServiceImpl implements IDeviceService {
|
||||
return catalogResponseMessageHandler.getChannelSyncProgress(deviceId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean isSyncRunning(String deviceId) {
|
||||
return catalogResponseMessageHandler.isSyncRunning(deviceId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sync(Device device) {
|
||||
if (catalogResponseMessageHandler.getChannelSyncProgress(device.getDeviceId()) != null) {
|
||||
|
||||
Reference in New Issue
Block a user