提交 f8df0b03 作者: yanxin

增加资讯发布时间存储,增加资讯标题检索

上级 f050c2c2
...@@ -36,6 +36,8 @@ public class CharacterExtractInfo { ...@@ -36,6 +36,8 @@ public class CharacterExtractInfo {
private String articleId; private String articleId;
//资讯标题 //资讯标题
private String articleTitle; private String articleTitle;
//资讯发布时间
private String articleDate;
//资讯来源 //资讯来源
private String articleOrigin; private String articleOrigin;
//审核状态 1已审核 0未审核 //审核状态 1已审核 0未审核
......
...@@ -116,6 +116,7 @@ public class PersonOfJobChangeKafkaConsumer { ...@@ -116,6 +116,7 @@ public class PersonOfJobChangeKafkaConsumer {
.articleIndex(USERSERVER_BASEDATA) .articleIndex(USERSERVER_BASEDATA)
.articleId(baseData.getId()) .articleId(baseData.getId())
.articleTitle(baseData.getTitle()) .articleTitle(baseData.getTitle())
.articleDate(baseData.getPublishDate()!=null?baseData.getPublishDate().replace("T", " "):null)
.articleOrigin(baseData.getOrigin()) .articleOrigin(baseData.getOrigin())
.checkStatus(0) .checkStatus(0)
.createTime(new Date()) .createTime(new Date())
......
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
<if test="duty != null and duty != ''"> <if test="duty != null and duty != ''">
AND duty like '%${duty}%' AND duty like '%${duty}%'
</if> </if>
<if test="articleTitle != null and articleTitle != ''">
AND article_title like '%${articleTitle}%'
</if>
<if test="checkStatus != null and checkStatus != ''"> <if test="checkStatus != null and checkStatus != ''">
AND check_status = #{checkStatus} AND check_status = #{checkStatus}
</if> </if>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论