mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Add sort options to declared document/comment list
- 신고된 문서 열람 화면에서 작성일순 정렬 옵션 추가 (최근 신고순 옵션은 이미 있음) - 신고된 댓글 열람 화면에서 작성일순, 최근 신고순 정렬 옵션 추가 - 신고된 문서와 댓글 열람 화면에서 일관성있는 표시를 위해 컬럼 순서를 일부 조정
This commit is contained in:
parent
eacf1c43f0
commit
be9d357f51
6 changed files with 121 additions and 24 deletions
27
modules/comment/queries/getDeclaredLatest.xml
Normal file
27
modules/comment/queries/getDeclaredLatest.xml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<query id="getDeclaredLatest" action="select">
|
||||
<tables>
|
||||
<table name="comments" />
|
||||
<table name="comment_declared" />
|
||||
<table name="comment_declared_log" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="comment_declared_log.comment_srl" />
|
||||
<column name="count(*)" alias="declared_count" />
|
||||
<column name="max(comment_declared_log.regdate)" alias="latest_declared" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="comments.comment_srl" default="comment_declared_log.comment_srl" />
|
||||
<condition operation="equal" column="comment_declared.comment_srl" default="comment_declared_log.comment_srl" pipe="and" />
|
||||
<condition operation="more" column="comment_declared.declared_count" default="1" pipe="and" />
|
||||
<condition operation="in" column="comment_declared_log.comment_srl" var="comment_srls" pipe="and" />
|
||||
</conditions>
|
||||
<groups>
|
||||
<group column="comment_declared_log.comment_srl" />
|
||||
</groups>
|
||||
<navigation>
|
||||
<index var="sort_index" default="latest_declared" order="order_type" />
|
||||
<list_count var="list_count" default="20" />
|
||||
<page_count var="page_count" default="10" />
|
||||
<page var="page" default="1" />
|
||||
</navigation>
|
||||
</query>
|
||||
|
|
@ -7,7 +7,8 @@
|
|||
<column name="*" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="in" column="comments.comment_srl" default="comment_declared.comment_srl" />
|
||||
<condition operation="equal" column="comments.comment_srl" default="comment_declared.comment_srl" />
|
||||
<condition operation="more" column="comment_declared.declared_count" default="1" pipe="and" />
|
||||
</conditions>
|
||||
<navigation>
|
||||
<index var="sort_index" default="comment_declared.declared_count" order="order_type" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue