From d8cfbb5980817d904e305acee4a3d7b36d78c656 Mon Sep 17 00:00:00 2001 From: pansen <pansen626@sina.com> Date: 星期五, 15 三月 2019 11:20:23 +0800 Subject: [PATCH] GB28181集成完成。录像bug暂未解决,已注释 --- QiaoJiaSystem/DataManagerServer/vss/dao/BaseDao.h | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/QiaoJiaSystem/DataManagerServer/vss/dao/BaseDao.h b/QiaoJiaSystem/DataManagerServer/vss/dao/BaseDao.h index aaf3865..bfffec3 100644 --- a/QiaoJiaSystem/DataManagerServer/vss/dao/BaseDao.h +++ b/QiaoJiaSystem/DataManagerServer/vss/dao/BaseDao.h @@ -77,7 +77,8 @@ return rowDataList; } - static Json::Value findJsonArray(string sql) { + static Json::Value findJsonArray(string sql, std::map<std::string, std::string>& whereColumns) { + sql = sql + getWhereColumnNameValuePair(whereColumns); initConnection(); mysqlpp::Query query = conn->query(sql); Json::Value rowList; @@ -97,6 +98,7 @@ rowList.append(row); } } else { + cout << "error " <<query.error() << endl; cout << "query failed" << endl; } return rowList; @@ -130,6 +132,7 @@ return updateSql; } static void doConnect() { + cout << "db_host=" << appConfig.getStringProperty("db_host").c_str() << endl; if (conn->connect( appConfig.getStringProperty("database").c_str(), appConfig.getStringProperty("db_host").c_str(), -- Gitblit v1.8.0