明树Git Lab

Commit 437598fa authored by zfp1's avatar zfp1

update

parent 3cc69fde
...@@ -109,7 +109,7 @@ async function queryMatApprInfo(req, res, next) { ...@@ -109,7 +109,7 @@ async function queryMatApprInfo(req, res, next) {
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}).sort({_id: 1}).lean().exec();
console.log(inout, "=") console.log(inout, "=")
approval.materials = inout || []; approval.materials = inout || [];
return approval; res.sendData(approval);
} catch (error) { } catch (error) {
next(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