明树Git Lab

Commit 1dd0d8cd authored by zfp1's avatar zfp1

update

parent a0de16f8
......@@ -14,8 +14,11 @@ async function list(req, res, next) {
let page = req.body.page || 1;
let pageSize = req.body.pageSize || 10;
let skip = (page - 1) * pageSize;
if (req.body.name) {
search.name = req.body.name;
if (req.body.proType) {
search.proType = req.body.proType;
}
if (req.body.proClassification) {
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();
......
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