明树Git Lab

Commit 2f0b91ec authored by zfp1's avatar zfp1

update

parent 1dd0d8cd
......@@ -21,7 +21,7 @@ async function list(req, res, next) {
search.proClassification = req.body.proClassification;
}
let count = await DB.TechProcess.countDocuments(search)
let list = await DB.TechProcess.find(search).skip(skip).limit(pageSize).sort({ _id: -1 }).lean().exec();
let list = await DB.TechProcess.find(search).skip(skip).limit(pageSize).sort({ sort: 1 }).lean().exec();
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