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
d0dba767
Commit
d0dba767
authored
Aug 19, 2015
by
刘文胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e1146fac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
forumNotice.js
app/controllers/mobile/forumNotice.js
+9
-3
No files found.
app/controllers/mobile/forumNotice.js
View file @
d0dba767
...
...
@@ -96,7 +96,9 @@ router.get('/notice/newestMsg', function(req, res, next) {
var
_condition
=
{
status
:
1
,
type
:
2
},
_sort
=
{
top
:
-
1
,
createtime
:
-
1
};
if
(
plate
){
_condition
.
plate
=
plate
;
_condition
.
$or
=
[{
plate
:
plate
},{
plate
:
null
}];
}
else
{
_condition
.
plate
=
null
;
}
queryList
(
_condition
,
_sort
,
pageNo
,
pageSize
,
function
(
err
,
result
){
if
(
err
){
...
...
@@ -127,7 +129,9 @@ router.get('/notice/newestAct', function(req, res, next) {
indate
:{
$gte
:
curdate
},
},
_sort
=
{
top
:
-
1
,
startdate
:
-
1
};
if
(
plate
){
_condition
.
plate
=
plate
;
_condition
.
$or
=
[{
plate
:
plate
},{
plate
:
null
}];
}
else
{
_condition
.
plate
=
null
;
}
queryList
(
_condition
,
_sort
,
pageNo
,
pageSize
,
function
(
err
,
result
){
if
(
err
){
...
...
@@ -154,7 +158,9 @@ router.get('/notice/oldAct', function(req, res, next) {
_condition
=
{
status
:
1
,
type
:
1
,
$or
:[{
indate
:{
$lt
:
curdate
}},{
finished
:
1
}]},
_sort
=
{
top
:
-
1
,
indate
:
-
1
};
if
(
plate
){
_condition
.
plate
=
plate
;
_condition
.
$or
=
[{
plate
:
plate
},{
plate
:
null
}];
}
else
{
_condition
.
plate
=
null
;
}
queryList
(
_condition
,
_sort
,
pageNo
,
pageSize
,
function
(
err
,
result
){
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