Commit ad3d6a2f by levphon

设备状态消费

1 parent d20f54c6
......@@ -30,7 +30,7 @@ public class RemoteDeviceLocationService {
* 获取E盾中的所有设备号集合
*/
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>>() {
}.getType());
if (CollectionUtil.isEmpty(allSns)) {
......@@ -45,6 +45,7 @@ public class RemoteDeviceLocationService {
* @param 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!