2025-10-22 10:18:32 +08:00
|
|
|
|
package com.cdzy.operations.mapper;
|
|
|
|
|
|
|
|
|
|
|
|
import com.cdzy.operations.model.entity.EbikeRegion;
|
2026-01-07 09:59:15 +08:00
|
|
|
|
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;
|
2025-10-22 10:18:32 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 运营区域表 映射层。
|
|
|
|
|
|
*
|
|
|
|
|
|
* @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 列表
|
|
|
|
|
|
*/
|
2025-12-30 11:20:29 +08:00
|
|
|
|
List<EbikeRegion> findAllRegionsOrderByDistance(Point point);
|
2025-12-25 14:14:45 +08:00
|
|
|
|
|
2026-01-08 09:24:47 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 根据当前位置查询当前运营区及站点
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param point 用户当前位置
|
|
|
|
|
|
* @return 运营区信息及站点信息
|
|
|
|
|
|
*/
|
|
|
|
|
|
FeignEbikeRegionVo findCurrentRegion(Point point, double radius);
|
|
|
|
|
|
|
2025-12-25 14:14:45 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 根据当前位置查询当前运营区
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param point 用户当前位置
|
|
|
|
|
|
* @return 运营区信息
|
|
|
|
|
|
*/
|
2026-01-08 09:24:47 +08:00
|
|
|
|
EbikeRegion findCurrentPointRegion(Point point);
|
2025-10-22 10:18:32 +08:00
|
|
|
|
}
|