|
@@ -1346,7 +1346,7 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
|
|
|
OffsetDateTime beforeTenMinutes = currentTime.minusMinutes(Long.parseLong(frontValue));
|
|
|
log.info("beforeTenMinutes------------->" + beforeTenMinutes);
|
|
|
// 获取报警后的时间
|
|
|
- OffsetDateTime afterTenMinutes = currentTime.plusMinutes(Long.parseLong("0"));
|
|
|
+ OffsetDateTime afterTenMinutes = currentTime.plusMinutes(Long.parseLong(laterValue));
|
|
|
log.info("afterTenMinutes------------->" + afterTenMinutes);
|
|
|
// 格式化时间
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSXXX");
|
|
@@ -1646,12 +1646,20 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
|
|
|
*
|
|
|
* @param baseCameraManagement
|
|
|
*/
|
|
|
- public String getQueryRecords(String streamPath, String date) {
|
|
|
+ public String getQueryRecords(String streamPath, String date,String type) {
|
|
|
+
|
|
|
log.info("-----getQueryRecords------streamPath-----" + streamPath);
|
|
|
log.info("-----getQueryRecords-------date----" + date);
|
|
|
+ log.info("-----getQueryRecords-------type----" + type);
|
|
|
+ try {
|
|
|
+ TimeUnit.SECONDS.sleep(120);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
String param = "{\n" +
|
|
|
" \"streamPath\":\"" + streamPath + "\",\n" +
|
|
|
- " \"date\":\"" + date + "\"\n" +
|
|
|
+ " \"date\":\"" + date + "\",\n" +
|
|
|
+ " \"type\":\"" + type + "\"\n" +
|
|
|
"}";
|
|
|
|
|
|
String jsonStr = HttpUtils.sendPost(httpUrl + "/recordpro/api/query/records", param);
|
|
@@ -1660,7 +1668,7 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
|
|
|
log.info("-----getQueryRecords-------jsonObj----" + jsonObj);
|
|
|
JSONArray resultArray = jsonObj.getJSONArray("result");
|
|
|
log.info("-----getQueryRecords-------resultArray----" + resultArray);
|
|
|
- JSONObject resultObj = resultArray.getJSONObject(0);
|
|
|
+ JSONObject resultObj = resultArray.getJSONObject(resultArray.size()-1);
|
|
|
log.info("-----getQueryRecords-------resultObj----" + resultObj);
|
|
|
String path = resultObj.getString("Path");
|
|
|
log.info("-----getQueryRecords-------path----" + path);
|