rhymix/modules/comment/queries/getDeclaredLatest.xml
Kijin Sung be9d357f51 Add sort options to declared document/comment list
- 신고된 문서 열람 화면에서 작성일순 정렬 옵션 추가 (최근 신고순 옵션은 이미 있음)
- 신고된 댓글 열람 화면에서 작성일순, 최근 신고순 정렬 옵션 추가
- 신고된 문서와 댓글 열람 화면에서 일관성있는 표시를 위해 컬럼 순서를 일부 조정
2018-04-22 09:55:45 +09:00

27 lines
1.2 KiB
XML

<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>