Skip to content

Commit

Permalink
根据表名判断是否包含此字符串忽略拼接多租户ID条件(匹配判断)
Browse files Browse the repository at this point in the history
  • Loading branch information
wency_cai committed Jan 3, 2023
1 parent 2a7b960 commit a90856f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<dependency>
<groupId>io.github.osinn</groupId>
<artifactId>druid-multi-tenant-starter</artifactId>
<version>1.4</version>
<version>1.4.1</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>io.github.osinn</groupId>
<artifactId>druid-multi-tenant-starter</artifactId>
<version>1.4</version>
<version>1.4.1</version>
<name>druid-multi-tenant-starter</name>
<description>druid-multi-tenant-starter</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ private boolean ignoreTable(String tableName) {
return true;
}
if (!isEmpty(ignoreMatchTableNames)) {
ignore = ignoreMatchTableNames.stream().allMatch(str -> str.contains(ignoreTableName));
ignore = ignoreMatchTableNames.stream().allMatch(ignoreTableName::contains);
}
return ignore;
}
Expand Down

0 comments on commit a90856f

Please sign in to comment.