liujie
2026-02-13 5205d55b6088b579a2ecf08d8aa98e260b9b975c
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
package com.xiaopeng.operation.service;
 
import com.xiaopeng.api.model.operation.XpGeoQueryEntity;
 
import java.util.List;
 
/**
 * MongoDB 地理查询服务接口
 */
public interface IXpGeoQueryEntityService {
 
    /**
     * 通过经纬度查询固定范围1000米内、一周内、状态>1的数据
     * @param longitude 经度
     * @param latitude 纬度
     */
    List<XpGeoQueryEntity> findByLocationWithin500MetersAndLastWeekAndStatusGreater(
            double longitude, 
            double latitude,
            String time
    );
 
 
 
 
    /**
     * 保存地理查询实体
     * @param entity 地理查询实体
     * @return 保存后的实体
     */
    XpGeoQueryEntity save(XpGeoQueryEntity entity);
 
 
    /**
     * 修改
     */
   XpGeoQueryEntity updateByOrderId(String orderId);
 
    /**
     * 根据ID查询实体
     * @param id 实体ID
     * @return 实体
     */
    XpGeoQueryEntity findById(String id);
 
    /**
     * 删除实体
     * @param id 实体ID
     */
    void deleteById(String id);
 
    /**
     * 查询所有实体
     * @return 实体列表
     */
    List<XpGeoQueryEntity> findAll();
}