package com.xiaopeng.operation.entity;
|
|
import org.springframework.data.annotation.Id;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
import org.springframework.data.mongodb.core.mapping.Field;
|
import org.springframework.data.mongodb.core.geo.GeoJsonPoint;
|
|
import java.util.Date;
|
|
/**
|
* MongoDB 地理查询实体类
|
* 用于存储经纬度、时间、秒数、状态等信息
|
*/
|
@Document(collection = "xp_geo_query_entity")
|
public class XpGeoQueryEntity {
|
|
@Id
|
private String id;
|
|
@Field("orderId")
|
private String orderId;
|
|
/**
|
* 地理位置(经纬度)
|
*/
|
@Field("location")
|
private GeoJsonPoint location;
|
|
/**
|
* 时间戳
|
*/
|
@Field("timestamp")
|
private Date timestamp;
|
|
/**
|
* 秒数
|
*/
|
@Field("seconds")
|
private Integer seconds;
|
|
/**
|
* 状态
|
*/
|
@Field("time")
|
private String time;
|
|
|
@Field("status")
|
private Integer status;
|
|
public Integer getStatus() {
|
return status;
|
}
|
|
public void setSeconds(Integer seconds) {
|
this.seconds = seconds;
|
}
|
|
public String getOrderId() {
|
return orderId;
|
}
|
|
public void setOrderId(String orderId) {
|
this.orderId = orderId;
|
}
|
|
// Getters and Setters
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public GeoJsonPoint getLocation() {
|
return location;
|
}
|
|
public void setLocation(GeoJsonPoint location) {
|
this.location = location;
|
}
|
|
public Date getTimestamp() {
|
return timestamp;
|
}
|
|
public void setTimestamp(Date timestamp) {
|
this.timestamp = timestamp;
|
}
|
|
public Integer getSeconds() {
|
return seconds;
|
}
|
|
public void setStatus(Integer status) {
|
this.status = status;
|
}
|
|
public String getTime() {
|
return time;
|
}
|
|
public void setTime(String time) {
|
this.time = time;
|
}
|
}
|