Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pisns-forum-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scrmGroup
pisns-forum-api
Commits
ddd069fd
Commit
ddd069fd
authored
Mar 25, 2016
by
strong
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
42c90310
' into SANDBOX
parents
48049aa9
42c90310
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
forumThread.js
app/controllers/admin/forumThread.js
+14
-0
No files found.
app/controllers/admin/forumThread.js
View file @
ddd069fd
...
...
@@ -401,6 +401,10 @@ router.get('/threads/list', function(req, res, next) {
var
begin_time
=
req
.
query
.
begin_time
;
var
end_time
=
req
.
query
.
end_time
;
var
title
=
req
.
query
.
title
;
//update by Car 20160315 帖子管理增加查询条件查询后台发的帖
var
isPublishByBg
=
req
.
query
.
isPublishByBg
;
var
sortBy
=
{
top
:
-
1
,
top_order_idx
:
-
1
,
...
...
@@ -495,6 +499,16 @@ router.get('/threads/list', function(req, res, next) {
}
}
if
(
isPublishByBg
){
if
(
isPublishByBg
==
1
){
conditions
.
isPublishByBg
=
isPublishByBg
;
}
else
if
(
isPublishByBg
==
0
){
conditions
.
isPublishByBg
=
{
$ne
:
1
};
}
}
if
(
mid
)
{
forumThreadService
.
getAllThreadByFidAndMid
(
mid
,
conditions
,
pageNo
,
pageSize
,
sortBy
,
function
(
err
,
results
)
{
if
(
err
)
{
...
...
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