<query id="getSiteUpdatedTime" action="select">
    <tables>
        <table name="documents" alias="doc" />
    </tables>
    <columns>
        <column name="max(doc.last_update)" alias="last_update" />
    </columns>
    <conditions>
        <condition operation="equal" column="doc.module_srl" var="module_srl" filter="number" />
        <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" />
        <condition operation="notin" column="doc.module_srl" var="except_modules" pipe="and" />
    </conditions>
</query>
