liujie
21 小时以前 74f8b8074a2fb391b5363b4dca5f99bf31993430
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
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);
}