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
42c90310
Commit
42c90310
authored
Mar 25, 2016
by
car
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tower task
帖子管理增加查询条件查询后台发的帖子
parent
28664014
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 @
42c90310
...
...
@@ -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
)
{
...
...
strong
@strong
mentioned in commit
ddd069fd
·
Mar 25, 2016
mentioned in commit
ddd069fd
mentioned in commit ddd069fd34dbc1da517828f9c34d5ee4be003b28
Toggle commit list
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