提交 ec58772d 编写于 作者: tangyaolong's avatar tangyaolong

优化逻辑

上级 bf510c0c
......@@ -130,14 +130,14 @@ public class DynamicModelConfigExService extends DynamicModelConfigServiceImpl {
List<Map<String, Object>> workflow = searchWorkFlow(publishFile.getPath());
//部署流程
if (workflow.size() > 0) {
// wfClient.deployBpmnFile(workflow);
wfClient.deployBpmnFile(workflow);
}
//发送redis广播
// Map<String, Object> message = new HashMap<>();
// message.put("cacheName", "dynamicModel");
// message.put("dynamicModel", et.getConfigname());
// RedisPublisher redisPublisher = new RedisPublisher(redisOperations, RedisChannelTopic.REDIS_CACHE_DYNAMICMODEL_TOPIC.getChannelTopic());
// redisPublisher.publisher(message);
Map<String, Object> message = new HashMap<>();
message.put("cacheName", "dynamicModel");
message.put("dynamicModel", et.getConfigname());
RedisPublisher redisPublisher = new RedisPublisher(redisOperations, RedisChannelTopic.REDIS_CACHE_DYNAMICMODEL_TOPIC.getChannelTopic());
redisPublisher.publisher(message);
//激活当前et.
et.setStatus(StaticDict.DynamicModelStatus.ITEM_1.getValue());
update(Wrappers.<DynamicModelConfig>lambdaUpdate().set(DynamicModelConfig::getStatus, StaticDict.DynamicModelStatus.ITEM_0.getValue()).eq(DynamicModelConfig::getSystemId, systemId));
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册