作者 tangxvhui

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

@@ -191,7 +191,7 @@ func (d *TaskAnomalyDao) List2(userId int, companyId int, taskName string, categ @@ -191,7 +191,7 @@ func (d *TaskAnomalyDao) List2(userId int, companyId int, taskName string, categ
191 and t_task_ignore.id isnull 191 and t_task_ignore.id isnull
192 and task.deleted_at isnull 192 and task.deleted_at isnull
193 and task.leader ->>'id' in ( 193 and task.leader ->>'id' in (
194 - select t_user.id::text from t_user where t_user."level">=? 194 + select t_user.id::text from t_user where t_user."level"=?
195 ) 195 )
196 ) 196 )
197 select 197 select
@@ -255,7 +255,7 @@ func (d *TaskAnomalyDao) List2(userId int, companyId int, taskName string, categ @@ -255,7 +255,7 @@ func (d *TaskAnomalyDao) List2(userId int, companyId int, taskName string, categ
255 and t_task_ignore.id isnull 255 and t_task_ignore.id isnull
256 and task.deleted_at isnull 256 and task.deleted_at isnull
257 and task.leader ->>'id' in ( 257 and task.leader ->>'id' in (
258 - select t_user.id::text from t_user where t_user."level">=? 258 + select t_user.id::text from t_user where t_user."level"=?
259 ) 259 )
260 ) 260 )
261 select count(*) as cnt 261 select count(*) as cnt