明树Git Lab

Commit 661b70b1 authored by zfp1's avatar zfp1

update

parent f3c2eaad
......@@ -21,7 +21,7 @@ async function list(req, res, next) {
search.time.$lte =new Date(req.body.endTime)
}
if(_.isArray(req.body.time) && req.body.time.length == 2) {
search.time = {
search.createdAt = {
$lte: new Date(req.body.time[1]),
$gte: new Date(req.body.time[0])
}
......
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