Commit ad3d6a2f by levphon

设备状态消费

1 parent d20f54c6
...@@ -30,7 +30,7 @@ public class RemoteDeviceLocationService { ...@@ -30,7 +30,7 @@ public class RemoteDeviceLocationService {
* 获取E盾中的所有设备号集合 * 获取E盾中的所有设备号集合
*/ */
public List<String> getAllSnInNewEshield() { public List<String> getAllSnInNewEshield() {
R<List<String>> allSnsR = deviceLocationClient.getAllSnInNewEshield(); R<List<String>> allSnsR = deviceLocationClient.getAllSn();
List<String> allSns = allSnsR.getDataList(new TypeToken<List<String>>() { List<String> allSns = allSnsR.getDataList(new TypeToken<List<String>>() {
}.getType()); }.getType());
if (CollectionUtil.isEmpty(allSns)) { if (CollectionUtil.isEmpty(allSns)) {
...@@ -45,6 +45,7 @@ public class RemoteDeviceLocationService { ...@@ -45,6 +45,7 @@ public class RemoteDeviceLocationService {
* @param deviceLocationDtos 设备上点数据集合 * @param deviceLocationDtos 设备上点数据集合
*/ */
public void saveOrUpdateDeviceLocationData(Collection<DeviceLocationDto> deviceLocationDtos) { public void saveOrUpdateDeviceLocationData(Collection<DeviceLocationDto> deviceLocationDtos) {
deviceLocationClient.saveOrUpdateDeviceLocationData(deviceLocationDtos); deviceLocationClient.dropLibrary(deviceLocationDtos);
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!