mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3076 201d5d3c-b55e-5fd7-737f-ddc643e51545
26 lines
1.1 KiB
XML
26 lines
1.1 KiB
XML
<query id="getRankVotedCount" action="select">
|
|
<tables>
|
|
<table name="documents" alias="documents" />
|
|
<table name="member" alias="member" />
|
|
</tables>
|
|
<columns>
|
|
<column name="member.*" />
|
|
<column name="sum(voted_count)" alias="count" />
|
|
</columns>
|
|
<conditions>
|
|
<condition operation="excess" column="documents.member_srl" default="0" />
|
|
<condition operation="excess" column="documents.voted_count" default="0" pipe="and" />
|
|
<condition operation="equal" column="documents.member_srl" var="member.member_srl" pipe="and" />
|
|
<condition operation="equal" column="member.is_admin" var="is_admin" pipe="and" />
|
|
<group pipe="and">
|
|
<condition operation="more" column="documents.regdate" var="regdate" pipe="or" />
|
|
</group>
|
|
</conditions>
|
|
<groups>
|
|
<group column="documents.member_srl" />
|
|
</groups>
|
|
<navigation>
|
|
<index var="sort_index" default="count" order="desc" />
|
|
<list_count var="list_count" default="20" />
|
|
</navigation>
|
|
</query>
|