|
|
@@ -684,6 +684,7 @@
|
|
|
left join tidb.deepthink.sys_dept c
|
|
|
on b.dept_id=c.dept_id
|
|
|
where dept_name is not null
|
|
|
+ and b.user_id in (select distinct user_id from tidb.deepthink.sys_user_role where role_id in (103,104))
|
|
|
group by dept_name
|
|
|
</select>
|
|
|
<select id="cutUserRank" resultType="java.util.Map">
|
|
|
@@ -698,6 +699,7 @@
|
|
|
left join tidb.deepthink.sys_dept c
|
|
|
on b.dept_id=c.dept_id
|
|
|
where stat_datetime=${date} and b.dept_id=${deptId} and b.status=0 and b.del_flag=0
|
|
|
+ and b.user_id in (select distinct user_id from tidb.deepthink.sys_user_role where role_id in (103,104))
|
|
|
</select>
|
|
|
<select id="allBusinessPushData" resultType="java.util.Map">
|
|
|
select
|