修复更新通道状态回复不准的问题

This commit is contained in:
648540858
2022-04-18 12:55:54 +08:00
parent 596a633d2e
commit 20622d20d6
5 changed files with 30 additions and 4 deletions

View File

@@ -43,6 +43,13 @@ public interface IDeviceService {
*/
SyncStatus getChannelSyncStatus(String deviceId);
/**
* 查看是否仍在同步
* @param deviceId 设备ID
* @return
*/
Boolean isSyncRunning(String deviceId);
/**
* 通道同步
* @param device

View File

@@ -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) {