mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-08 08:07:46 +08:00
修复获取全部文章问题
This commit is contained in:
@@ -91,10 +91,13 @@ public class ArticleServiceImpl implements IArticleService {
|
||||
queryWrapper.eq("is_show", 1);
|
||||
|
||||
articleMapper.setSearch(queryWrapper, searchValidate, new String[]{
|
||||
"=:cid:int",
|
||||
"like:keyword@title:str"
|
||||
});
|
||||
|
||||
if (StringUtils.isNotNull(searchValidate.getCid()) && searchValidate.getCid() > 0) {
|
||||
queryWrapper.eq("cid", searchValidate.getCid());
|
||||
}
|
||||
|
||||
if (StringUtils.isNotNull(searchValidate.getSort())) {
|
||||
switch (searchValidate.getSort()) {
|
||||
case "hot": // 最热
|
||||
|
||||
Reference in New Issue
Block a user