and settlement_customers_code = #{bdo.settlementCustomersCode} and (billing_state = 1 or billing_state = 2) and billing_state = 3 and billing_state 4 AND date_format(create_time,'%Y-%m-%d') =]]> #{billingStatementDO.createTimeStart} AND date_format(create_time,'%Y-%m-%d') #{billingStatementDO.createTimeEnd} AND create_by_name like concat('%', #{billingStatementDO.createByName}, '%') AND organization_id = #{billingStatementDO.organizationId} AND top_organization_id = #{billingStatementDO.topOrganizationId} AND date_format(update_time,'%Y-%m-%d') =]]> #{billingStatementDO.updateTimeStart} AND date_format(update_time,'%Y-%m-%d') #{billingStatementDO.updateTimeEnd} AND update_by_name like concat('%', #{billingStatementDO.updateByName}, '%') AND billing_flow like concat('%', #{billingStatementDO.billingFlow}, '%') AND settlement_entity like concat('%', #{billingStatementDO.settlementEntity}, '%') AND( first_subject_name like concat('%', #{billingStatementDO.secondSubjectName}, '%') OR second_subject_name like concat('%', #{billingStatementDO.secondSubjectName}, '%') ) AND service_items_name like concat('%', #{billingStatementDO.serviceItemsName}, '%') AND account_expense_type = #{billingStatementDO.accountExpenseType} AND settlement_customers_code = #{billingStatementDO.settlementCustomersCode} AND belong_module_code = #{billingStatementDO.belongModuleCode} AND date_format(cycle_end_time,'%Y-%m-%d') #{billingStatementDO.cycleEndTime} AND date_format(cycle_begin_time,'%Y-%m-%d') =]]> #{billingStatementDO.cycleBeginTime} AND billing_state = #{billingStatementDO.billingState} AND red_flush_state = #{billingStatementDO.redFlushState} AND belong_module like concat('%', #{billingStatementDO.belongModule}, '%') AND document_type like concat('%', #{billingStatementDO.documentType}, '%') AND original_business_num like concat('%', #{billingStatementDO.originalBusinessNum}, '%') AND (billing_state = 1 OR billing_state = 2) AND billing_state = 3 AND (billing_state = 4 OR billing_state = 5) AND billing_statement_id in #{id} AND billing_state = #{billingStatementDO.billingState} AND top_organization_id = #{billingStatementDO.topOrganizationId} AND organization_id = #{billingStatementDO.organizationId} AND settlement_customers_code = #{billingStatementDO.settlementCustomersCode} AND account_expense_type = #{billingStatementDO.accountExpenseType} AND belong_module_code = #{billingStatementDO.belongModuleCode} AND document_type_code = #{billingStatementDO.documentTypeCode} AND service_items_code = #{billingStatementDO.serviceItemsCode} AND (first_subject_code = #{billingStatementDO.secondSubjectCode} OR second_subject_code = #{billingStatementDO.secondSubjectCode}) AND contract_type = #{billingStatementDO.contractType} AND project_code = #{billingStatementDO.projectCode} AND date_format(business_date,'%Y-%m-%d') =]]> #{billingStatementDO.businessDateStart} AND date_format(business_date,'%Y-%m-%d') #{billingStatementDO.businessDateEnd} and settlement_entity like concat('%',#{billingStatementCollectDO.settlementEntity},'%') and settlement_customers_code like concat('%',#{billingStatementCollectDO.settlementCustomersCode},'%') and account_expense_type = #{billingStatementCollectDO.accountExpenseType} and (billing_state = 1 or billing_state = 2) and billing_state = 3 and billing_state 4 and organization_id = #{billingStatementCollectDO.organizationId} and top_organization_id = #{billingStatementCollectDO.topOrganizationId} and organization_name = #{billingStatementCollectDO.organizationName} and bill_amount_sum = #{billingStatementCollectDO.billAmountSum} and count_fee = #{billingStatementCollectDO.countFee} and date_format(MIN(business_date),'%Y-%m-%d %H:%i:%s') =]]> #{billingStatementCollectDO.businessStartDate} and date_format(MAX(business_date),'%Y-%m-%d %H:%i:%s') #{billingStatementCollectDO.businessEndDate}