<iftest="createBy != null and createBy !=''"> and s.create_by = #{createBy}</if>
<iftest="salesOrderCode != null and salesOrderCode != ''"> and s.sales_order_code like concat('%', #{salesOrderCode}, '%')</if>
<iftest="salesOrderNumber != null and salesOrderNumber != ''"> and s.sales_order_number like concat('%', #{salesOrderNumber}, '%')</if>
<iftest="enterpriseCode != null and enterpriseCode != ''"> and s.enterprise_code like concat('%', #{enterpriseCode}, '%')</if>
<iftest="enterpriseName != null and enterpriseName != ''"> and s.enterprise_name like concat('%', #{enterpriseName}, '%')</if>
<iftest="enterpriseMaterialNo != null and enterpriseMaterialNo != ''"> and s.enterprise_material_no like concat('%', #{enterpriseMaterialNo}, '%')</if>
<iftest="customerContact != null and customerContact != ''"> and s.customer_contact = #{customerContact}</if>
<iftest="contactNumber != null and contactNumber != ''"> and s.contact_number = #{contactNumber}</if>
<iftest="businessMembers != null and businessMembers != ''"> and s.business_members = #{businessMembers}</if>
<iftest="useStatus != null and useStatus != ''"> and s.use_status = #{useStatus}</if>
<iftest="auditStatus != null and auditStatus != ''"> and s.audit_status = #{auditStatus}</if>
<iftest="makeStatus != null and makeStatus != ''"> and s.make_status = #{makeStatus}</if>
<iftest="deliveryStatus != null and deliveryStatus != ''"> and s.delivery_status = #{deliveryStatus}</if>
<iftest="closeStatus != null and closeStatus != ''"> and s.close_status = #{closeStatus}</if>
<iftest="invoice != null and invoice != ''"> and s.invoice = #{invoice}</if>
<iftest="instanceType != null and instanceType != ''"> and s.instance_type = #{instanceType}</if>
<iftest="instanceId != null and instanceId != ''"> and s.instance_id = #{instanceId}</if>
<iftest="applyUser != null and applyUser != ''"> and s.apply_user = #{applyUser}</if>
<iftest="applyTime != null and applyTime != ''"> and s.apply_time = #{applyTime}</if>
<iftest="applyTitle != null and applyTitle != ''"> and s.apply_title = #{applyTitle}</if>
<iftest="applyUsers != null and applyUsers != ''"> and s.apply_user in