明树Git Lab

Commit 70a3dda2 authored by zfp1's avatar zfp1

update

parent aa7bab87
......@@ -84,7 +84,7 @@ async function getTraceCode(req, res, next) {
if(traccode.type && traccode.type == 1) {
source = await DB.ProductPlant.findOne({_id: sourceId}).populate({path: "productPhotos"}).populate({path: "plantPlan"}).lean();
if(source && source.plantPlan && source.plantPlan.land) {
let devices = await DB.Device.find({land: {$in: source.plantPlan.land, deviceHQType: 5}}).lean();
let devices = await DB.Device.find({land: {$in: source.plantPlan.land}, deviceHQType: 5}).lean();
source.devices = devices;
} else {
source.devices = [];
......
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