明树Git Lab

Commit 18cb3d37 authored by zfp1's avatar zfp1

update

parent 97681c80
......@@ -207,8 +207,8 @@ async function getJiankong(req, res, next) {
//查询一下土壤采集数据
if (traccode.agrOnOff) {
// 气象 土壤
let ws = await DB.CollectWS.findOne({});
let smc = await DB.CollectSMC.findOne();
let ws = await DB.CollectWS.findOne({}).sort({time:-1});
let smc = await DB.CollectSMC.findOne().sort({time:-1});
traccode.ws = ws;
traccode.smc = smc;
//
......
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