Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
34dc166c
Unverified
Commit
34dc166c
authored
Jan 15, 2020
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
Fix #42
parent
366cc310
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/main/java/org/b3log/solo/service/ArticleQueryService.java
...main/java/org/b3log/solo/service/ArticleQueryService.java
+5
-3
No files found.
src/main/java/org/b3log/solo/service/ArticleQueryService.java
View file @
34dc166c
...
@@ -19,6 +19,7 @@ package org.b3log.solo.service;
...
@@ -19,6 +19,7 @@ package org.b3log.solo.service;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.b3log.latke.Keys
;
import
org.b3log.latke.Keys
;
import
org.b3log.latke.Latkes
;
import
org.b3log.latke.http.RequestContext
;
import
org.b3log.latke.http.RequestContext
;
import
org.b3log.latke.ioc.Inject
;
import
org.b3log.latke.ioc.Inject
;
import
org.b3log.latke.logging.Level
;
import
org.b3log.latke.logging.Level
;
...
@@ -50,7 +51,7 @@ import java.util.*;
...
@@ -50,7 +51,7 @@ import java.util.*;
* @author <a href="https://hacpai.com/member/armstrong">ArmstrongCN</a>
* @author <a href="https://hacpai.com/member/armstrong">ArmstrongCN</a>
* @author <a href="http://zephyr.b3log.org">Zephyr</a>
* @author <a href="http://zephyr.b3log.org">Zephyr</a>
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 1.3.
5.0, Oct 14, 2019
* @version 1.3.
6.0, Jan 15, 2020
* @since 0.3.5
* @since 0.3.5
*/
*/
@Service
@Service
...
@@ -641,12 +642,13 @@ public class ArticleQueryService {
...
@@ -641,12 +642,13 @@ public class ArticleQueryService {
*/
*/
public
List
<
JSONObject
>
getArticlesByArchiveDate
(
final
String
archiveDateId
,
final
int
currentPageNum
,
final
int
pageSize
)
throws
ServiceException
{
public
List
<
JSONObject
>
getArticlesByArchiveDate
(
final
String
archiveDateId
,
final
int
currentPageNum
,
final
int
pageSize
)
throws
ServiceException
{
try
{
try
{
final
String
tablePrefix
=
Latkes
.
getLocalProperty
(
"jdbc.tablePrefix"
)
+
"_"
;
final
List
<
JSONObject
>
ret
=
new
ArrayList
<>();
final
List
<
JSONObject
>
ret
=
new
ArrayList
<>();
final
String
query
=
"SELECT\n"
+
final
String
query
=
"SELECT\n"
+
"\t*\n"
+
"\t*\n"
+
"FROM\n"
+
"FROM\n"
+
"\t
b3_solo_
article AS a,\n"
+
"\t
"
+
tablePrefix
+
"
article AS a,\n"
+
"\t
b3_solo_
archivedate_article aa\n"
+
"\t
"
+
tablePrefix
+
"
archivedate_article aa\n"
+
"WHERE\n"
+
"WHERE\n"
+
"\taa.archiveDate_oId = ?\n"
+
"\taa.archiveDate_oId = ?\n"
+
"AND a.oId = aa.article_oId\n"
+
"AND a.oId = aa.article_oId\n"
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment