mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
实现HTTP服务架构
This commit is contained in:
@@ -96,9 +96,10 @@ string Fields::toStr()
|
||||
string s;
|
||||
for (auto it = mapFields.begin(); it != mapFields.end(); it++)
|
||||
{
|
||||
s += ("{" + it->first + ":" + it->second + "} ");
|
||||
if (!s.empty()) s += ",";
|
||||
s += ("\"" + it->first + "\":\"" + it->second + "\"");
|
||||
}
|
||||
return s;
|
||||
return "{" + s + "}";
|
||||
}
|
||||
|
||||
string Fields::toSqlInsert(string tableName)
|
||||
|
||||
Reference in New Issue
Block a user