fix(workflow): 审核部门查询去重
parent
4d0bf5fc53
commit
824c28fb16
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue