|
@@ -96,7 +96,7 @@
|
|
|
INNER JOIN t_user_dept a on a.user_id=tpuA.user_id and a.main_dept='Y'
|
|
INNER JOIN t_user_dept a on a.user_id=tpuA.user_id and a.main_dept='Y'
|
|
|
INNER JOIN t_sys_dept tsd on tsd.dept_id=a.dept_id
|
|
INNER JOIN t_sys_dept tsd on tsd.dept_id=a.dept_id
|
|
|
<where>
|
|
<where>
|
|
|
- and tpuA.del_flag='0'
|
|
|
|
|
|
|
+ and tpuA.del_flag='0' and tsd.del_flag='0'
|
|
|
<if test="bo.category!=null and bo.category!=''">
|
|
<if test="bo.category!=null and bo.category!=''">
|
|
|
and tpuA.category=#{bo.category}
|
|
and tpuA.category=#{bo.category}
|
|
|
</if>
|
|
</if>
|