明树Git Lab

Commit 46b0e1f5 authored by zfp1's avatar zfp1

update

parent 888c4a36
......@@ -195,8 +195,8 @@ async function getJiankong(req, res, next) {
//查询一下土壤采集数据
if (traccode.agrOnOff) {
// 气象 土壤
let ws = await DB.CollectWS.findOne().sort({time:-1});
let smc = await DB.CollectSMC.findOne().sort({time:-1});
let ws = await DB.CollectWS.findOne().sort({time:-1}).lean();
let smc = await DB.CollectSMC.findOne().sort({time:-1}).lean();
//
let onlineArr = await deviceModule.getDeviceOnlineMap();
smc.onLineState = onlineArr.includes(smc.deviceNumber) ? "1" : "0";
......
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