| | |
| | | |
| | | //一机一档 |
| | | public void monitorTask() { |
| | | //一机一档合格率 |
| | | // 一机一档注册率 |
| | | // 档案考核比 |
| | | log.info("开始执行一机一档数据同步"); |
| | | OneMachineFileParam param = new OneMachineFileParam(); |
| | | JSONObject jsonObject = uyClient.oneMachineFile(param); |
| | | if (jsonObject != null) { |
| | | log.info("数据格式" + jsonObject); |
| | | JSONObject cameraList = jsonObject.getJSONObject("CameraList"); |
| | | if (cameraList != null) { |
| | | List<OneMachineFileResult> data = cameraList.getList("data", OneMachineFileResult.class); |
| | |
| | | param.setPageSize(ApiConstants.PageSize); |
| | | JSONObject jsonObject = uyClient.monitorQualify(param); |
| | | if (jsonObject != null) { |
| | | log.info("数据格式" + jsonObject); |
| | | String code = jsonObject.getString("code"); |
| | | if (ApiConstants.UYSuccessCodeStr.equals(code)) { |
| | | JSONObject data = jsonObject.getJSONObject("data"); |
| | |
| | | param.setIcmpStatus(ApiConstants.UY_OnlineStatus_All); |
| | | JSONObject jsonObject = uyClient.videoOnline(param); |
| | | if (jsonObject != null) { |
| | | log.info("数据格式" + jsonObject); |
| | | Integer statusCode = jsonObject.getInteger("statusCode"); |
| | | if (ApiConstants.UYSuccessCode.equals(statusCode)) { |
| | | JSONObject data = jsonObject.getJSONObject("data"); |
| | |
| | | param.setPageSize(ApiConstants.PageSize); |
| | | JSONObject jsonObject = uyClient.osdMonitorList(param, tenantId); |
| | | if (jsonObject != null) { |
| | | log.info("数据格式" + jsonObject); |
| | | if (ApiConstants.UYSuccessCodeStr.equals(jsonObject.getString("code"))) { |
| | | JSONObject data = jsonObject.getJSONObject("data"); |
| | | if (data != null) { |