Commit 2be1b52657d85d6ed647a8a66bc2c67fc4c155cb

Authored by liquanyu
1 parent d15715bbce

mysql数据同步

Showing 1 changed file with 3 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/inteceptor/MybatisSqlInterceptor.java View file @ 2be1b52
... ... @@ -36,11 +36,14 @@
36 36 if (invocation.getArgs().length > 1) {
37 37 parameter = invocation.getArgs()[1];
38 38 }
  39 +
39 40 String sqlId = mappedStatement.getId();
40 41 BoundSql boundSql = mappedStatement.getBoundSql(parameter);
41 42 Configuration configuration = mappedStatement.getConfiguration();
42 43 Object returnValue = invocation.proceed();
43 44 System.out.println("mysql result ======" + returnValue);
  45 + System.out.println( mappedStatement.getResource());
  46 + System.out.println(mappedStatement.getResulSets());
44 47 String sql = getSql(configuration, boundSql, sqlId);
45 48 System.out.println("mysql sql ======" + sql);
46 49 return returnValue;