50 lines
1.2 KiB
Java
Raw Normal View History

package com.cdzy.operations.mapper;
import com.cdzy.operations.model.entity.EbikeRegion;
import com.ebike.feign.model.vo.FeignEbikeRegionVo;
2025-12-25 14:14:45 +08:00
import com.mybatisflex.core.BaseMapper;
2025-12-30 11:20:29 +08:00
import org.locationtech.jts.geom.Point;
2025-12-08 09:56:44 +08:00
import java.util.List;
/**
* 运营区域表 映射层
*
* @author attiya
* @since 2025-10-22
*/
public interface EbikeRegionMapper extends BaseMapper<EbikeRegion> {
2025-11-10 16:25:04 +08:00
/**
* 检查车辆是否在运营区内
2025-12-25 14:14:45 +08:00
*
2025-11-10 16:25:04 +08:00
* @param bikeCode 车辆编号
* @return 结果
*/
boolean checkBikeInRegion(String bikeCode);
2025-12-08 09:56:44 +08:00
/**
* 查询运营区列表按照距离排序
2025-12-25 14:14:45 +08:00
*
2025-12-08 09:56:44 +08:00
* @param point 用户当前位置
* @return 列表
*/
2026-02-03 16:14:03 +08:00
List<EbikeRegion> findAllRegionsOrderByDistance(Point point,Long operatorId);
2025-12-25 14:14:45 +08:00
/**
* 根据当前位置查询当前运营区及站点
*
* @param point 用户当前位置
* @return 运营区信息及站点信息
*/
FeignEbikeRegionVo findCurrentRegion(Point point, double radius);
2025-12-25 14:14:45 +08:00
/**
* 根据当前位置查询当前运营区
*
* @param point 用户当前位置
* @return 运营区信息
*/
EbikeRegion findCurrentPointRegion(Point point);
}