Commit 182dcc8d authored by 陈家荣's avatar 陈家荣

后台话题管理增加子话题数量显示

parent d3891854
...@@ -776,7 +776,9 @@ exports.getAllCountByFid = function(conditions, callback) { ...@@ -776,7 +776,9 @@ exports.getAllCountByFid = function(conditions, callback) {
function getSubThreads(doc, sort, callback) { function getSubThreads(doc, sort, callback) {
var conditions = { var conditions = {
pid: doc._id, pid: doc._id,
status: 1 status: {'$ne':3},
level:2,
ent_code:doc.ent_code
}; };
var sortBy = '-top -quality -created'; var sortBy = '-top -quality -created';
if (sort) { if (sort) {
...@@ -800,6 +802,7 @@ function getSubThreads(doc, sort, callback) { ...@@ -800,6 +802,7 @@ function getSubThreads(doc, sort, callback) {
} }
}); });
var obj = {}; var obj = {};
obj.docTotal = docs.length;
obj.total = list.length; obj.total = list.length;
obj.items = list; obj.items = list;
......
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