|
@@ -357,7 +357,8 @@ public class DataUtil {
|
|
|
Entity entity = Entity.create(tableName);
|
|
Entity entity = Entity.create(tableName);
|
|
|
entity.set("table_name", tableName);
|
|
entity.set("table_name", tableName);
|
|
|
entity.set("create_date", sdf.format(new Date()));
|
|
entity.set("create_date", sdf.format(new Date()));
|
|
|
- entity.set("source_id", clientMap.get(paramJson.get("clientId").getAsInt()));
|
|
|
|
|
|
|
+// entity.set("source_id", clientMap.get(paramJson.get("clientId").getAsInt()));
|
|
|
|
|
+ entity.set("source_id", paramJson.get("personId").getAsString());
|
|
|
entity.set("hikvision_id", paramJson.get("personId").getAsString());
|
|
entity.set("hikvision_id", paramJson.get("personId").getAsString());
|
|
|
entity.set("send_data", paramJson.toString());
|
|
entity.set("send_data", paramJson.toString());
|
|
|
insertList.add(entity);
|
|
insertList.add(entity);
|
|
@@ -373,11 +374,12 @@ public class DataUtil {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ tableName = "hikvision_data";
|
|
|
|
|
+
|
|
|
if (!insertList.isEmpty()) {
|
|
if (!insertList.isEmpty()) {
|
|
|
SqlRunnerAdapter.db().dynamicInsertBatch(tableName, insertList);
|
|
SqlRunnerAdapter.db().dynamicInsertBatch(tableName, insertList);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- tableName = "hikvision_data";
|
|
|
|
|
apiPath = "/api/resource/v1/person/single/update";
|
|
apiPath = "/api/resource/v1/person/single/update";
|
|
|
for (JsonObject paramJson : updateList) {
|
|
for (JsonObject paramJson : updateList) {
|
|
|
Thread.sleep(500);
|
|
Thread.sleep(500);
|