作者 tangxvhui

调整 人员下级,下下级的查询条件

... ... @@ -191,7 +191,7 @@ func (d *TaskAnomalyDao) List2(userId int, companyId int, taskName string, categ
and t_task_ignore.id isnull
and task.deleted_at isnull
and task.leader ->>'id' in (
select t_user.id::text from t_user where t_user."level">=?
select t_user.id::text from t_user where t_user."level"=?
)
)
select
... ... @@ -255,7 +255,7 @@ func (d *TaskAnomalyDao) List2(userId int, companyId int, taskName string, categ
and t_task_ignore.id isnull
and task.deleted_at isnull
and task.leader ->>'id' in (
select t_user.id::text from t_user where t_user."level">=?
select t_user.id::text from t_user where t_user."level"=?
)
)
select count(*) as cnt
... ...