| | |
| | | @GetMapping("/lockIng") |
| | | @ApiOperation("实时锁状态") |
| | | public AjaxResult lockIng(String carId) { |
| | | return AjaxResult.success(ardSyCarLockService.lockIng(carId)); |
| | | return ardSyCarLockService.lockIng(carId); |
| | | } |
| | | |
| | | |
| | |
| | | String carId = carVo.getCarId(); |
| | | Map<String,Object> map = ardSyCarService.getCarGPSBycarId(usersId,carId,syURL,ardSyUser); |
| | | List list1 = (List) map.get("list"); |
| | | JSONObject jsonObject = JSONObject.parseObject(JSONObject.toJSONString(list1.get(0))); |
| | | String carPlate = (String) jsonObject.get("carPlate"); |
| | | carVo.setCarPlate(carPlate); |
| | | String drvName = (String) jsonObject.get("drvName"); |
| | | carVo.setDrvName(drvName); |
| | | String drvPhone = (String) jsonObject.get("drvPhone"); |
| | | carVo.setDrvPhone(drvPhone); |
| | | if(list1.size()>0){ |
| | | JSONObject jsonObject = JSONObject.parseObject(JSONObject.toJSONString(list1.get(0))); |
| | | String carPlate = (String) jsonObject.get("carPlate"); |
| | | carVo.setCarPlate(carPlate); |
| | | String drvName = (String) jsonObject.get("drvName"); |
| | | carVo.setDrvName(drvName); |
| | | String drvPhone = (String) jsonObject.get("drvPhone"); |
| | | carVo.setDrvPhone(drvPhone); |
| | | } |
| | | } |
| | | return list; |
| | | } |