...
|
...
|
@@ -240,9 +240,9 @@ public class JavaApiStaticsMapper implements IJavaApiStaticsMapper { |
|
|
}
|
|
|
//仅exception
|
|
|
if (status == 0) {
|
|
|
sql += " and is_exception= true ";
|
|
|
sql += " and is_exception= 'true' ";
|
|
|
} else if (status == 1) {
|
|
|
sql += " and is_exception= false ";
|
|
|
sql += " and is_exception= 'false' ";
|
|
|
}
|
|
|
sql += " order by time desc LIMIT " + limitCount + " OFFSET " + offsetCount;
|
|
|
log.info("sql:{}", sql);
|
...
|
...
|
@@ -323,7 +323,7 @@ public class JavaApiStaticsMapper implements IJavaApiStaticsMapper { |
|
|
int status = req.getStatus();
|
|
|
|
|
|
|
|
|
String sql = "select count(api_id) from " + InfluxDBContants.YOMO_TB_JAVAAPI;
|
|
|
String sql = "select count(api_type) from " + InfluxDBContants.YOMO_TB_JAVAAPI;
|
|
|
sql += " where time >= '" + timeStart + "' and time<= '" + timeEnd + "' ";
|
|
|
if (api_id > 0)
|
|
|
sql += " and api_id= '" + api_id + "'";
|
...
|
...
|
@@ -335,9 +335,9 @@ public class JavaApiStaticsMapper implements IJavaApiStaticsMapper { |
|
|
}
|
|
|
//仅exception
|
|
|
if (status == 0) {
|
|
|
sql += " and is_exception= true ";
|
|
|
sql += " and is_exception= 'true' ";
|
|
|
} else if (status == 1) {
|
|
|
sql += " and is_exception= false ";
|
|
|
sql += " and is_exception= 'false' ";
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|