|
|
@@ -10,9 +10,11 @@ import org.jetlinks.community.device.entity.DeviceProductEntity;
|
|
|
import org.jetlinks.community.device.entity.DeviceTagEntity;
|
|
|
import org.jetlinks.community.device.enums.DeviceState;
|
|
|
import org.jetlinks.community.device.enums.DeviceType;
|
|
|
+import org.jetlinks.community.device.enums.GeoType;
|
|
|
import org.jetlinks.core.Values;
|
|
|
import org.jetlinks.core.device.DeviceOperator;
|
|
|
import org.jetlinks.core.metadata.ConfigPropertyMetadata;
|
|
|
+import org.jetlinks.core.metadata.types.GeoShape;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
import reactor.core.publisher.Mono;
|
|
|
@@ -171,6 +173,7 @@ public class DeviceDetail {
|
|
|
public synchronized DeviceDetail with(List<DeviceTagEntity> tags) {
|
|
|
DeviceTagEntity geoTag = new DeviceTagEntity();
|
|
|
geoTag.setDeviceId(this.id);
|
|
|
+ geoTag.setType("geoPoint");
|
|
|
geoTag.setKey("coordinate");
|
|
|
if (CollectionUtils.isEmpty(tags)) {
|
|
|
tags= Collections.singletonList(geoTag);
|