From b04fd63b4542f1b0bab508caa4b2ebdf91370e3d Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sun, 10 Sep 2023 16:08:21 +0800 Subject: [PATCH] update --- iflytoplinuxsdk | 2 +- src/db/db_service.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/iflytoplinuxsdk b/iflytoplinuxsdk index a1bb46e..45bd079 160000 --- a/iflytoplinuxsdk +++ b/iflytoplinuxsdk @@ -1 +1 @@ -Subproject commit a1bb46e362110d2bfe93d4eff8cc073b7278e75f +Subproject commit 45bd079bb5f10f36ecfd610a0de0148cafc97bb5 diff --git a/src/db/db_service.cpp b/src/db/db_service.cpp index e65d061..65fc690 100644 --- a/src/db/db_service.cpp +++ b/src/db/db_service.cpp @@ -458,7 +458,7 @@ json DBService::getAllFormulaJson() { return jret; } -void DBService::addFormula(string formula_id,string loglevel, string stoped_gs, string continued_gs, string stoped_satur, string continued_satur, +void DBService::addFormula(string formula_id, string loglevel, string stoped_gs, string continued_gs, string stoped_satur, string continued_satur, string stoped_humi, string continued_humi, string injection_pump_speed) { lock_guard lock(lock_); @@ -511,6 +511,8 @@ shared_ptr DBService::updateFormula(int id, string column, string v } if (column == "formula_id") { formula[0].formula_id = val; + } else if (column == "loglevel") { + formula[0].loglevel = val; } else if (column == "stoped_gs") { formula[0].stoped_gs = val; } else if (column == "continued_gs") {