优化 DataScope 数据权限,移除 apiMode 参数,增加 apiMode 方法;

优化 DataScope 数据权限,增加 debug、joinMode、ruleSql 方法,方便动态调用
优化 扩展查询 SQL 实现,使用 sqlMap().getColumn().addExtSql 替代 extColumnKeys;
优化 扩展查询 SQL 实现,使用 sqlMap().getTable().addExtSql 替代 extFormKeys;
优化 扩展查询 SQL 实现,使用 sqlMap().getWhere().addExtSql 替代 extWhereKeys;
新增 扩展更新 SQL 语句,sqlMap().getUpdate().addExtColumnSql 和 addExtWhereSql
This commit is contained in:
thinkgem
2025-04-02 16:38:23 +08:00
parent e28f4c9d12
commit 78c10ba2be
7 changed files with 127 additions and 88 deletions

View File

@@ -61,7 +61,7 @@ import java.util.Date;
@Column(name = "site_code"),
@Column(name = "site_name"),
})
}, extWhereKeys = "dsfCategory", orderBy = "a.weight DESC, a.update_date DESC"
}, orderBy = "a.weight DESC, a.update_date DESC"
)
public class Article extends DataEntity<Article> {

View File

@@ -49,7 +49,7 @@ import java.util.List;
on = "s.site_code = a.site_code", columns = {
@Column(name = "site_name"),
})
}, extWhereKeys = "dsfCategory", orderBy = "a.tree_sorts, a.category_code"
}, orderBy = "a.tree_sorts, a.category_code"
)
public class Category extends TreeEntity<Category> {