| | |
| | |
|
| | | /** 添加创建二级设备表 keyValuesToAdd 需要添加的列名和列值对map*/
|
| | | mysqlpp::SimpleResult addVssChannelTbl(std::map<std::string, std::string>& keyValuesToAdd) {
|
| | | QMutexLocker mutexLocker(&m_mutexVisit);
|
| | | return add(keyValuesToAdd, VSSChannelTbl_TABLE_NAME);
|
| | | }
|
| | |
|
| | |
| | |
|
| | | /** 删除创建二级设备表 whereColumnNameValues 列名和列值对条件 */
|
| | | bool deleteVssChannelTbl(std::map<std::string, std::string>& whereKeyValues) {
|
| | | QMutexLocker mutexLocker(&m_mutexVisit);
|
| | | return del(VSSChannelTbl_TABLE_NAME, whereKeyValues);
|
| | | }
|
| | |
|
| | | /** 更新创建二级设备表 keyValuesToUpdate 需要更新的列名和列值对; whereKeyValues 列名和列值条件 */
|
| | | bool updateVssChannelTbl(std::map<std::string, std::string>& keyValuesToUpdate, |
| | | bool updateVssChannelTbl(std::map<std::string, std::string>& keyValuesToUpdate,
|
| | | std::map<std::string, std::string>& whereKeyValues) {
|
| | | QMutexLocker mutexLocker(&m_mutexVisit);
|
| | | return update(keyValuesToUpdate, VSSChannelTbl_TABLE_NAME, whereKeyValues);
|
| | | }
|
| | |
|
| | |
| | |
|
| | | /** 查询创建二级设备表列表 querySql 要查询的sql语句 */
|
| | | vector<VssChannelTbl> findVssChannelTblList(string querySql) {
|
| | | QMutexLocker mutexLocker(&m_mutexVisit);
|
| | | vector<VssChannelTbl> vssChannelTblVec;
|
| | | vector<map<string, string>> rowDatList = findList(querySql);
|
| | | vssChannelTblVec.reserve(rowDatList.size());
|
| | |
| | |
|
| | | /** 执行sql语句 */
|
| | | bool execute(string sql) {
|
| | | QMutexLocker mutexLocker(&m_mutexVisit);
|
| | | return exec(move(sql));
|
| | | }
|
| | |
|