添加group/docks/2
This commit is contained in:
parent
c57f66e0b7
commit
890bdf3c9e
|
|
@ -143,11 +143,11 @@ public class DockDetailDTO implements Serializable
|
|||
/**
|
||||
*纬度
|
||||
*/
|
||||
private String latitude;
|
||||
private Double latitude;
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
private String longitude;
|
||||
private Double longitude;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -310,11 +310,11 @@ public class BufferDeviceImpl implements IBufferDeviceService
|
|||
// 赋予经纬度
|
||||
// 纬度
|
||||
attributeMap.get(DeviceAttributes.Latitude)
|
||||
.ifPresent(latitude -> dto.setLatitude(latitude.toString()));
|
||||
.ifPresent(dto::setLatitude);
|
||||
|
||||
// 经度
|
||||
attributeMap.get(DeviceAttributes.Longitude)
|
||||
.ifPresent(longitude -> dto.setLongitude(longitude.toString()));
|
||||
.ifPresent(dto::setLongitude);
|
||||
|
||||
return dto;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue