...
|
...
|
@@ -232,10 +232,10 @@ public class JavaApiStaticsMapper implements IJavaApiStaticsMapper { |
|
|
String sql = "select * from " + InfluxDBContants.YOMO_TB_JAVAAPI;
|
|
|
sql += " where time >= '" + timeStart + "' and time<= '" + timeEnd + "' ";
|
|
|
if (api_id > 0)
|
|
|
sql += " and api_id= 1" + api_id + "' ";
|
|
|
sql += " and api_id= '" + api_id + "' ";
|
|
|
//有mid 直接使用mid检索 不考虑ip
|
|
|
if (mobj_id > 0) {
|
|
|
sql += " and mobj_id= 1" + mobj_id + "' ";
|
|
|
sql += " and mobj_id= '" + mobj_id + "' ";
|
|
|
} else if (mIp != null && !mIp.equals("")) {
|
|
|
sql += " and mobj_ip= '" + mIp + "' ";
|
|
|
}
|
...
|
...
|
@@ -304,8 +304,8 @@ public class JavaApiStaticsMapper implements IJavaApiStaticsMapper { |
|
|
javaApiStaticsModel.setException(exception);
|
|
|
} else {
|
|
|
javaApiStaticsModel.setStatus(1);
|
|
|
String response = (String) series.getValues().get(i).get(series.getColumns().indexOf("response"));
|
|
|
javaApiStaticsModel.setResponse(response);
|
|
|
// String response = (String) series.getValues().get(i).get(series.getColumns().indexOf("response"));
|
|
|
// javaApiStaticsModel.setResponse(response);
|
|
|
}
|
|
|
list.add(javaApiStaticsModel);
|
|
|
}
|
...
|
...
|
|