Commit ddd069fd authored by strong's avatar strong

Merge commit '42c90310' into SANDBOX

parents 48049aa9 42c90310
...@@ -401,6 +401,10 @@ router.get('/threads/list', function(req, res, next) { ...@@ -401,6 +401,10 @@ router.get('/threads/list', function(req, res, next) {
var begin_time=req.query.begin_time; var begin_time=req.query.begin_time;
var end_time=req.query.end_time; var end_time=req.query.end_time;
var title = req.query.title; var title = req.query.title;
//update by Car 20160315 帖子管理增加查询条件查询后台发的帖
var isPublishByBg = req.query.isPublishByBg;
var sortBy = { var sortBy = {
top:-1, top:-1,
top_order_idx:-1, top_order_idx:-1,
...@@ -495,6 +499,16 @@ router.get('/threads/list', function(req, res, next) { ...@@ -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) { if (mid) {
forumThreadService.getAllThreadByFidAndMid(mid, conditions, pageNo, pageSize, sortBy, function(err, results) { forumThreadService.getAllThreadByFidAndMid(mid, conditions, pageNo, pageSize, sortBy, function(err, results) {
if (err) { if (err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment