明树Git Lab

Commit 6a8d2813 authored by zengfanpei's avatar zengfanpei

update

parent d6b88127
......@@ -88,8 +88,9 @@ async function listUser(req, res, next) {
if (req.body.departId) {
search.depart = req.body.departId;
}
let ret = await userModule.findList(search, ['-password', '-salt'], { skip, limit: pageSize });
res.sendData(ret);
let count = await DB.User.countDocuments(search);
let list = await userModule.findList(search, ['-password', '-salt'], { skip, limit: pageSize });
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