明树Git Lab

Commit 9ad0b50c authored by zfp1's avatar zfp1

update

parent 0dd4d78e
...@@ -137,7 +137,7 @@ async function getTraceCode2(req, res, next) { ...@@ -137,7 +137,7 @@ async function getTraceCode2(req, res, next) {
console.log(sourceId, "===") console.log(sourceId, "===")
let source = null; let source = null;
if (traccode.type && traccode.type == 1) { if (traccode.type && traccode.type == 1) {
source = await DB.ProductPlant.findOne({ _id: sourceId }, { preProductName: 1, productSpec: 1, manufactureDate: 1, agrPlantBase: 1, homepageCarouselImgs: 1 }).populate({ path: "homepageCarouselImgs" }).lean(); source = await DB.ProductPlant.findOne({ _id: sourceId }, { productName: 1, productSpec: 1, manufactureDate: 1, agrPlantBase: 1, homepageCarouselImgs: 1 }).populate({ path: "homepageCarouselImgs" }).lean();
} else if (traccode.type && traccode.type == 2) { } else if (traccode.type && traccode.type == 2) {
source = await DB.ProductPre.findOne({ _id: sourceId }, { preProductName: 1, productSpec: 1, manufactureDate: 1, agrPlantBase: 1, homepageCarouselImgs: 1 }).populate({ path: "homepageCarouselImgs" }).lean(); source = await DB.ProductPre.findOne({ _id: sourceId }, { preProductName: 1, productSpec: 1, manufactureDate: 1, agrPlantBase: 1, homepageCarouselImgs: 1 }).populate({ path: "homepageCarouselImgs" }).lean();
} else if (traccode.type && traccode.type == 3) { } else if (traccode.type && traccode.type == 3) {
......
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