Commit c3d32cb9 authored by nie'hong's avatar nie'hong

修改查找用户状态

parent 31a0f1fa
......@@ -28,8 +28,8 @@
<select id="listByDeptIdAndStatus" resultType="integer" parameterType="integer">
select user_id
from <include refid="table"/>
where dept_id = #{deptId} and status = 1
from work_user_dept ud join work_user u on ud.user_id = u.id
where ud.dept_id = #{deptId} and u.`status` = 1
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment