puzhibing
2023-06-30 f58cca364b731eac2d60a440ffaa804be3cd43fd
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
package com.stylefeng.guns.modular.system.service;
 
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.stylefeng.guns.modular.system.controller.resp.TOrderResp;
import com.stylefeng.guns.modular.system.controller.resp.TOrderServerResp;
import com.stylefeng.guns.modular.system.model.TOrder;
import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.modular.system.util.ResultUtil;
import org.springframework.ui.Model;
 
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author stylefeng
 * @since 2023-02-15
 */
public interface ITOrderService extends IService<TOrder> {
 
    /**
     * 获取订单列表
     * @param createTime
     * @param code
     * @param source
     * @param userName
     * @param userPhone
     * @param state
     * @param driverName
     * @return
     */
    List<TOrderResp> getOrderList(String createTime, String code, Integer source, String userName, String userPhone, Integer state, String driverName,Integer isException);
 
    /**
     * 跳转详情页面
     * @param orderId
     * @param model
     */
    void orderDetail(Integer orderId, Model model);
 
    /**
     * 跳转异常详情页面
     * @param orderId
     * @param model
     */
    void orderExceptionDetail(Integer orderId, Model model);
 
    /**
     * 订单统计,每年按月份
     * @param agentId
     * @param model
     */
    void getDataStatisticsByYear(Integer agentId,String yearDate, Model model,Map<String, Object> map);
 
    /**
     * 单量
     * @param agentId
     * @param monthDate
     * @param model
     */
    void getDataStatisticsOrderCount(Integer agentId, String monthDate, Model model,Map<String, Object> map);
 
    /**
     * 查询统计待接单,服务中,已完成,已取消
     * @param agentId
     * @param model
     */
    void getDataStatisticsCount(Integer agentId, Model model);
 
    /**
     * 查询服务中的订单列表
     * @param agentId
     * @return
     */
    List<TOrderServerResp> getDataStatisticsServerList(Integer agentId);
 
    /**
     * 查询今天所有订单
     * @param agentId
     * @return
     */
    List<TOrder> getDataStatisticsAllList(Integer agentId,Integer type);
 
    /**
     * 查询统计在线司机,待接单,服务中,已完成,已取消
     * @param ids
     * @param model
     */
    void getDataStatisticsCountByIds(List<Integer> ids, Model model);
 
    /**
     * 查询服务中的订单列表
     * @param ids
     * @return
     */
    List<TOrderServerResp> getDataStatisticsServerListByIds(List<Integer> ids);
 
    /**
     * 查询今天所有订单
     * @param ids
     * @return
     */
    List<TOrder> getDataStatisticsAllListByIds(List<Integer> ids,Integer type);
 
    /**
     * 查询统计在线司机
     * @param agentId
     * @param map
     */
    void getDataStatisticsCountGetMap(Integer agentId, HashMap<String, Object> map);
 
    /**
     * 查询统计在线司机(广东)
     * @param ids
     * @param map
     */
    void getDataStatisticsCountByIdsGetMap(List<Integer> ids, HashMap<String, Object> map);
 
    /**
     * 订单统计,每年按月份
     * @param ids
     * @param yearDate
     * @param model
     * @param map
     */
    void getDataStatisticsByYearByIds(List<Integer> ids, String yearDate, Model model, Map<String, Object> map);
 
    /**
     * 业绩排名单量(广东)
     * @param ids
     * @param monthDate
     * @param model
     * @param map
     */
    void getDataStatisticsOrderCountByIds(List<Integer> ids, String monthDate, Model model, Map<String, Object> map);
 
    /**
     * 订单统计 本月
     * @param agentId
     * @param dayDate
     * @param model
     * @param map
     */
    void getStatisticsOrderByMonth(Integer agentId, String dayDate, Model model, Map<String, Object> map);
 
    /**
     * 查询本月广东
     * @param ids
     * @param dayDate
     * @param model
     * @param map
     */
    void getStatisticsOrderByMonthIds(List<Integer> ids, String dayDate, Model model, Map<String, Object> map);
 
    /**
     * 查询司机当月有效订单数量
     * @param driverId
     * @param orderMoney
     * @param month
     * @return
     */
    Integer getValidOrderCount(Integer driverId, BigDecimal orderMoney, String month);
 
 
    /**
     * 添加订单
     * @param tOrder
     * @return
     */
    ResultUtil add(TOrder tOrder);
}