明树Git Lab

Commit 3cc69fde authored by zfp1's avatar zfp1

update

parent 33f8984c
......@@ -98,6 +98,7 @@ async function queryMatApprList(req, res, next) {
async function queryMatApprInfo(req, res, next) {
try {
let search = { del: 0 };
console.log(req.body, "===")
if(!req.body._id) {
return res.sendError(errorMessage.resourceNotFound);
}
......@@ -105,7 +106,8 @@ async function queryMatApprInfo(req, res, next) {
if(!(approval && approval._id)) {
return res.sendError(errorMessage.resourceNotFound);
}
let inout = await DB.AgrMatInOut.find({approval: req.body._id}).populate({path: "creator"}).sort({_id: 1}).lean().exec();
let inout = await DB.AgrMatInOut.find({approval: req.body._id}).sort({_id: 1}).lean().exec();
console.log(inout, "=")
approval.materials = inout || [];
return approval;
} 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