package com.stylefeng.guns.modular.system.service;
|
|
import com.baomidou.mybatisplus.plugins.Page;
|
import com.stylefeng.guns.modular.system.controller.resp.DriverDispatchInfoResp;
|
import com.stylefeng.guns.modular.system.model.TOrderCheck;
|
import com.baomidou.mybatisplus.service.IService;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 订单 服务类
|
* </p>
|
*
|
* @author mitao
|
* @since 2025-07-28
|
*/
|
public interface ITOrderCheckService extends IService<TOrderCheck> {
|
|
Page<TOrderCheck> getOrderCheckList(String createTime, String code, Integer source, String userName, String userPhone, Integer state, String driverName);
|
|
/**
|
* 取消订单
|
* @param tOrderCheckId
|
*/
|
void cancel(Integer tOrderCheckId);
|
|
/**
|
* 获取订单和用户信息
|
*
|
* @param orderId 订单ID
|
* @return 订单和用户信息
|
*/
|
TOrderCheck getOrderInfo(Integer orderId);
|
|
/**
|
* 获取可派单司机分页列表(适配Bootstrap Table)
|
*
|
* @param orderId 订单ID
|
* @param dispatchType 派单类型:1=派单,2=改派
|
* @param keyword 司机姓名(搜索条件)
|
* @return 司机分页列表数据
|
*/
|
Page<DriverDispatchInfoResp> getDispatchDriverList(Integer orderId, Integer dispatchType, String keyword);
|
|
/**
|
* 执行派单操作
|
*
|
* @param orderId 订单ID
|
* @param driverId 司机ID
|
* @param dispatchType 派单类型:1=派单,2=改派
|
*/
|
void executeDispatch(Integer orderId, Integer driverId, Integer dispatchType);
|
|
/**
|
* 根据订单ID列表查询订单信息
|
* @param orderIds 订单ID列表
|
* @return 订单信息列表
|
*/
|
List<TOrderCheck> getOrdersByIds(List<Integer> orderIds);
|
|
/**
|
* 执行批量派单操作(随机匹配)
|
* @param orderIds 订单ID列表
|
* @param driverIds 司机ID列表
|
*/
|
void executeBatchDispatch(List<Integer> orderIds, List<Integer> driverIds);
|
|
/**
|
* 新建订单
|
* @param startAddress 取车位置
|
* @param endAddress 还车地址
|
* @param reservationTime 预约时间
|
*/
|
void addOrder(Integer userId, String startAddress, String endAddress, String reservationTime);
|
|
/**
|
* 导出车检订单列表数据
|
* @param createTime 订单时间
|
* @param code 订单编号
|
* @param source 订单来源
|
* @param userName 下单用户昵称
|
* @param userPhone 下单用户手机
|
* @param state 订单状态
|
* @param driverName 司机姓名
|
* @return 车检订单列表
|
*/
|
List<TOrderCheck> exportOrderCheckList(String createTime, String code, Integer source,
|
String userName, String userPhone, Integer state, String driverName);
|
}
|