This commit is contained in:
zhangsheng 2025-07-14 22:09:50 +08:00
parent eb48a66134
commit 17f11d876d

View File

@ -744,12 +744,12 @@ void JsonData::DataNodeStatusCheck() {
if (lTimeTemp > onlineCheck) {
zlog_warn(zct, "offline DataNodeStatusCheck mac = %s lNowTime = %d,llastTime = %d,interval = %s", mac.c_str(),lNowTime, llastTime);
char whereCon[32] = {0};
sprintf(whereCon, "dataNodeNo='%s'", mac.c_str());
sprintf(whereCon, "mac='%s'", mac.c_str());
sqlite_db_ctrl::instance().UpdateTableData(T_SENSOR_BT_INFO(TNAME), "status='0'", whereCon);
count++;
} else {
char whereCon[32] = {0};
sprintf(whereCon, "dataNodeNo='%s'", mac.c_str());
sprintf(whereCon, "mac='%s'", mac.c_str());
sqlite_db_ctrl::instance().UpdateTableData(T_SENSOR_BT_INFO(TNAME), "status='1'", whereCon);
}
}