| | |
| | | //解压数据 |
| | | FileZip fileZip = new FileZip(); |
| | | fileZip.ZipUncompress("E:\\nginx-1.18.0\\dist\\car\\" + substring + ".zip", "E:\\nginx-1.18.0\\dist\\car"); |
| | | //fileZip.ZipUncompress("D:\\caiji\\" + substring + ".zip", "D:\\caiji\\car"); |
| | | csvurl = substring + ".csv"; |
| | | } |
| | | /** |
| | |
| | | String url = "http://223.82.109.183:2080/Escort/getgis.php"; |
| | | Map<String, Object> params = new HashMap<>(); |
| | | //设备imei号 |
| | | //params.put("number", "7730"); |
| | | params.put("acc", "7731"); |
| | | String res = null; |
| | | res = HttpReqUtil.getInstance().doPost(url, params, null); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 轨迹 |
| | | * @return |
| | | * 人员轨迹 |
| | | * @return、 |
| | | * @throws Exception |
| | | */ |
| | | @GetMapping("/Peog") |
| | | public String Peocar() throws Exception { |
| | | public String Peocar(String startTime,String endTime) throws Exception { |
| | | String url = "http://223.82.109.183:2080/Escort/getgistrack.php"; |
| | | Map<String, Object> params = new HashMap<>(); |
| | | //设备imei号 |
| | | params.put("number", "7730"); |
| | | params.put("acc", "7731"); |
| | | params.put("startTime", startTime); |
| | | params.put("endTime", endTime); |
| | | String res = null; |
| | | res = HttpReqUtil.getInstance().doPost(url, params, null); |
| | | return res; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询押运车辆 |
| | | * @return |
| | | */ |
| | | @GetMapping("/selectCar") |
| | | public R selectCar() { |
| | | List<Map<Object, Object>> maps = carService.selectCar(); |
| | | return R.data(maps); |
| | | } |
| | | } |