<select id="selectEventUserCountList" parameterType="EventUserCount" resultMap="EventUserCountResult"><!--<include refid="selectEventUserCountVo"/>-->
select * from tb_event_user_count e LEFTJOIN sys_dept d ON e.dept_id = d.dept_id
<where><if test="deptId != null and deptId != 0">AND(d.dept_id = #{deptId}OR d.dept_id IN(SELECT d.dept_id FROM sys_dept d WHEREfind_in_set(#{deptId},
ancestors)))</if><if test="userName != null and userName != ''">
and user_name like concat('%', #{userName},'%')</if></where><!-- 数据范围过滤 -->
${params.dataScope}</select>
import{ deptTreeSelect } from "@/api/system/user";importTreeselect from "@riophae/vue-treeselect";import"@riophae/vue-treeselect/dist/vue-treeselect.css";
components:{Treeselect},