提交 452042da 作者: 925993793@qq.com

自定义专题绑定信息源变更通知采集,另起线程处理,不影响主业务逻辑

上级 ce78a979
...@@ -198,7 +198,6 @@ public class ConfigurationMessageService { ...@@ -198,7 +198,6 @@ public class ConfigurationMessageService {
public void bindInfoSourceSend(String subjectId){ public void bindInfoSourceSend(String subjectId){
CompletableFuture.runAsync(() -> {
try { try {
remoteModelService.delSubjectCache(subjectId); remoteModelService.delSubjectCache(subjectId);
} catch (Exception e) { } catch (Exception e) {
...@@ -209,6 +208,7 @@ public class ConfigurationMessageService { ...@@ -209,6 +208,7 @@ public class ConfigurationMessageService {
log.info("未查询到专题或专题未启用"); log.info("未查询到专题或专题未启用");
return; return;
} }
CompletableFuture.runAsync(() -> {
//只有启用状态的专题才需要通知采集更新绑定数据 //只有启用状态的专题才需要通知采集更新绑定数据
List<String> bindIds = getAllInfoSourceIds(subjectId); List<String> bindIds = getAllInfoSourceIds(subjectId);
String getparam ; String getparam ;
...@@ -216,7 +216,6 @@ public class ConfigurationMessageService { ...@@ -216,7 +216,6 @@ public class ConfigurationMessageService {
getparam = getparam(byId, null, bindIds); getparam = getparam(byId, null, bindIds);
}else { }else {
log.info("专题未绑定信息源,通知采集清空"); log.info("专题未绑定信息源,通知采集清空");
getparam = getparam(byId, null, new ArrayList<>()); getparam = getparam(byId, null, new ArrayList<>());
} }
String post = caiJiCenterHttpService.allInfosourcebindUrl(getparam); String post = caiJiCenterHttpService.allInfosourcebindUrl(getparam);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论