From ac688b17e0749e87d075c984b16d6d6261df321a Mon Sep 17 00:00:00 2001 From: liuchuang Date: Tue, 12 Nov 2019 09:08:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=9D=E9=A2=98=E7=9A=84=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E3=80=81=E8=AF=84=E8=AE=BA=E7=9A=84=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=8F=8D=E5=AF=B9=E5=8F=91=E9=80=81=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/constant/TopicNoticeConstant.java | 18 ++++---- .../service/impl/TopicCommentServiceImpl.java | 11 +++-- .../TopicCommentUserAttitudeServiceImpl.java | 45 +++++++++++++------ 3 files changed, 47 insertions(+), 27 deletions(-) diff --git a/esua-epdc/epdc-module/epdc-group/epdc-group-client/src/main/java/com.elink.esua.epdc/dto/constant/TopicNoticeConstant.java b/esua-epdc/epdc-module/epdc-group/epdc-group-client/src/main/java/com.elink.esua.epdc/dto/constant/TopicNoticeConstant.java index 5a53e5d20..a86d6702a 100644 --- a/esua-epdc/epdc-module/epdc-group/epdc-group-client/src/main/java/com.elink.esua.epdc/dto/constant/TopicNoticeConstant.java +++ b/esua-epdc/epdc-module/epdc-group/epdc-group-client/src/main/java/com.elink.esua.epdc/dto/constant/TopicNoticeConstant.java @@ -14,15 +14,6 @@ public interface TopicNoticeConstant { * 评论被回复 */ String NOTICE_TOPIC_COMMENT_REPLY = "你的评论【有新回复】"; - - /** - * 话题支持 - */ - String NOTICE_TOPIC_APPROVE = "你的话题【有新的支持】"; - /** - * 话题反对 - */ - String NOTICE_TOPIC_OPPOSE = "你的话题【有新的反对】"; /** * 评论支持 */ @@ -49,6 +40,13 @@ public interface TopicNoticeConstant { */ String NOTICE_BUSINESS_TYPE_TOPIC_COMMENT_REPLY = "topicCommentReply"; + /** + * 消息所属业务类型:话题评论支持 + */ + String NOTICE_BUSINESS_TYPE_TOPIC_COMMENT_APPROVE = "topicCommentApprove"; - + /** + * 消息所属业务类型:话题评论反对 + */ + String NOTICE_BUSINESS_TYPE_TOPIC_COMMENT_OPPOSE = "topicCommentOppose"; } diff --git a/esua-epdc/epdc-module/epdc-group/epdc-group-server/src/main/java/com.elink.esua.epdc/modules/comment/service/impl/TopicCommentServiceImpl.java b/esua-epdc/epdc-module/epdc-group/epdc-group-server/src/main/java/com.elink.esua.epdc/modules/comment/service/impl/TopicCommentServiceImpl.java index cf1ec5b9e..3eefc7772 100755 --- a/esua-epdc/epdc-module/epdc-group/epdc-group-server/src/main/java/com.elink.esua.epdc/modules/comment/service/impl/TopicCommentServiceImpl.java +++ b/esua-epdc/epdc-module/epdc-group/epdc-group-server/src/main/java/com.elink.esua.epdc/modules/comment/service/impl/TopicCommentServiceImpl.java @@ -32,6 +32,7 @@ import com.elink.esua.epdc.dto.comment.TopicCommentsResultDTO; import com.elink.esua.epdc.dto.constant.TopicNoticeConstant; import com.elink.esua.epdc.dto.epdc.form.EpdcInformationFormDTO; import com.elink.esua.epdc.dto.topic.TopicCommentsDTO; +import com.elink.esua.epdc.dto.topic.TopicDTO; import com.elink.esua.epdc.modules.async.NewsTask; import com.elink.esua.epdc.modules.comment.dao.TopicCommentDao; import com.elink.esua.epdc.modules.comment.entity.TopicCommentEntity; @@ -155,16 +156,19 @@ public class TopicCommentServiceImpl extends BaseServiceImpl implements TopicCommentUserAttitudeService { - @Autowired - private TopicCommentUserAttitudeRedis topicCommentUserAttitudeRedis; @Autowired private TopicCommentService topicCommentService; + @Autowired + private NewsTask newsTask; + @Override public PageData page(Map params) { IPage page = baseDao.selectPage( @@ -114,8 +119,14 @@ public class TopicCommentUserAttitudeServiceImpl extends BaseServiceImpl