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);
|
|
/**
|
* 根据ID查询实体
|
* @param id 实体ID
|
* @return 实体
|
*/
|
XpGeoQueryEntity findById(String id);
|
|
/**
|
* 删除实体
|
* @param id 实体ID
|
*/
|
void deleteById(String id);
|
|
/**
|
* 查询所有实体
|
* @return 实体列表
|
*/
|
List<XpGeoQueryEntity> findAll();
|
}
|