<query id="getDocumentList" action="select">
    <tables>
        <table name="documents" alias="doc" />
        <table name="modules" alias="modules" />
        <table name="syndication_except_modules" alias="except_modules" type="left join">
            <conditions>
                <condition operation="equal" column="modules.module_srl" default="except_modules.module_srl" />
            </conditions>
        </table>
    </tables>
    <columns>
        <column name="doc.*" />
        <column name="modules.mid" alias="mid" />
    </columns>
    <conditions>
        <condition operation="equal" column="doc.module_srl" var="module_srl" filter="number" />
        <condition operation="notin" column="doc.module_srl" var="except_module_srls" pipe="and" />
        <condition operation="null" column="except_modules.module_srl" default="1" pipe="and" />
        <condition operation="equal" column="doc.is_secret" default="N" pipe="and" />
        <condition operation="equal" column="modules.module_srl" default="doc.module_srl" filter="number" pipe="and" />
        <condition operation="notin" column="modules.module_srl" var="except_modules" filter="numbers" pipe="and" />
        <condition operation="more" column="doc.last_update" var="start_date" filter="number" pipe="and" />
        <condition operation="less" column="doc.last_update" var="end_date" filter="number" pipe="and" />
    </conditions>
    <navigation>
        <index var="sort_index" default="doc.update_order" order="asc" />
        <list_count var="list_count" default="100" />
        <page_count var="page_count" default="10" />
        <page var="page" default="1" />
    </navigation>
</query>
