diff --git a/community-service/src/main/java/com/tanpu/community/service/TopicService.java b/community-service/src/main/java/com/tanpu/community/service/TopicService.java index 2a0c9ea787ddb469f7a8f8775fedd44179adeb1f..87b93ed67021ab15b14e1f2d38e0f28771d9ebcf 100644 --- a/community-service/src/main/java/com/tanpu/community/service/TopicService.java +++ b/community-service/src/main/java/com/tanpu/community/service/TopicService.java @@ -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 + "å¯å‚与哦~"; }