“mitao”
2026-03-14 c880977abc130e6820212f66af41033b67b65b14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package com.xiaopeng.api.model.operation;
 
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.GeoSpatialIndexType;
import org.springframework.data.mongodb.core.index.GeoSpatialIndexed;
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")
    @GeoSpatialIndexed(type = GeoSpatialIndexType.GEO_2DSPHERE)
    private GeoJsonPoint location;
 
    /**
     * 时间戳
     */
    @Field("timestamp")
    private Long timestamp;
 
    /**
     * 秒数
     */
    @Field("seconds")
    private Integer seconds;
 
    /**
     * 时间段
     */
    @Field("time")
    private String time;
 
 
    /**
     * 0待接单 1已处理 2取消
     */
    @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 Long getTimestamp() {
        return timestamp;
    }
 
    public void setTimestamp(Long 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;
    }
}