mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 06:42:14 +09:00
add function for tag model
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6253 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5133172684
commit
ee497f0f0e
3 changed files with 76 additions and 0 deletions
12
modules/tag/queries/getDocumentSrlByTag.xml
Normal file
12
modules/tag/queries/getDocumentSrlByTag.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<query id="getDocumentSrlByTag" action="select">
|
||||
<tables>
|
||||
<table name="tags" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="document_srl" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="in" column="module_srl" var="module_srl" filter="number" />
|
||||
<condition operation="equal" column="tag" var="tag" notnull="notnull" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
18
modules/tag/queries/getDocumentsTagList.xml
Normal file
18
modules/tag/queries/getDocumentsTagList.xml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<query id="getTagWithUsedList" action="select">
|
||||
<tables>
|
||||
<table name="tags" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="tag" />
|
||||
<column name="count(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="in" column="document_srl" var="document_srl" />
|
||||
</conditions>
|
||||
<navigation>
|
||||
<index var="count" default="count" order="desc" />
|
||||
</navigation>
|
||||
<groups>
|
||||
<group column="tag" />
|
||||
</groups>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue