<iftest="aftersalesNoticeCode != null and aftersalesNoticeCode != ''"> and aftersales_notice_code = #{aftersalesNoticeCode}</if>
<iftest="aftersalesNoticeCode != null and aftersalesNoticeCode != ''"> and aftersales_notice_code like concat('%', #{aftersalesNoticeCode}, '%')</if>
<iftest="salesOrderCode != null and salesOrderCode != ''"> and sales_order_code = #{salesOrderCode}</if>
<iftest="salesOrderCode != null and salesOrderCode != ''"> and sales_order_code like concat('%', #{salesOrderCode}, '%')</if>
<iftest="userId != null "> and user_id = #{userId}</if>
<iftest="userId != null "> and user_id = #{userId}</if>
<iftest="auditStatus != null and auditStatus != ''"> and audit_status = #{auditStatus}</if>
<iftest="auditStatus != null and auditStatus != ''"> and audit_status = #{auditStatus}</if>
<iftest="aftersalesStatus != null and aftersalesStatus != ''"> and aftersales_status = #{aftersalesStatus}</if>
<iftest="aftersalesStatus != null and aftersalesStatus != ''"> and aftersales_status = #{aftersalesStatus}</if>
<iftest="businessMembers != null and businessMembers != ''"> and business_members like concat('%', #{businessMembers}, '%')</if>
<iftest="businessMembers != null and businessMembers != ''"> and business_members like concat('%', #{businessMembers}, '%')</if>
<iftest="aftersalesMembers != null and aftersalesMembers != ''"> and aftersales_members like concat('%', #{aftersalesMembers}, '%')</if>
<iftest="aftersalesMembers != null and aftersalesMembers != ''"> and aftersales_members like concat('%', #{aftersalesMembers}, '%')</if>
<iftest="enterpriseCode != null and enterpriseCode != ''"> and enterprise_code = #{enterpriseCode}</if>
<iftest="enterpriseCode != null and enterpriseCode != ''"> and enterprise_code like concat('%', #{enterpriseCode}, '%')</if>
<iftest="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
<iftest="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
<iftest="params.beginUpdateTime != null and params.beginUpdateTime != '' and params.endUpdateTime != null and params.endUpdateTime != ''"> and update_time between #{params.beginUpdateTime} and #{params.endUpdateTime}</if>
<iftest="params.beginUpdateTime != null and params.beginUpdateTime != '' and params.endUpdateTime != null and params.endUpdateTime != ''"> and update_time between #{params.beginUpdateTime} and #{params.endUpdateTime}</if>