<query id="getModuleInfoByDocument" action="select">
    <tables>
        <table name="modules" />
        <table name="documents" />
    </tables>
    <columns>
        <column name="modules.*" />
        <column name="documents.is_notice" />
        <column name="documents.status" />
    </columns>
    <conditions>
        <condition operation="equal" column="documents.document_srl" var="document_srl" notnull="notnull" />
        <condition operation="equal" column="modules.module_srl" var="documents.module_srl" pipe="and" />
    </conditions>
</query>
