mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 20:29:57 +09:00
플래닛모듈의 이전/다음 날짜를 DB를 통해서 글이 존재하는 날짜를 구하도록 코드 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5140 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8175cbc67b
commit
bcd0ec91fb
5 changed files with 47 additions and 6 deletions
12
modules/planet/queries/getNextDate.xml
Normal file
12
modules/planet/queries/getNextDate.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<query id="getNextDate" action="select">
|
||||
<tables>
|
||||
<table name="documents" alias="modules" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="min(regdate)" alias="next_date" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="module_srl" var="module_srl" />
|
||||
<condition operation="more" column="regdate" var="cur_date" notnull="notnull" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
12
modules/planet/queries/getPrevDate.xml
Normal file
12
modules/planet/queries/getPrevDate.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<query id="getPrevDate" action="select">
|
||||
<tables>
|
||||
<table name="documents" alias="modules" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="max(regdate)" alias="prev_date" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="module_srl" var="module_srl" />
|
||||
<condition operation="less" column="regdate" var="cur_date" notnull="notnull" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue