Browse Source

update

master
zhaohe 2 years ago
parent
commit
b04fd63b45
  1. 2
      iflytoplinuxsdk
  2. 4
      src/db/db_service.cpp

2
iflytoplinuxsdk

@ -1 +1 @@
Subproject commit a1bb46e362110d2bfe93d4eff8cc073b7278e75f
Subproject commit 45bd079bb5f10f36ecfd610a0de0148cafc97bb5

4
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<recursive_mutex> lock(lock_);
@ -511,6 +511,8 @@ shared_ptr<db::Formula> 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") {

Loading…
Cancel
Save