Commit d131a09b authored by 刘基明's avatar 刘基明

公开的讨论区权限

parent e054820f
......@@ -326,7 +326,7 @@ public class TopicService {
public Set<String> getUserPermitTopics(String userId) {
// 公开权限的话题
List<TopicEntity> openTopics = topicMapper.selectList(new LambdaQueryWrapper<TopicEntity>()
.eq(TopicEntity::getSpecialPermission, StatusEnum.TRUE.getCode())
.eq(TopicEntity::getSpecialPermission, StatusEnum.FALSE.getCode())
.eq(TopicEntity::getDeleteTag, StatusEnum.FALSE.getCode())
.eq(TopicEntity::getIsConceal, StatusEnum.FALSE.getCode()));
......
......@@ -80,6 +80,6 @@
open="(" separator="," close=")">
#{item}
</foreach>
) limit #{pageStart}, #{pageSize}
) order by create_time desc limit #{pageStart}, #{pageSize}
</select>
</mapper>
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