Commit 15d2991e7afc29413f76a36c64de84df2d00d454
1 parent
e97cf19859
Exists in
master
and in
6 other branches
update code
Showing 2 changed files with 15 additions and 9 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/inteceptor/MybatisSqlInterceptor.java
View file @
15d2991
... | ... | @@ -60,22 +60,22 @@ |
60 | 60 | Configuration configuration = mappedStatement.getConfiguration(); |
61 | 61 | sqlCommandType = mappedStatement.getSqlCommandType().name(); |
62 | 62 | |
63 | - if (!(sql.toUpperCase().contains("LIS_REPORT_TBL") || sql.toUpperCase().contains("RIS_REPORT_TBL"))) | |
64 | - { | |
65 | 63 | |
66 | 64 | if ("update".equals(sqlCommandType.toLowerCase()) || "delete".equals(sqlCommandType.toLowerCase())) |
67 | 65 | { |
68 | - sql = getSql(configuration, boundSql, sqlId); | |
69 | - System.out.println("delete and update sync sql = "+sql); | |
70 | - //发送要同步的sql | |
71 | - SendMysqlSyncDatUtil.sendSql(sql, sqlId); | |
72 | - sql = null; | |
66 | + if (!(sql.toUpperCase().contains("LIS_REPORT_TBL") || sql.toUpperCase().contains("RIS_REPORT_TBL"))) { | |
67 | + | |
68 | + sql = getSql(configuration, boundSql, sqlId); | |
69 | + System.out.println("delete and update sync sql = " + sql); | |
70 | + //发送要同步的sql | |
71 | + SendMysqlSyncDatUtil.sendSql(sql, sqlId); | |
72 | + sql = null; | |
73 | + } | |
73 | 74 | } |
74 | 75 | else if ("insert".equals(sqlCommandType.toLowerCase()) ) |
75 | 76 | { |
76 | 77 | sql = getSql(configuration, boundSql, sqlId); |
77 | 78 | } |
78 | - } | |
79 | 79 | |
80 | 80 | System.out.println("sqlCommandType = "+sqlCommandType+":mysql sql =" + sql); |
81 | 81 | returnValue = invocation.proceed(); |
pom.xml
View file @
15d2991
... | ... | @@ -544,6 +544,12 @@ |
544 | 544 | <artifactId>commons-dbutils</artifactId> |
545 | 545 | <version>1.6</version> |
546 | 546 | </dependency> |
547 | + <!--<dependency>--> | |
548 | + <!--<groupId>com.microsoft.sqlserver</groupId>--> | |
549 | + <!--<artifactId>sqljdbc4</artifactId>--> | |
550 | + <!--<version>4.0</version>--> | |
551 | + <!--</dependency>--> | |
552 | + | |
547 | 553 | </dependencies> |
548 | 554 | </project> |