fix-首页搜索

This commit is contained in:
xl
2024-07-10 17:42:14 +08:00
parent 33f9c414fd
commit f4f78c73c6

View File

@@ -443,7 +443,7 @@ public class CommunityNotesServiceImpl extends ServiceImpl<CommunityNotesDao, Co
List<Integer> finalUserIdList = userIdList;
lqw.and(i -> i.like(CommunityNotes::getTitle, keywords)
.or().like(CommunityNotes::getContent, keywords)
.or().eq(CommunityNotes::getUid, keywords)
//.or().eq(CommunityNotes::getUid, keywords)
.or().in(CommunityNotes::getUid, finalUserIdList));
} else {
lqw.and(i -> i.like(CommunityNotes::getTitle, keywords).or().like(CommunityNotes::getContent, keywords));