明树Git Lab

Commit 9fb3709d authored by zfp1's avatar zfp1

update

parent 8cbddff1
......@@ -89,7 +89,7 @@ async function queryMatApprList(req, res, next) {
let pageSize = req.body.pageSize || 10;
let skip = (page - 1) * pageSize;
let count = await DB.AgrMatApproval.countDocuments(search)
let list = await DB.AgrMatApproval.find(search).skip(skip).limit(pageSize).populate({ path: 'materials', match: { del: 0 }, select: '' }).lean().exec();
let list = await DB.AgrMatApproval.find(search).skip(skip).limit(pageSize).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