明树Git Lab

Commit d7027fdf authored by zfp1's avatar zfp1

update

parent 240d306f
......@@ -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 Device.find({land: {$in: source.plantPlan.land}}).lean();
let devices = await DB.Device.find({land: {$in: source.plantPlan.land, deviceHQType: 5}}).lean();
source.devices = devices;
}
} else if(traccode.type && traccode.type == 2) {
......
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