aijinhui
2024-02-23 2df696b07d0ffdf7829d4d9cd3da23162dec8799
ard-work/src/main/java/com/ruoyi/sy/controller/ArdSyCarLockController.java
@@ -217,7 +217,7 @@
    @GetMapping("/lockIng")
    @ApiOperation("实时锁状态")
    public AjaxResult lockIng(String carId)  {
        return AjaxResult.success(ardSyCarLockService.lockIng(carId));
        return ardSyCarLockService.lockIng(carId);
    }
@@ -231,13 +231,15 @@
            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;
    }