明树Git Lab

Commit a4881d4d authored by zfp1's avatar zfp1

update

parent 5219c62f
......@@ -19,7 +19,7 @@ async function listFroDP(req, res, next) {
search.agrProName = req.body.agrProName;
}
let count = await DB.AgrInputRecord.countDocuments(search)
let list = await DB.AgrInputRecord.find(search).skip(skip).limit(1000); //甲方要求整体循环,暂时调整
let list = await DB.AgrInputRecord.find(search).sort({_id: -1}).skip(skip).limit(1000); //甲方要求整体循环,暂时调整
res.sendData({ count, list });
} catch (error) {
next(error)
......
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