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
16f63d88
Unverified
Commit
16f63d88
authored
Sep 11, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
#12859 H2 数据库兼容
parent
c0f9e3d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/main/java/org/b3log/solo/service/ArticleQueryService.java
...main/java/org/b3log/solo/service/ArticleQueryService.java
+2
-2
No files found.
src/main/java/org/b3log/solo/service/ArticleQueryService.java
View file @
16f63d88
...
@@ -193,7 +193,7 @@ public class ArticleQueryService {
...
@@ -193,7 +193,7 @@ public class ArticleQueryService {
tagIds
.
add
(
categoryTags
.
optJSONObject
(
i
).
optString
(
Tag
.
TAG
+
"_"
+
Keys
.
OBJECT_ID
));
tagIds
.
add
(
categoryTags
.
optJSONObject
(
i
).
optString
(
Tag
.
TAG
+
"_"
+
Keys
.
OBJECT_ID
));
}
}
final
StringBuilder
queryCount
=
new
StringBuilder
(
"SELECT count(0) as
c
FROM "
);
final
StringBuilder
queryCount
=
new
StringBuilder
(
"SELECT count(0) as
C
FROM "
);
final
StringBuilder
queryList
=
new
StringBuilder
(
"SELECT "
+
"b3_solo_article.oId "
).
append
(
" FROM "
);
final
StringBuilder
queryList
=
new
StringBuilder
(
"SELECT "
+
"b3_solo_article.oId "
).
append
(
" FROM "
);
final
StringBuilder
queryStr
=
new
StringBuilder
(
articleRepository
.
getName
()
+
" b3_solo_article,"
).
final
StringBuilder
queryStr
=
new
StringBuilder
(
articleRepository
.
getName
()
+
" b3_solo_article,"
).
append
(
tagArticleRepository
.
getName
()
+
" b3_solo_tag_article"
).
append
(
tagArticleRepository
.
getName
()
+
" b3_solo_tag_article"
).
...
@@ -217,7 +217,7 @@ public class ArticleQueryService {
...
@@ -217,7 +217,7 @@ public class ArticleQueryService {
return
ret
;
return
ret
;
}
}
final
int
tagArticlesCount
=
tagArticlesCountResult
==
null
?
0
:
tagArticlesCountResult
.
get
(
0
).
optInt
(
"
c
"
);
final
int
tagArticlesCount
=
tagArticlesCountResult
==
null
?
0
:
tagArticlesCountResult
.
get
(
0
).
optInt
(
"
C
"
);
final
int
pageCount
=
(
int
)
Math
.
ceil
(
tagArticlesCount
/
(
double
)
pageSize
);
final
int
pageCount
=
(
int
)
Math
.
ceil
(
tagArticlesCount
/
(
double
)
pageSize
);
final
JSONObject
preference
=
optionQueryService
.
getPreference
();
final
JSONObject
preference
=
optionQueryService
.
getPreference
();
final
int
windowSize
=
preference
.
optInt
(
Option
.
ID_C_ARTICLE_LIST_PAGINATION_WINDOW_SIZE
);
final
int
windowSize
=
preference
.
optInt
(
Option
.
ID_C_ARTICLE_LIST_PAGINATION_WINDOW_SIZE
);
...
...
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