明树Git Lab

Commit f85ed4e8 authored by zfp1's avatar zfp1

update

parent 3d902c0b
...@@ -91,7 +91,7 @@ async function listPlan(req, res, next) { ...@@ -91,7 +91,7 @@ async function listPlan(req, res, next) {
let skip = (page - 1) * pageSize; let skip = (page - 1) * pageSize;
const count = await DB.PlantPlan.countDocuments(search); const count = await DB.PlantPlan.countDocuments(search);
let list = await DB.PlantPlan.find(search).populate({path: "land"}).sort({_id: -1}).skip(skip).limit(pageSize); let list = await DB.PlantPlan.find(search).populate({path: 'plantiCycle'}).populate({path: "land"}).sort({_id: -1}).skip(skip).limit(pageSize);
res.sendData({ count, list }); res.sendData({ count, list });
} 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