yanderong
2026-07-23 393c3178a7beeb39915aff302d9f30ca2b6e5247
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
package com.stylefeng.guns.modular.system.service;
 
import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.modular.system.model.ServerCarModel;
import com.stylefeng.guns.modular.system.util.ResultUtil;
import com.stylefeng.guns.modular.system.warpper.ServerCarModelWarpper;
 
import java.util.List;
import java.util.Map;
 
public interface IServerCarModelService extends IService<ServerCarModel> {
 
 
    /**
     * 根据起点和终点获取车型和金额
     * @param startLonLat
     * @param endLonLat
     * @param type          业务类型
     * @return
     * @throws Exception
     */
    ResultUtil<List<ServerCarModelWarpper>> queryServerCarModel(String startLonLat, String endLonLat, Integer type) throws Exception;
 
    /**
     * 快捷叫车根据起点获取车辆信息,不计算预估价格。
     * @param startLonLat 起点经纬度
     * @return 车辆信息
     * @throws Exception
     */
    ResultUtil<List<ServerCarModelWarpper>> queryQuickCallServerCarModel(String startLonLat) throws Exception;
 
 
    /**
     * 获取业务类型对应的所有车型
     * @param type
     * @return
     */
    List<Map<String, Object>> queryServerCarModels(Integer type);
 
    /**
     * 计算各车型预估金额
     * @param companyId  企业id
     * @param distance   预估距离(米)
     * @param duration   预估时间(秒)
     * @param wait       等待时长(秒)
     * @param type       业务类型(专车=1)
     * @param geocode    地理编码(含 districtCode/cityCode/provinceCode)
     * @return           车型预估金额列表
     * @throws Exception
     */
    List<ServerCarModelWarpper> getPrice(Integer companyId, double distance, long duration,
                                         long wait, Integer type, Map<String, String> geocode) throws Exception;
}