Commit 605794f4150ce2f89075f1ce8dd34ed3f220a6b6

Authored by liquanyu
1 parent b9a8771df7

mysql数据同步

Showing 1 changed file with 4 additions and 4 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/inteceptor/MybatisSqlInterceptor.java View file @ 605794f
1 1 package com.lyms.platform.operate.web.inteceptor;
2 2  
3 3  
4   -import java.sql.Statement;
5 4 import java.text.DateFormat;
6 5 import java.util.Date;
7 6 import java.util.List;
... ... @@ -10,7 +9,6 @@
10 9  
11 10 import com.lyms.platform.operate.web.utils.SendMysqlSyncDatUtil;
12 11 import org.apache.ibatis.executor.Executor;
13   -import org.apache.ibatis.executor.resultset.ResultSetHandler;
14 12 import org.apache.ibatis.mapping.BoundSql;
15 13 import org.apache.ibatis.mapping.MappedStatement;
16 14 import org.apache.ibatis.mapping.ParameterMapping;
17 15  
... ... @@ -27,11 +25,13 @@
27 25 * Created by Administrator on 2017-04-24.
28 26 */
29 27 @Intercepts({
30   - @Signature(type = Executor.class, method = "update", args = { MappedStatement.class, Object.class }),
31   - @Signature(type= ResultSetHandler.class, method = "handleResultSets", args = {Statement.class})
  28 + @Signature(type = Executor.class, method = "update", args = { MappedStatement.class, Object.class })
  29 +
32 30 })
33 31 public class MybatisSqlInterceptor implements Interceptor {
34 32  
  33 +
  34 +// @Signature(type= ResultSetHandler.class, method = "handleResultSets", args = {Statement.class})
35 35 private Properties properties;
36 36  
37 37 public Object intercept(Invocation invocation) throws Throwable {