Commit 7cb56d8b4301b4e2bbe35441725a333690cb647e
1 parent
74d15f1cfc
Exists in
master
and in
6 other branches
update
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 @
7cb56d8
... | ... | @@ -149,17 +149,17 @@ |
149 | 149 | */ |
150 | 150 | private boolean isSyncTable(String sql) |
151 | 151 | { |
152 | - boolean result = false; | |
152 | + boolean use = false; | |
153 | 153 | boolean nouse = true; |
154 | 154 | if (StringUtils.isEmpty(sql)) |
155 | 155 | { |
156 | - return result; | |
156 | + return use; | |
157 | 157 | } |
158 | 158 | for(String key : uses) |
159 | 159 | { |
160 | 160 | if (sql.toLowerCase().contains(key)) |
161 | 161 | { |
162 | - result = true; | |
162 | + use = true; | |
163 | 163 | break; |
164 | 164 | } |
165 | 165 | } |
... | ... | @@ -172,7 +172,7 @@ |
172 | 172 | break; |
173 | 173 | } |
174 | 174 | } |
175 | - return nouse && result; | |
175 | + return nouse && use; | |
176 | 176 | } |
177 | 177 | |
178 | 178 | public static String getSql(Configuration configuration, BoundSql boundSql, String sqlId) { |