fix-首页搜索
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user