修改LocalDataDB的字段
删除RecordVideo的东西
| | |
| | | #include <uuid/uuid.h> |
| | | #include <jsoncpp/json/json.h> |
| | | |
| | | #define ALARM_PERCENT (10) //10% |
| | | #define ALARM_PERCENT (25) //25% |
| | | PerimeterElement::PerimeterElement(const SdkRule &rule) : |
| | | m_sdkRule(rule), |
| | | PipeElement(true), |
| | |
| | | // faceSearchRpcClient("faceCmServer", "", 10004, "tcp") |
| | | |
| | | //loopRecord server |
| | | appPref.setStringData("loopRecord.proxy", "LoopRecordVideoServer"); |
| | | //#todo |
| | | appPref.setStringData("loopRecord.ip", ""); |
| | | appPref.setIntData("loopRecord.port", 10010); |
| | | // appPref.setStringData("loopRecord.proxy", "LoopRecordVideoServer"); |
| | | // //#todo |
| | | // appPref.setStringData("loopRecord.ip", ""); |
| | | // appPref.setIntData("loopRecord.port", 10010); |
| | | //rpcClient(appPref.getStringData("loopRecord.proxy"), appPref.getStringData("loopRecord.ip"), appPref.getLongData("loopRecord.port"),"tcp"), |
| | | |
| | | LDBTool _dbTool; |
| | |
| | | } |
| | | if (str_tableUuid.size() > 0) { |
| | | QString sql = QString::fromStdString( |
| | | "Select a.uuid as id ,a.faceUrl as img,a.feature,b.idCard as idcard,b.enable,b.monitorLevel from '" + |
| | | "Select a.uuid as id ,a.faceUrl as img,a.feature,b.idCard as idcard,b.enabled,b.monitorLevel from '" + |
| | | str_tableUuid + |
| | | "_fea' as a ,'" + str_tableUuid + "' as b where a.uuid = b.uuid and ( a.del_flag=0 AND b.del_flag=0);"); |
| | | QSqlQuery query(g_syncDbFile); |