package com.xiaopeng.map.service;
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.xiaopeng.api.dto.operation.PointMapQuery;
|
import com.xiaopeng.api.dto.order.HistoryEndPointsDto;
|
import com.xiaopeng.api.dto.order.HistoryStartPointsDto;
|
import com.xiaopeng.api.model.map.XpTestPoint;
|
import com.xiaopeng.api.query.operation.PointListQuery;
|
import com.xiaopeng.api.query.operation.PointPageListListQuery;
|
import com.xiaopeng.api.vo.order.XpHistoryEndPointsVo;
|
import com.xiaopeng.api.vo.order.XpHistoryStartPointsVo;
|
import com.xiaopeng.common.core.web.page.PageInfo;
|
import com.xiaopeng.map.dto.NearestDto;
|
import com.xiaopeng.map.vo.NearestVo;
|
import com.xiaopeng.map.vo.OrderDistanceVo;
|
|
import javax.validation.Valid;
|
import java.time.LocalTime;
|
import java.util.List;
|
|
/**
|
* <p>
|
* 测试demo-点位管理 服务类
|
* </p>
|
*
|
* @author liu
|
* @author WuGuanFengYue
|
* @since 2026-02-03
|
*/
|
public interface XpTestPointService extends IService<XpTestPoint> {
|
|
|
|
/**
|
* 判断点位是否时间段内
|
* @param now
|
* @return
|
*/
|
boolean getInTime(LocalTime now, Integer effectivePeriod, String effectiveTimePeriod);
|
List<XpTestPoint> pointMap(PointMapQuery query);
|
|
List<XpTestPoint> listAll(PointListQuery query);
|
|
|
/**
|
* 获取历史上车站点
|
* @param historyStartPointsDto
|
* @return
|
*/
|
List<XpHistoryStartPointsVo> getHistoryStartPoints(HistoryStartPointsDto historyStartPointsDto);
|
|
|
/**
|
* 获取历史上车站点
|
* @param historyEndPointsDto
|
* @return
|
*/
|
List<XpHistoryEndPointsVo> getHistoryEndPoints(HistoryEndPointsDto historyEndPointsDto);
|
|
|
|
/**
|
* 获取可下单距离
|
* @return
|
*/
|
OrderDistanceVo getOrderDistance();
|
|
|
PageInfo<XpTestPoint> pageList(PointPageListListQuery query);
|
|
|
/**
|
* 判断点位是否在当前时间范围内有效
|
* @param pointId
|
* @return
|
*/
|
Boolean nowInTimePoint(Long pointId);
|
|
}
|