Skip to content

Commit

Permalink
feat:多租户插件的查询使用索引的优化baomidou#6687
Browse files Browse the repository at this point in the history
  • Loading branch information
xxx-tea committed Feb 5, 2025
1 parent 70909ae commit 733b9e1
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ void selectSingleTenantIdColumnFirst() {

@Test
void selectSubSelectIn() {
tenantIdColumnFirst = true;
/* in */
assertSql("SELECT * FROM entity e WHERE e.id IN (select e1.id from entity1 e1 where e1.id = ?)",
"SELECT * FROM entity e WHERE e.id IN (SELECT e1.id FROM entity1 e1 WHERE e1.id = ? AND e1.tenant_id = 1) AND e.tenant_id = 1");
Expand Down

0 comments on commit 733b9e1

Please sign in to comment.