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
89aa79ec
Commit
89aa79ec
authored
Mar 30, 2016
by
刘文胜
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
社区板块报表发帖数为0问题修复
parent
46020da7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
21 deletions
+7
-21
forumInfo.js
app/controllers/admin/forumInfo.js
+7
-21
No files found.
app/controllers/admin/forumInfo.js
View file @
89aa79ec
...
...
@@ -338,15 +338,9 @@ router.post('/info/report/:id', function(req, res, next) {
},
info
:
info_id
};
var
group
=
{
_id
:
{
_id
:
'$_id'
},
count
:
{
$sum
:
1
}
};
mapReduce
(
ForumThread
,
match
,
group
,
d
,
cont
);
ForumThread
.
count
(
match
,
function
(
err
,
count
){
cont
(
err
,{
date
:
d
,
count
:
count
||
0
});
});
});
});
...
...
@@ -448,17 +442,12 @@ router.get('/info/report/exportXlsReport/:id', function(req, res, next) {
created
:
{
$gte
:
new
Date
(
d
+
' 00:00:00'
),
$lte
:
new
Date
(
d
+
' 23:59:59'
)
}
};
var
group
=
{
_id
:
{
_id
:
'$_id'
},
count
:
{
$sum
:
1
}
info
:
info_id
};
mapReduce
(
ForumThread
,
match
,
group
,
d
,
cont
);
ForumThread
.
count
(
match
,
function
(
err
,
count
){
cont
(
err
,{
date
:
d
,
count
:
count
||
0
});
});
});
});
...
...
@@ -523,9 +512,6 @@ router.get('/info/report/exportXlsReport/:id', function(req, res, next) {
});
}
});
}
else
{
res
.
json
({
result
:
false
,
...
...
strong
@strong
mentioned in commit
e14ee388
·
Mar 30, 2016
mentioned in commit
e14ee388
mentioned in commit e14ee388591a7d9d24ce236b17f09180b245ce74
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