and create_by_name like concat('%', #{createByName}, '%')
and update_by_name like concat('%', #{updateByName}, '%')
and top_organization_id = #{topOrganizationId}
and organization_id = #{organizationId}
and organization_name like concat('%', #{organizationName}, '%')
and business_flow = #{businessFlow}
and business_state = #{businessState}
and belong_module = #{belongModule}
and belong_module_code = #{belongModuleCode}
and data_sources = #{dataSources}
and document_type_id = #{documentTypeId}
and document_type_code = #{documentTypeCode}
and document_type = #{documentType}
and original_business_num = #{originalBusinessNum}
and project_code = #{projectCode}
and project_name like concat('%', #{projectName}, '%')
and contract_number = #{contractNumber}
and contract_name like concat('%', #{contractName}, '%')
and bill_amount = #{billAmount}
and estimated_cost = #{estimatedCost}
and first_subject_code = #{firstSubjectCode}
and first_subject_name like concat('%', #{firstSubjectName}, '%')
and second_subject_code = #{secondSubjectCode}
and second_subject_name like concat('%', #{secondSubjectName}, '%')
and settlement_customers_id = #{settlementCustomersId}
and settlement_customers_code = #{settlementCustomersCode}
and settlement_entity = #{settlementEntity}
and billing_time = #{billingTime}
and document_form_json = #{documentFormJson}
and revenue_expenses_type = #{revenueExpensesType}
AND date_format(create_time,'%Y-%m-%d') =]]> #{businessDocumentDO.createTimeStart}
AND date_format(create_time,'%Y-%m-%d') #{businessDocumentDO.createTimeEnd}
AND create_by_name like concat('%', #{businessDocumentDO.createByName}, '%')
AND organization_id = #{businessDocumentDO.organizationId}
AND top_organization_id = #{businessDocumentDO.topOrganizationId}
AND update_by_name like concat('%', #{businessDocumentDO.updateByName}, '%')
AND date_format(update_time,'%Y-%m-%d') =]]> #{businessDocumentDO.updateTimeStart}
AND date_format(update_time,'%Y-%m-%d') #{businessDocumentDO.updateTimeEnd}
AND business_flow like concat('%', #{businessDocumentDO.businessFlow}, '%')
AND data_sources = #{businessDocumentDO.dataSources}
AND business_state = #{businessDocumentDO.businessState}
AND belong_module like concat('%', #{businessDocumentDO.belongModule}, '%')
AND organization_name like concat('%', #{businessDocumentDO.organizationName}, '%')
AND document_type like concat('%', #{businessDocumentDO.documentType}, '%')
AND original_business_num like concat('%', #{businessDocumentDO.originalBusinessNum}, '%')
AND project_name like concat('%', #{businessDocumentDO.projectName}, '%')
AND contract_number like concat('%', #{businessDocumentDO.contractNumber}, '%')
AND contract_name like concat('%', #{businessDocumentDO.contractName}, '%')
AND bill_amount like concat('%', #{businessDocumentDO.billAmount}, '%')
AND estimated_cost like concat('%', #{businessDocumentDO.estimatedCost}, '%')
AND first_subject_name like concat('%', #{businessDocumentDO.firstSubjectName}, '%')
AND second_subject_name like concat('%', #{businessDocumentDO.secondSubjectName}, '%')
AND settlement_entity like concat('%', #{businessDocumentDO.settlementEntity}, '%')
AND settlement_customers_code like concat('%', #{businessDocumentDO.settlementCustomersCode}, '%')
AND service_items_name like concat('%', #{businessDocumentDO.serviceItemsName}, '%')
AND service_items_code = #{businessDocumentDO.serviceItemsCode}
AND document_type_code = #{businessDocumentDO.documentTypeCode}
and business_document_id in
#{id}