@@ -776,8 +776,12 @@
from admin_websit a
<where>
- <if test="websitId == null">
- AND a.status = 1
+ a.company_wechat_id = #{companyWechatId}
+ AND a.type = 'C'
+ AND a.parts_websit_id IS NOT NULL
+ AND a.status = 1
+ <if test="websitId != null and websitId != ''">
+ AND a.websit_id = #{websitId}
</if>
</where>
order by distance asc, websit_id