longz
2026-06-30 80fd77e1bcb47726e440b8a728838189cd39a56a
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
91
92
93
94
package com.stylefeng.guns.modular.system.service;
 
import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.modular.system.model.Reassign;
import com.stylefeng.guns.modular.system.util.ResultUtil;
 
import java.text.ParseException;
import java.util.List;
import java.util.Map;
 
public interface IReassignService extends IService<Reassign> {
 
 
    /**
     * 提交改派申请
     * @param uid
     * @return
     * @throws Exception
     */
    ResultUtil saveData(Reassign reassign, Integer uid, Integer type, Integer driverId) throws Exception;
 
 
 
 
    ResultUtil saveDataCancel(Reassign reassign, Integer uid, Integer type) throws Exception;
 
 
 
    /**
     * 提交改派申请
     * @param uid
     * @return
     * @throws Exception
     */
    ResultUtil saveData_(Reassign reassign, String orderIds, Integer uid, Integer type) throws Exception;
 
 
    /**
     * 获取列表数据
     * @param uid
     * @param pageNum
     * @param size
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> queryList(Integer uid, Integer pageNum, Integer size) throws Exception;
 
 
    /**
     * 改派完成支付后的操作
     * @param id            改派单id
     * @param order_id      工行支付订单
     * @param type          1=微信,2=支付宝
     * @throws Exception
     */
    void payReassign(String id, String order_id, Integer type) throws Exception;
 
    /**
     * 获取司机列表
     * @param orderId
     * @return
     */
    List<Map<String, Object>> queryDriver(String orderId) throws Exception;
 
    /**
     * 司机响应改派申请
     * @param reassignId 改派ID
     * @param driverId 司机ID
     * @param responseType 响应类型(1=同意,2=拒绝)
     * @return
     */
    ResultUtil respondReassign(Integer reassignId, Integer driverId, Integer responseType);
 
    /**
     * 批量响应改派申请
     * @param reassignIds 改派ID列表(逗号分隔)
     * @param driverId 司机ID
     * @param responseType 响应类型(1=同意,2=拒绝)
     * @return
     */
    ResultUtil respondReassignBatch(String reassignIds, Integer driverId, Integer responseType);
 
    /**
     * 查询待确认的改派申请列表
     * @param driverId 司机ID
     * @return
     */
    List<Map<String, Object>> queryPendingReassigns(Integer driverId);
 
    /**
     * 改派确认超时后恢复订单状态
     */
    void timeoutReassign(Reassign reassign) throws Exception;
}