| | |
| | | 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.utils.result.Results; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | | * 三一车辆Service接口 |
| | |
| | | * @author ard |
| | | * @date 2023-06-26 |
| | | */ |
| | | public interface IArdSyCarService |
| | | public interface IArdSyCarService |
| | | { |
| | | /** |
| | | * 查询三一车辆 |
| | |
| | | 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); |
| | | |
| | | } |