mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
This commit is contained in:
parent
941542b991
commit
6961155f9c
4 changed files with 123 additions and 6 deletions
21
modules/comment/queries/getCommentPage.xml
Normal file
21
modules/comment/queries/getCommentPage.xml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<query id="getCommentPage" action="select">
|
||||
<tables>
|
||||
<table name="comments" alias="comments" />
|
||||
<table name="comments_list" alias="comments_list" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="count(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="more" column="comments.status" var="status" pipe="and" />
|
||||
<condition operation="equal" column="comments_list.document_srl" var="document_srl" notnull="notnull" pipe="and" />
|
||||
<condition operation="equal" column="comments_list.comment_srl" var="comments.comment_srl" filter="number" pipe="and" />
|
||||
<group pipe="and">
|
||||
<condition operation="below" column="comments_list.head" var="head" filter="number" notnull="notnull" />
|
||||
<group pipe="or">
|
||||
<condition operation="equal" column="comments_list.head" var="head" filter="number" notnull="notnull" />
|
||||
<condition operation="less" column="comments_list.arrange" var="arrange" filter="number" notnull="notnull" pipe="and" />
|
||||
</group>
|
||||
</group>
|
||||
</conditions>
|
||||
</query>
|
||||
11
modules/comment/queries/getCommentPageItem.xml
Normal file
11
modules/comment/queries/getCommentPageItem.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="getCommentPageItem" action="select">
|
||||
<tables>
|
||||
<table name="comments_list" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="*" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="comment_srl" var="comment_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue