Commit 547f964d1cfeee7f04ffbd55b7e34ae2cfce5d91
1 parent
d507f5ad14
Exists in
master
and in
1 other branch
update code
Showing 1 changed file with 1 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/inteceptor/MybatisSqlInterceptor.java
View file @
547f964
... | ... | @@ -84,7 +84,7 @@ |
84 | 84 | else |
85 | 85 | { |
86 | 86 | System.out.println("else = "+sql); |
87 | - if (StringUtils.isNotEmpty(sql) && "insert".equals(sqlCommandType.toLowerCase())) | |
87 | + if (StringUtils.isNotEmpty(sql) && sqlCommandType != null && "insert".equals(sqlCommandType.toLowerCase())) | |
88 | 88 | { |
89 | 89 | returnValue = invocation.proceed(); |
90 | 90 | if (returnValue != null && returnValue instanceof ArrayList) |