Commit 7f376b6c authored by nie'hong's avatar nie'hong Committed by cq990612

修改查找用户状态

parent 9ff9d95a
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
<select id="listByDeptIdAndStatus" resultType="integer" parameterType="integer"> <select id="listByDeptIdAndStatus" resultType="integer" parameterType="integer">
select user_id select user_id
from <include refid="table"/> from work_user_dept ud join work_user u on ud.user_id = u.id
where dept_id = #{deptId} and status = 1 where ud.dept_id = #{deptId} and u.`status` = 1
</select> </select>
</mapper> </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