<query id="getOneFileInDocument" action="select">
    <tables>
        <table name="files" />
    </tables>
    <columns>
        <column name="upload_target_srl" />
    </columns>
    <conditions>
        <condition operation="in" column="module_srl" var="module_srls" notnull="notnull" filter="numbers" />
        <condition operation="equal" column="direct_download" var="direct_download" pipe="and" />
        <condition operation="equal" column="isvalid" var="isvalid" pipe="and" />
    </conditions>
    <groups>
        <group column="upload_target_srl" />
    </groups>
    <navigation>
        <index var="file_srl" default="file_srl" order="desc" />
        <list_count var="list_count" default="20" />
    </navigation>
</query>
