|
|
|
@@ -152,7 +152,10 @@ public class MultiTenancy implements Interceptor { |
|
|
|
if (getTenantInfo().doTableFilter(table)) |
|
|
|
continue; |
|
|
|
if (where != null) { |
|
|
|
updateStatement.setWhere(addAndExpression(stmt, table, updateStatement.getWhere())); |
|
|
|
AndExpression andE = addAndExpression(stmt, table, updateStatement.getWhere()); |
|
|
|
if (andE != null) { |
|
|
|
updateStatement.setWhere(andE); |
|
|
|
} |
|
|
|
} else { |
|
|
|
throw new Exception("update语句不能没有where条件:" + sql + Arrays.toString(Thread.currentThread().getStackTrace())); |
|
|
|
} |
|
|
|
|