puzhibing
2023-12-01 dae4651a80ac06f432a2ff448a199afb6dc0d2b3
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
package com.stylefeng.guns.modular.system.service;
 
import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.modular.system.model.OrderEvaluate;
import com.stylefeng.guns.modular.system.util.ResultUtil;
 
import java.util.List;
import java.util.Map;
 
public interface IOrderEvaluateService extends IService<OrderEvaluate> {
 
 
    /**
     * 添加评价数据
     * @param orderId
     * @param orderType
     * @param fraction
     * @param content
     * @throws Exception
     */
    ResultUtil saveData(Integer orderId, Integer orderType, Integer fraction, String content, Integer language) throws Exception;
 
 
    /**
     * 获取司机历史评价列表
     * @param driverId
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> queryOrderEvaluate(Integer language, Integer driverId, Integer pageNum, Integer size) throws Exception;
 
 
    /**
     * 获取司机评分
     * @param driverId
     * @return
     * @throws Exception
     */
    Double queryDriverScore(Integer driverId) throws Exception;
}