50 lines
1.2 KiB
Java
50 lines
1.2 KiB
Java
package com.cdzy.operations.mapper;
|
|
|
|
import com.cdzy.operations.model.entity.EbikeRegion;
|
|
import com.ebike.feign.model.vo.FeignEbikeRegionVo;
|
|
import com.mybatisflex.core.BaseMapper;
|
|
import org.locationtech.jts.geom.Point;
|
|
|
|
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(Point point,Long operatorId);
|
|
|
|
/**
|
|
* 根据当前位置查询当前运营区及站点
|
|
*
|
|
* @param point 用户当前位置
|
|
* @return 运营区信息及站点信息
|
|
*/
|
|
FeignEbikeRegionVo findCurrentRegion(Point point, double radius);
|
|
|
|
/**
|
|
* 根据当前位置查询当前运营区
|
|
*
|
|
* @param point 用户当前位置
|
|
* @return 运营区信息
|
|
*/
|
|
EbikeRegion findCurrentPointRegion(Point point);
|
|
}
|