添加group/docks/2

This commit is contained in:
孙小云 2026-01-23 09:23:40 +08:00
parent c57f66e0b7
commit 890bdf3c9e
2 changed files with 4 additions and 4 deletions

View File

@ -143,11 +143,11 @@ public class DockDetailDTO implements Serializable
/** /**
*纬度 *纬度
*/ */
private String latitude; private Double latitude;
/** /**
* 经度 * 经度
*/ */
private String longitude; private Double longitude;
} }

View File

@ -310,11 +310,11 @@ public class BufferDeviceImpl implements IBufferDeviceService
// 赋予经纬度 // 赋予经纬度
// 纬度 // 纬度
attributeMap.get(DeviceAttributes.Latitude) attributeMap.get(DeviceAttributes.Latitude)
.ifPresent(latitude -> dto.setLatitude(latitude.toString())); .ifPresent(dto::setLatitude);
// 经度 // 经度
attributeMap.get(DeviceAttributes.Longitude) attributeMap.get(DeviceAttributes.Longitude)
.ifPresent(longitude -> dto.setLongitude(longitude.toString())); .ifPresent(dto::setLongitude);
return dto; return dto;
} }