2025-10-22 10:18:32 +08:00
|
|
|
|
package com.cdzy.operations.mapper;
|
|
|
|
|
|
|
|
|
|
|
|
import com.mybatisflex.core.BaseMapper;
|
|
|
|
|
|
import com.cdzy.operations.model.entity.EbikeRegion;
|
2025-12-08 09:56:44 +08:00
|
|
|
|
import org.postgresql.geometric.PGpoint;
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
/**
|
|
|
|
|
|
* 检查车辆是否在运营区内
|
|
|
|
|
|
* @param bikeCode 车辆编号
|
|
|
|
|
|
* @return 结果
|
|
|
|
|
|
*/
|
|
|
|
|
|
boolean checkBikeInRegion(String bikeCode);
|
2025-12-08 09:56:44 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 查询运营区列表,按照距离排序
|
|
|
|
|
|
* @param point 用户当前位置
|
|
|
|
|
|
* @return 列表
|
|
|
|
|
|
*/
|
|
|
|
|
|
List<EbikeRegion> findAllRegionsOrderByDistance(PGpoint point);
|
2025-10-22 10:18:32 +08:00
|
|
|
|
}
|