Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qaHome
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qaHome
Commits
d3256311
Commit
d3256311
authored
Jun 22, 2018
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
greater than date
parent
3bc5d8da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
server.js
app/qa-home/controller/log/server.js
+9
-1
No files found.
app/qa-home/controller/log/server.js
View file @
d3256311
...
@@ -28,7 +28,15 @@ exports.get = async function () {
...
@@ -28,7 +28,15 @@ exports.get = async function () {
exports
.
get_log
=
async
function
()
{
exports
.
get_log
=
async
function
()
{
await
this
.
bindDefault
();
await
this
.
bindDefault
();
let
item
=
await
this
.
mongo
(
"
statisticslog
"
).
getLog
(
this
.
request
.
body
,
{
create_time
:
-
1
});
let
item
=
await
this
.
mongo
(
"
statisticslog
"
).
getLog
({
namespace
:
this
.
request
.
body
.
query
.
namespace
,
active
:
this
.
request
.
body
.
query
.
active
,
microservice_name
:
this
.
request
.
body
.
query
.
microservice_name
,
create_time
:
{
$gt
:
new
Date
(
new
Date
().
getTime
()
-
4
*
60
*
60
*
1000
)
}
},
{
create_time
:
-
1
});
// let item = await this.mongo("statisticslog").getLog(this.request.body.query, { create_time: { $slice: [this.request.body.slice.num, this.request.body.slice.count] } }, { create_time: -1 });
this
.
body
=
item
this
.
body
=
item
return
return
}
}
\ No newline at end of file
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