fix(workflow): 审核部门查询去重

main
陈伟 2026-02-09 15:17:45 +08:00
parent 4d0bf5fc53
commit 824c28fb16
1 changed files with 2 additions and 1 deletions

View File

@ -723,7 +723,7 @@ public class WorkflowEngineApp : SqlSugarBaseApp<SysCategoryType, SugarDbContext
JoinType.Left, i.CurrentNodeId == n.NodeId
))
.Where((t, i, n) =>
i.InitiatorId == userId //区县
i.InitiatorId == userId //区县
|| SqlFunc.Exists(
SqlFunc.Subqueryable<ZyFlowWorkitem>()
.GroupBy(w => w.InstanceId)
@ -1315,6 +1315,7 @@ public class WorkflowEngineApp : SqlSugarBaseApp<SysCategoryType, SugarDbContext
.LeftJoin<SysUserRole>((o, uo, ur) => uo.UserId == ur.UserId)
.LeftJoin<SysRole>((o, uo, ur, r) => ur.RoleId == r.Id)
.Where((o, uo, ur, r) => r.Id == 770508474880069L)
.GroupBy((o, uo, ur, r) => o.Id)
.Select((o, uo, ur, r) => new
{
o.Name,