修改http统计查询接口

This commit is contained in:
lixiaoyuan
2025-12-01 18:26:42 +08:00
parent f8dad86731
commit 97e4b182de
6 changed files with 139 additions and 78 deletions

View File

@@ -6,9 +6,8 @@
#include "common/JsonN.h"
#include "app/DataStruct.h"
#include <unordered_set>
#include "Application.h"
#include "Station.h"
static std::unordered_set<int> g_setCacheDeviceType = {3, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110};
static bool CheckCacheType(int type)
@@ -276,6 +275,12 @@ void Device::setParam(std::string k, int v)
else if (type == 109) // 光伏板
{
}
if (err )
{
auto station = Application::data().getStation(stationId);
station->err = 1;
}
}
std::string Device::getParam(std::string k, std::string defaultVal)