chenweida 6 rokov pred
rodič
commit
5be4589a96

+ 1 - 1
admin/admin-server-starter/src/main/java/com/yihu/admin/server/log/LogEndPoint.java

@ -212,7 +212,7 @@ public class LogEndPoint {
        spanname = spanname.toLowerCase();
        List<QuotaSQLModel> logs = new ArrayList<>();
        StringBuffer sql = new StringBuffer("SELECT sql,excuteTime,eventStartTime FROM  " + adminServerProperties.getRealDefaultIndexName() + " " +
                " where spanName ='" + spanname + "' and eventName='system_sql_springJDBC_tracer' and eventTime>1500 ");
                " where spanName ='" + spanname + "' and eventName='system_sql_springJDBC_tracer' and excuteTime>1500 order by excuteTime desc");
        List<Map<String, Object>> traceidList = elastricSearchHelper.excuceSQL(sql.toString());
        if (traceidList.size() > 0) {
            for (Map<String, Object> one : traceidList) {

+ 1 - 1
demo/demo-admin-client/src/main/java/com/yihu/client/controller/DemoController.java

@ -56,7 +56,7 @@ public class DemoController {
    @RequestMapping(value = "/testSQL", method = RequestMethod.POST)
    public String loginfoPOST(
            String sql
    ) {
    ) throws InterruptedException {
        jdbcTemplate.queryForList(sql);
        jdbcTemplate.queryForList(sql);
        jdbcTemplate.queryForList(sql);