json处理
JSONObject jsonObject = new JSONObject(); map = alarmService.selectAlarmLiveIssue(endDate, taskDays,eci, issuetype); jsonObject.putAll(map, JsonObjectDefaultNullConfig.getInstance()); HandAppUtils.returnResult(res, "success", "0", "操作成功", jsonObject); logger.info("\r\n\r\n告警分析-告警与性能指标关联分析图:" + (System.currentTimeMillis() - start_time) / 1000 + " 秒。\r\n"); catch (Exception e) { e.printStackTrace(); HandAppUtils.returnResult(res, "error", "1", "获取数据失败!", jsonObject); return; }