|
@@ -80,8 +80,6 @@ public class CentereventTEventcatalogueController extends BaseController {
|
|
@Qualifier("asyncTaskExecutor")
|
|
@Qualifier("asyncTaskExecutor")
|
|
private ThreadPoolTaskExecutor asyncTaskExecutor;
|
|
private ThreadPoolTaskExecutor asyncTaskExecutor;
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 查询事件目录列表
|
|
* 查询事件目录列表
|
|
*/
|
|
*/
|
|
@@ -298,8 +296,8 @@ public class CentereventTEventcatalogueController extends BaseController {
|
|
paramMap.put("busId", log.getId());
|
|
paramMap.put("busId", log.getId());
|
|
paramMap.put("token", RemoteApiUtil.getInstance().getToken());// 大华token
|
|
paramMap.put("token", RemoteApiUtil.getInstance().getToken());// 大华token
|
|
remoteDataService.updateAttach(paramMap);
|
|
remoteDataService.updateAttach(paramMap);
|
|
- },asyncTaskExecutor);
|
|
|
|
- // future.get();
|
|
|
|
|
|
+ }, asyncTaskExecutor);
|
|
|
|
+ // future.get();
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
logger.error(e.getMessage());
|
|
logger.error(e.getMessage());
|
|
@@ -327,23 +325,6 @@ public class CentereventTEventcatalogueController extends BaseController {
|
|
EventProducerUtil.publish(eventCode, BusinessType.DELETE);
|
|
EventProducerUtil.publish(eventCode, BusinessType.DELETE);
|
|
return toAjax(result);
|
|
return toAjax(result);
|
|
}
|
|
}
|
|
- @GetMapping("/upatach/{num}")
|
|
|
|
- public AjaxResult upatach(@PathVariable int num)throws Exception {
|
|
|
|
- Map<String, String> paramMap = SpringUtils.getBean(RemoteConfigService.class).remotegetConfigMap(Arrays.asList(FILE_PREFIX_LOCAL, FILE_PREFIX_HIK1, FILE_PREFIX_HIK2, FILE_PREFIX_DH1, FILE_PREFIX_DH2)).getData();
|
|
|
|
- paramMap.put("token", RemoteApiUtil.getInstance().getToken());// 大华token
|
|
|
|
- List<Map<String, Object>> list = centereventTEventcatalogueService.selectFailUpattah(num);
|
|
|
|
- int i = 0;
|
|
|
|
- for (Map map:list) {
|
|
|
|
- paramMap.put("czlx", "AI");
|
|
|
|
- paramMap.put("busId", MapUtils.getString(map,"busId"));
|
|
|
|
- remoteDataService.updateAttach(paramMap);
|
|
|
|
- Thread.sleep(60000);
|
|
|
|
- i++;
|
|
|
|
- logger.info("==================>大华图片远程下载过程中"+MapUtils.getString(map,"busId")+"当前序号"+i);
|
|
|
|
- }
|
|
|
|
- return AjaxResult.success();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* 手机端调用发送短信
|
|
* 手机端调用发送短信
|
|
@@ -401,4 +382,21 @@ public class CentereventTEventcatalogueController extends BaseController {
|
|
return AjaxResult.success(centereventTEventcatalogueService.eventhandleDownload(id));
|
|
return AjaxResult.success(centereventTEventcatalogueService.eventhandleDownload(id));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @GetMapping("/upatach/{num}")
|
|
|
|
+ public AjaxResult upatach(@PathVariable int num) throws Exception {
|
|
|
|
+ Map<String, String> paramMap = SpringUtils.getBean(RemoteConfigService.class).remotegetConfigMap(Arrays.asList(FILE_PREFIX_LOCAL, FILE_PREFIX_HIK1, FILE_PREFIX_HIK2, FILE_PREFIX_DH1, FILE_PREFIX_DH2)).getData();
|
|
|
|
+ paramMap.put("token", RemoteApiUtil.getInstance().getToken());// 大华token
|
|
|
|
+ List<Map<String, Object>> list = centereventTEventcatalogueService.selectFailUpattah(num);
|
|
|
|
+ int i = 0;
|
|
|
|
+ for (Map map : list) {
|
|
|
|
+ paramMap.put("czlx", "AI");
|
|
|
|
+ paramMap.put("busId", MapUtils.getString(map, "busId"));
|
|
|
|
+ remoteDataService.updateAttach(paramMap);
|
|
|
|
+ Thread.sleep(60000);
|
|
|
|
+ i++;
|
|
|
|
+ logger.info("==================>大华图片远程下载过程中" + MapUtils.getString(map, "busId") + "当前序号" + i);
|
|
|
|
+ }
|
|
|
|
+ return AjaxResult.success(i);
|
|
|
|
+ }
|
|
}
|
|
}
|