@@ -82,6 +82,7 @@
left join sys_office sob on sub.office_id = sob.id
<where>
a.del_flag = #{DEL_FLAG_NORMAL}
+ and wa.del_flag = 0
<if test="id != null and id != ''">
AND a.id = #{id}
</if>