|
|
@ -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") { |
|
|
|