提交 38495c56 作者: 925993793@qq.com

增加编辑和删除功能(研究中心调用)

上级 cff9d628
...@@ -78,6 +78,7 @@ public class EventApi { ...@@ -78,6 +78,7 @@ public class EventApi {
if (keywordsVO != null) { if (keywordsVO != null) {
Event event = simpleSave(addEventVO); Event event = simpleSave(addEventVO);
KeyWords keyWords = keyWordsService.saveKeyword(event, keywordsVO.getKeyword(), keywordsVO.getExclusionWord()); KeyWords keyWords = keyWordsService.saveKeyword(event, keywordsVO.getKeyword(), keywordsVO.getExclusionWord());
event.setKeyWords(keyWords);
CompletableFuture.runAsync(()->{ CompletableFuture.runAsync(()->{
iXxlJobInfoService.subjectInsert(event); iXxlJobInfoService.subjectInsert(event);
//关键词 //关键词
...@@ -100,7 +101,7 @@ public class EventApi { ...@@ -100,7 +101,7 @@ public class EventApi {
} }
/** /**
* 新增事件(页面简化版) * 编辑事件
* *
* @param addEventVO 事件信息 * @param addEventVO 事件信息
* @author lkg * @author lkg
......
...@@ -139,7 +139,7 @@ public class Event { ...@@ -139,7 +139,7 @@ public class Event {
private Integer otherHot; private Integer otherHot;
/**发布状态(0-未发布;1-已发布)*/ /**发布状态(0-未发布;1-已发布)*/
private Integer publishStatus; private Integer publishStatus;
/**发布状态(0-未发布;1-已发布)*/ /**关联事件*/
private String relationEvents; private String relationEvents;
/**发布时间*/ /**发布时间*/
private String publishDate; private String publishDate;
...@@ -148,7 +148,9 @@ public class Event { ...@@ -148,7 +148,9 @@ public class Event {
/**事件创建方式(1-用户直接创建;2-基于挖掘的事件创建)*/ /**事件创建方式(1-用户直接创建;2-基于挖掘的事件创建)*/
private Integer category; private Integer category;
/**关键词信息*/
@TableField(exist = false)
private KeyWords keyWords;
@TableField(exist = false) @TableField(exist = false)
private String typeName; private String typeName;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论