| | |
| | | @GetMapping(value = "/eventSubscriptionByEventTypes") |
| | | public R eventSubscriptionByEventTypes(EventVO eventVO) { |
| | | String result = addEventSubscriptionByEventTypes(eventVO, HkConstant.eventSubscriptionByEventTypesURLs); |
| | | log.info("事件订阅返回信息:" + result); |
| | | JSONObject jsonObject1 = JSONObject.parseObject(result); |
| | | // 查询海康设备列表并返回 |
| | | return R.data(jsonObject1); |
| | |
| | | String prettyData = JSON.toJSONString(jsonObject, SerializerFeature.PrettyFormat, |
| | | SerializerFeature.WriteMapNullValue); |
| | | System.out.println(simpleDateFormat.format(date) + "收到数据:" + System.lineSeparator() + prettyData); |
| | | log.info(simpleDateFormat.format(date) + "收到数据:" + System.lineSeparator() + prettyData); |
| | | |
| | | JSONObject jsonBody = new JSONObject(); |
| | | jsonBody.put("code", "200"); |