Commit 47c749f1 authored by 刘基明's avatar 刘基明

重复关注

parent e39e9446
......@@ -136,7 +136,9 @@ public class TopicService {
public boolean addFollowTopic(String topicId, String userId) {
TopicFollowRelEntity searchResult = topicFollowRelMapper.queryOneByTopicIdAndUserId(topicId, userId);
TopicFollowRelEntity searchResult = topicFollowRelMapper.selectOne(new LambdaQueryWrapper<TopicFollowRelEntity>()
.eq(TopicFollowRelEntity::getUserId, userId)
.eq(TopicFollowRelEntity::getTopicId, topicId));
if (searchResult == null) {
TopicFollowRelEntity entity = TopicFollowRelEntity.builder()
.topicId(topicId)
......@@ -199,7 +201,7 @@ public class TopicService {
public String getPermissionToast(String topicId) {
return "暂无权限参与此话题~您可联系官方客服"+kefuTelephone+"了解详情";
return "暂无权限参与此话题~您可联系官方客服" + kefuTelephone + "了解详情";
// return "该话题仅限" + permission + "可参与哦~";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment