fix 优化审批节点逻辑

This commit is contained in:
yubaolee
2025-04-11 13:24:59 +08:00
parent ca9835a039
commit fc9d786a83
3 changed files with 29 additions and 30 deletions

View File

@@ -761,10 +761,10 @@ namespace OpenAuth.App.Flow
/// <summary>
/// 替换SQL中的权限占位符
/// <para>如select id from sysuser where parentId = {loginUser}</para>
/// <para>替换后select id from sysuser where parentId = '123'</para>
/// <para>如select id from sysuser where parentId = {loginUser}</para>
/// <para>如当前用户的全部下属select id from sysuser where parentId = {loginUser}</para>
/// <para>替换后select id from sysuser where parentId = '123'</para>
/// <para>如d登录用户同部门的人select id from sysuser where id in (select firstid from relevance where secondid in ({loginOrg}) and relkey = 'UserOrg')</para>
/// <para>替换后: select id from sysuser where id in (select firstid from relevance where secondid in ('123','456') and relkey = 'UserOrg')</para>
/// </summary>
/// <param name="sql"></param>
/// <returns></returns>