mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
新增http、mqtt运行库,实现mqtt功能, 新增spdlog
This commit is contained in:
@@ -67,12 +67,12 @@ Errcode DAO::update(std::shared_ptr<DaoEntity> dao, std::string tableName, Field
|
||||
std::string primaryVal = params.remove(primaryKey);
|
||||
if (primaryVal.empty())
|
||||
{
|
||||
XLOGE() << "DAO update [" + tableName + "] failed, " << primaryKey << "=NULL.";
|
||||
spdlog::error("DAO update [{}] failed,{} is NULL.", tableName, primaryKey);
|
||||
return Errcode::ERR_PARAM;
|
||||
}
|
||||
if (params.size() == 0)
|
||||
{
|
||||
XLOGE() << "DAO update [" + tableName + "] failed, params size=0.";
|
||||
spdlog::error("DAO update [{}] failed, params size=0.", tableName);
|
||||
return Errcode::ERR_PARAM_NUL;
|
||||
}
|
||||
std::string condition = "WHERE " + primaryKey + "='" + primaryVal + "'";
|
||||
|
||||
Reference in New Issue
Block a user