Commit 2fa2cc7d0be5402ec9d0177aeef489c44ce165a8
1 parent
0bc194fd89
Exists in
master
and in
8 other branches
增加配置
Showing 1 changed file with 5 additions and 2 deletions
platform-common/src/main/java/com/lyms/platform/common/perf/DalMethodInterceptor.java
View file @
2fa2cc7
| ... | ... | @@ -57,6 +57,9 @@ |
| 57 | 57 | private String getShortArgs(Object[] obj) { |
| 58 | 58 | StringBuilder builder = new StringBuilder("("); |
| 59 | 59 | for (Object o : obj) { |
| 60 | + if(null==o){ | |
| 61 | + continue; | |
| 62 | + } | |
| 60 | 63 | if (o.getClass().isPrimitive()) { |
| 61 | 64 | builder.append(o); |
| 62 | 65 | } else { |
| 63 | 66 | |
| ... | ... | @@ -65,9 +68,9 @@ |
| 65 | 68 | builder.append(","); |
| 66 | 69 | } |
| 67 | 70 | if(builder.toString().endsWith(",")){ |
| 68 | - builder.deleteCharAt(builder.length()-1).append(")"); | |
| 71 | + builder.deleteCharAt(builder.length() - 1); | |
| 69 | 72 | } |
| 70 | - return builder.toString(); | |
| 73 | + return builder.append(")").toString(); | |
| 71 | 74 | } |
| 72 | 75 | } |