zhangnaisong
2024-02-02 527f4fd86eafb17dea8b9589b269da531299a6e5
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
package com.ruoyi.sy.service;
 
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;
 
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.scheduling.domian.SchedulingParam;
import com.ruoyi.sy.domain.ArdAccessFence;
import com.ruoyi.sy.domain.ArdSyCar;
import com.ruoyi.sy.domain.ArdSyUser;
import com.ruoyi.sy.param.ArdSyCarParam;
import com.ruoyi.utils.result.Results;
import org.springframework.web.multipart.MultipartFile;
 
/**
 * 三一车辆Service接口
 * 
 * @author ard
 * @date 2023-06-26
 */
public interface IArdSyCarService
{
    /**
     * 查询三一车辆
     * 
     * @param id 三一车辆主键
     * @return 三一车辆
     */
    public ArdSyCar selectArdSyCarById(String id);
 
    /**
     * 查询三一车辆列表
     * 
     * @param ardSyCar 三一车辆
     * @return 三一车辆集合
     */
    public List<ArdSyCar> selectArdSyCarList(ArdSyCar ardSyCar);
 
    AjaxResult ardSyCarList(ArdSyCarParam ardSyCarParam,Map<String,Object> result);
 
    /**
     * 新增三一车辆
     * 
     * @param ardSyCar 三一车辆
     * @return 结果
     */
    public int insertArdSyCar(ArdSyCar ardSyCar);
 
    /**
     * 修改三一车辆
     * 
     * @param ardSyCar 三一车辆
     * @return 结果
     */
    public int updateArdSyCar(ArdSyCar ardSyCar);
 
    /**
     * 批量删除三一车辆
     * 
     * @param ids 需要删除的三一车辆主键集合
     * @return 结果
     */
    public int deleteArdSyCarByIds(String[] ids);
 
    /**
     * 删除三一车辆信息
     * 
     * @param id 三一车辆主键
     * @return 结果
     */
    public int deleteArdSyCarById(String id);
 
    /**
     * 获取未挂接权限的三一车辆
     */
    public Map<String,Object> getArdSyCarNoRight(String userId);
 
    /**
     * 获取未挂接权限的三一车辆
     */
    public Map<String,Object> getArdSyCarAll(String userId);
 
    /**
     * 获取全部车辆模型
     */
    public List<Map<String,String>> getAllCarModel();
 
    /**
     * 上传车辆图片
     */
    public String uploadCarPicture(String id, MultipartFile carPicture);
 
    /**
     * 根据车辆id查询三一车辆及对应部门
     */
    public Map<String,Object> getArdSyCarAndDeptByCarId(String carId);
 
    /**
     * 根据部门发送车辆实时位置
     */
    public void sendArdSyCarPosition();
 
    /**
     * 根据部门发送车辆实时报警
     */
    public void sendArdSyCarAlarmByCarId(String carId, Map<String,Object> data);
//    List<ArdSyCar> getArdSyCarWithRightByCarIdList(List<String> carIdList);
 
    /**
     * 根据用户获取三一列表
     * @param ardSyUser
     * @param syURL
     * @param usersId
     * @return
     */
    Map<String,Object> allListByUser(ArdSyUser ardSyUser, String syURL,String usersId, List<Long> deptList);
 
    List<Map<String,String>> getCarList(ArdSyUser ardSyUser, String syURL,String usersId,String teamId);
 
 
    Results carListById(String id);
 
    /**
     * 根据dept集合查询出所有对应的carId
     * @param deptList
     * @return
     */
    List<Map<String,String>> carIdByDeptList(List<Long> deptList,List<Map<String,String>> list);
 
    Results getCarGPSTrack(Map<String,String> map,String syURL, ArdSyUser ardSyUser);
 
    Map<String, Object> getCarGPSBycarId(String usersId, String carId, String syURL, ArdSyUser ardSyUser);
 
    String getSessionId(String syURL,ArdSyUser ardSyUser);
 
    Map<String, Object> getCarPicture(String carId, String syURL, String sessionId);
 
    Map<String, Object> sendCmd(String userId,String syURL,String sessionId,String carId, List<String> channelList) throws UnsupportedEncodingException;
 
    Map<String, Object> getPhoto(String syURL,String carId,String sessionId,String startTime);
 
    Map<String, Object> getVideo(String syURL,String carId,ArdSyUser ardSyUser);
 
    /**
     * 根据用户及车辆主键追踪车辆
     */
    Results chaseCarByCarId(String usersId,String carId,String cycle);
 
    /**
     * 根据时间及车辆主键查询该月每天是否有轨迹
     */
    public Results getExistTraceByCarIdAndMonth(String userId,String carId,String time);
    /**
     * 获取附近范围内的车辆信息
     * */
    List<Map<String, Object>> getNearCar(SchedulingParam param);
    /**
     * 获取附近范围内的车辆信息(多边形)
     * */
    List<Map<String, Object>> getNearCarWithPolygon(SchedulingParam param);
 
    List<ArdSyCar> all();
 
    Map<String, Object> getAlarmHPfmCountDetail(String sessionId,String usersId,String carId,String startTime,String endTime,String syURL);
 
    public Map<String,Object> getOnlineSYCarPosition(String soilderId);
}