leutu
2024-05-20 a4e99a6a39284643fdf2b04dbe55212e5954973c
src/main/java/com/skyline/electricity/controller/DeviceController.java
@@ -34,7 +34,7 @@
    OutService outService;
    @Autowired
    private ConfigInfo configInfo;
    @RequestMapping(value = { "/getCameraEntity" }, method = { RequestMethod.POST })
    @ApiOperation("获取摄像头实体列表")
    @ResponseBody
@@ -55,7 +55,7 @@
        final JSONObject jsonObjectResult = JSONObject.parseObject(body);
        return jsonObjectResult.get((Object)"data");
    }
    @RequestMapping(value = { "/getCloudplatformInfo" }, method = { RequestMethod.POST })
    @ApiOperation("获取摄像头云台操作信息")
    @ResponseBody
@@ -76,7 +76,7 @@
        final ResponseEntity<String> responseEntity = (ResponseEntity<String>)restTemplate.postForEntity(this.configInfo.getDevice_ip()+   "/restapi/iot/iotinfomgr/service/invoke/cameras/ptzControl?apikey="  + this.configInfo.getApikey(), (Object)httpEntity, (Class)String.class, new Object[0]);
        return responseEntity.getBody();
    }
    @RequestMapping(value = { "/getPreviewUrls" }, method = { RequestMethod.POST })
    @ApiOperation("获取摄像头获取预览流url")
    @ResponseBody
@@ -102,7 +102,7 @@
        return json;
    }
    @RequestMapping(value = { "/getDoorAccessEntity" }, method = { RequestMethod.POST })
    @ApiOperation("获取门禁实体列表")
    @ResponseBody
@@ -123,7 +123,7 @@
        final JSONObject jsonObjectResult = JSONObject.parseObject(body);
        return jsonObjectResult.get((Object)"data");
    }
    @RequestMapping(value = { "/getPlaybackURLs" }, method = { RequestMethod.POST })
    @ApiOperation("摄像头获取回放流url")
    @ResponseBody
@@ -146,7 +146,7 @@
        final JSON json = (JSON)JSON.parse((String)responseEntity.getBody());
        return json;
    }
    @RequestMapping(value = { "/getHistoryDoorAccess" }, method = { RequestMethod.POST })
    @ApiOperation("获取历史门禁信息")
    @ResponseBody
@@ -169,7 +169,7 @@
        final JSON json = (JSON)JSON.parse((String)responseEntity.getBody());
        return json;
    }
    @RequestMapping(value = { "/getEquipmentInfo" }, method = { RequestMethod.POST })
    @ApiOperation("设备信息获取")
    @ResponseBody
@@ -182,7 +182,7 @@
        final JSON json = (JSON)JSON.parse((String)responseEntity.getBody());
        return json;
    }
    @RequestMapping(value = { "/getReconditionInfo" }, method = { RequestMethod.POST })
    @ApiOperation("获取设备的检修历史")
    @ResponseBody
@@ -195,7 +195,7 @@
        final JSON json = (JSON)JSON.parse((String)responseEntity.getBody());
        return json;
    }
    @RequestMapping(value = { "/getDeviceKKSInfo" }, method = { RequestMethod.POST })
    @ApiOperation("获取设备的KKS信息")
    @ResponseBody
@@ -223,7 +223,7 @@
        map.put("list", deviceList);
        return map;
    }
    @RequestMapping(value = { "/getDuty" }, method = { RequestMethod.POST })
    @ApiOperation("获取当值值长")
    @ResponseBody
@@ -233,11 +233,11 @@
        final Map<String, Object> map = new HashMap<String, Object>();
        final String dzzzresponse = (String)template.getForObject(this.configInfo.getDzzzUrl(), (Class)String.class, new Object[0]);
        final JSONObject json = JSONObject.parseObject(dzzzresponse);
        System.out.println(json.getJSONObject("data").getString("id"));
        //System.out.println(json.getJSONObject("data").getString("id"));
        DeviceController.log.warn(dzzzresponse.toString());
        return dzzzresponse;
    }
    @RequestMapping(value = { "/getOutPeople" }, method = { RequestMethod.GET })
    @ApiOperation("获取外包人员")
    @ResponseBody
@@ -246,7 +246,7 @@
        DeviceController.log.warn(list.toString());
        return list;
    }
    static {
        DeviceController.log = LoggerFactory.getLogger((Class)DeviceController.class);
    }