<query id="getDocumentListWithinTag" action="select">
	<tables>
		<table name="documents" />
		<table name="tags" />
	</tables>
	<columns distinct="distinct">
		<column name="documents.*" />
	</columns>
	<conditions>
		<condition operation="equal" column="tags.tag" var="s_tag" notnull="notnull" />
		<condition operation="equal" column="documents.document_srl" default="tags.document_srl" pipe="and" />
		<condition operation="in" column="documents.module_srl" var="module_srl" filter="number" pipe="and" />
		<condition operation="notin" column="documents.module_srl" var="exclude_module_srl" filter="number" pipe="and" />
		<condition operation="in" column="documents.category_srl" var="category_srl" filter="number" pipe="and" />
		<condition operation="in" column="documents.member_srl" var="member_srl" filter="number" pipe="and" />
		<condition operation="equal" column="documents.is_notice" var="s_is_notice" pipe="and" />
		<condition operation="in" column="documents.status" var="statusList" pipe="and" />
		<condition operation="more" column="documents.list_order" var="division" pipe="and" />
		<condition operation="below" column="documents.list_order" var="last_division" pipe="and" />
		<condition operation="more" column="documents.last_update" var="start_date" pipe="and" />
		<condition operation="less" column="documents.last_update" var="end_date" pipe="and" />
		<condition operation="more" column="documents.regdate" var="start_regdate" pipe="and" />
		<condition operation="less" column="documents.regdate" var="end_regdate" pipe="and" />
	</conditions>
	<navigation>
		<index var="sort_index" default="documents.list_order" order="order_type" />
		<list_count var="list_count" default="20" />
		<page_count var="page_count" default="10" />
		<page var="page" default="1" />
	</navigation>
</query>
