mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Fix #370 allow sorting declared documents by latest report date
This commit is contained in:
parent
cd80bcb3a7
commit
7956a878d5
5 changed files with 85 additions and 20 deletions
22
modules/document/queries/getDeclaredLatest.xml
Normal file
22
modules/document/queries/getDeclaredLatest.xml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<query id="getDeclaredLatest" action="select">
|
||||
<tables>
|
||||
<table name="document_declared_log" alias="document_declared_log" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="document_srl" />
|
||||
<column name="count(*)" alias="declared_count" />
|
||||
<column name="max(regdate)" alias="latest_declared" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="in" column="document_srl" var="document_srls" />
|
||||
</conditions>
|
||||
<groups>
|
||||
<group column="document_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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue