Parcourir la source

测试事务回退问题

java110 il y a 6 ans
Parent
commit
b924384f84

+ 3 - 0
java110-db/src/main/java/com/java110/db/Java110MybatisInterceptor.java

@@ -257,6 +257,9 @@ public class Java110MybatisInterceptor implements Interceptor {
             throw new IllegalArgumentException("sql 错误 未找到key" + sql);
         }
         for (int keyIndex = 0; keyIndex < tmpKeys.length; keyIndex++) {
+            if("''".equals(tmpValues[keyIndex])){
+                continue;
+            }
             afterValue.put(tmpKeys[keyIndex], tmpValues[keyIndex]);
         }
         afterValues.add(afterValue);