select * from business_document and reconciliation_id = #{reconciliationId} and audit_status = #{auditStatus} and verification_money = #{verificationMoney} and user_id = #{userId} and waybill_number = #{waybillNumber} and waybill_source = #{waybillSource} and waybill_source_name like concat('%', #{waybillSourceName}, '%') and receivable_type = #{receivableType} and pay_status = #{payStatus} and loading_adress = #{loadingAdress} and unload_adress = #{unloadAdress} and payable_amount = #{payableAmount} and receivable_amount = #{receivableAmount} and carrier_name like concat('%', #{carrierName}, '%') and driver_name like concat('%', #{driverName}, '%') and shipper_name like concat('%', #{shipperName}, '%') and (shipper_name like concat('%', #{shipperInfo}, '%') or phone like concat('%', #{shipperInfo}, '%')) and vehicle_license_plate_number = #{vehicleLicensePlateNumber} and reception_time = #{receptionTime} and create_by_name like concat('%', #{createByName}, '%') and update_by_name like concat('%', #{updateByName}, '%') and organization_id = #{organizationId} and top_organization_id = #{topOrganizationId} and waybill_number in #{waybillNo} AND date_format(create_time,'%Y-%m-%d') >= #{createTimeStart} AND date_format(create_time,'%Y-%m-%d') #{createTimeEnd} AND bdd.pay_id = #{businessDocumentDO.carrierId} AND date_format(bdd.create_time,'%Y-%m-%d') >= #{businessDocumentDO.receptionTimeStart} AND date_format(bdd.create_time,'%Y-%m-%d') #{businessDocumentDO.receptionTimeEnd} and user_id = #{businessDocumentDO.userId} and receivable_type = #{businessDocumentDO.receivableType} and waybill_verify_flag = #{businessDocumentDO.waybillVerifyFlag} and invoice_apply_status = #{businessDocumentDO.invoiceApplyStatus} and pay_status = #{businessDocumentDO.payStatus} and pay_status_shipper = #{businessDocumentDO.payStatusShipper} and organization_id = #{businessDocumentDO.organizationId} and top_organization_id = #{businessDocumentDO.topOrganizationId} AND date_format(create_time,'%Y-%m-%d') >= #{businessDocumentDO.createTimeStart} AND date_format(create_time,'%Y-%m-%d') #{businessDocumentDO.createTimeEnd} AND date_format(pay_time,'%Y-%m-%d') >= #{businessDocumentDO.payTimeStart} AND date_format(pay_time,'%Y-%m-%d') #{businessDocumentDO.payTimeEnd} AND date_format(pay_time_shipper,'%Y-%m-%d') >= #{businessDocumentDO.payTimeShipperStart} AND date_format(pay_time_shipper,'%Y-%m-%d') #{businessDocumentDO.payTimeShipperEnd} AND create_by_name like concat('%', #{businessDocumentDO.createByName}, '%') AND waybill_number like concat('%', #{businessDocumentDO.waybillNumber}, '%') and top_organization_id = #{businessDocumentDO.topOrganizationId} AND waybill_number = #{businessDocumentDO.waybillNumber} AND pay_status_shipper = 1 AND pay_status = 1