|
|
@@ -98,13 +98,13 @@
|
|
|
<select id="getUsersCenterManageCount" parameterType="com.xintong.visualinspection.bean.StatisticsBean" resultType="java.lang.Integer">
|
|
|
SELECT count(1) FROM t_sys_users t
|
|
|
INNER JOIN t_br_layer_fee_station tf ON t.organid = tf.organ_id
|
|
|
- WHERE t.status >0 AND t.positionid in (1,6) AND t.organid in ( SELECT id FROM t_sys_organ where parentid=#{dept_id} )
|
|
|
+ WHERE t.status >0 AND t.positionid in (1,4,5,6) AND t.organid in ( SELECT id FROM t_sys_organ where parentid=#{dept_id} )
|
|
|
</select>
|
|
|
|
|
|
<select id="getUsersCountList" resultType="com.xintong.visualinspection.bean.StatisticsBean">
|
|
|
SELECT t.organid AS dept_id , count(1) AS people_num,tf.name FROM t_sys_users t
|
|
|
INNER JOIN t_br_layer_fee_station tf ON t.organid = tf.organ_id
|
|
|
- WHERE t.status >0 AND t.positionid in (1,6) GROUP BY t.organid
|
|
|
+ WHERE t.status >0 AND t.positionid in (1,4,5,6) GROUP BY t.organid
|
|
|
ORDER BY t.organid
|
|
|
</select>
|
|
|
|