|
|
@@ -640,7 +640,7 @@
|
|
|
select dept_id, dept_name, dept_id as sub_dept_id, dept_name as sub_dept_name from tidb.deepthink.sys_dept where parent_id in (300)
|
|
|
) tb5
|
|
|
on tb4.dept_id = tb5.sub_dept_id
|
|
|
- where tb4.user_id is not null
|
|
|
+ where tb4.user_id is not null and tb5.dept_id is not null
|
|
|
</sql>
|
|
|
<select id="deptRank2" resultType="java.util.Map">
|
|
|
select tb5.sub_dept_id as dept_id, concat(tb5.dept_name, '-', tb5.sub_dept_name) as dept_name,
|