41 lines
914 B
Java
41 lines
914 B
Java
package com.cdzy.operations.mapper;
|
|
|
|
import com.cdzy.operations.model.entity.EbikeRegion;
|
|
import com.mybatisflex.core.BaseMapper;
|
|
import org.postgresql.geometric.PGpoint;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 运营区域表 映射层。
|
|
*
|
|
* @author attiya
|
|
* @since 2025-10-22
|
|
*/
|
|
public interface EbikeRegionMapper extends BaseMapper<EbikeRegion> {
|
|
|
|
/**
|
|
* 检查车辆是否在运营区内
|
|
*
|
|
* @param bikeCode 车辆编号
|
|
* @return 结果
|
|
*/
|
|
boolean checkBikeInRegion(String bikeCode);
|
|
|
|
/**
|
|
* 查询运营区列表,按照距离排序
|
|
*
|
|
* @param point 用户当前位置
|
|
* @return 列表
|
|
*/
|
|
List<EbikeRegion> findAllRegionsOrderByDistance(PGpoint point);
|
|
|
|
/**
|
|
* 根据当前位置查询当前运营区
|
|
*
|
|
* @param point 用户当前位置
|
|
* @return 运营区信息
|
|
*/
|
|
EbikeRegion findCurrentRegion(PGpoint point);
|
|
}
|