|
|
|
@ -107,7 +107,7 @@ public class CommentService {
|
|
|
|
|
commentHis.setJournalImage(parentComment.getJournalImage());
|
|
|
|
|
commentHis.setCreateTime(new Date());
|
|
|
|
|
UserInfo parentCommentUser =userInfoService.findById(parentComment.getUserId());
|
|
|
|
|
if (0 != parentCommentUser.getEnableNotice()) {
|
|
|
|
|
if (null ==parentCommentUser.getEnableNotice() || 1 == parentCommentUser.getEnableNotice()) {
|
|
|
|
|
commentHisDao.save(commentHis);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -139,7 +139,7 @@ public class CommentService {
|
|
|
|
|
userMessageDto.setSendUserAvatar(Constants.RESOURCE_PREFIX+userLoginDto.getAvatar());
|
|
|
|
|
userMessageDto.setSendUserId(userLoginDto.getUserId());
|
|
|
|
|
userMessageDto.setSendUserNickName(userLoginDto.getNickName());
|
|
|
|
|
if (0 != parentCommentUser.getEnableNotice()) {
|
|
|
|
|
if (null ==parentCommentUser.getEnableNotice() || 1 == parentCommentUser.getEnableNotice()) {
|
|
|
|
|
rabbitTemplate.convertAndSend("userMessage",userMessageDto);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -241,7 +241,7 @@ public class CommentService {
|
|
|
|
|
|
|
|
|
|
Comment parentComment = commentDao.findById(commentId).get();
|
|
|
|
|
UserInfo parentCommentUser =userInfoService.findById(parentComment.getUserId());
|
|
|
|
|
if (0 != parentCommentUser.getEnableNotice()) {
|
|
|
|
|
if (null ==parentCommentUser.getEnableNotice() || 1 == parentCommentUser.getEnableNotice()) {
|
|
|
|
|
/**
|
|
|
|
|
* 向被点赞者发消息
|
|
|
|
|
*/
|
|
|
|
|