明树Git Lab

Commit 27fc5ca0 authored by zfp1's avatar zfp1

update

parent cd3d8a75
......@@ -231,7 +231,7 @@ async function getZhijian(req, res, next) {
if (!req.body._id) {
return res.sendError(errorMessage.resourceNotFound);
}
let traccode = await DB.ProTraceCode.findOne({ _id: req.body._id }, { type: 1, source: 1, _id: 1 , pesticidetImgs: 1, qualityInsReportImgs: 1, flourMerchantImgs: 1}).lean();
let traccode = await DB.ProTraceCode.findOne({ _id: req.body._id }, { type: 1, source: 1, _id: 1 , pesticidetImgs: 1, qualityInsReportImgs: 1, flourMerchantImgs: 1}).populate({path: "qualityInsReportImgs"}).populate({path: "flourMerchantImgs"}).populate({path: "pesticidetImgs"}).lean();
if (!(traccode && traccode._id && traccode.source)) {
return res.sendError(errorMessage.resourceNotFound);
}
......
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