明树Git Lab

Commit d95bff45 authored by zfp1's avatar zfp1

update

parent 50ecaa39
...@@ -105,7 +105,7 @@ async function queryMatApprInfo(req, res, next) { ...@@ -105,7 +105,7 @@ async function queryMatApprInfo(req, res, next) {
if(!(approval && approval._id)) { if(!(approval && approval._id)) {
return res.sendError(errorMessage.resourceNotFound); return res.sendError(errorMessage.resourceNotFound);
} }
let inout = await DB.AgrMatInOut.find({approval: req.body._id}).sort({_id: 1}).lean().exec(); let inout = await DB.AgrMatInOut.find({approval: req.body._id}).populate({path: "creator"}).sort({_id: 1}).lean().exec();
approval.materials = inout || []; approval.materials = inout || [];
return approval; return approval;
} catch (error) { } catch (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