Merge branch 'hotfix/article'
This commit is contained in:
commit
c46903a210
|
|
@ -91,10 +91,13 @@ public class ArticleServiceImpl implements IArticleService {
|
||||||
queryWrapper.eq("is_show", 1);
|
queryWrapper.eq("is_show", 1);
|
||||||
|
|
||||||
articleMapper.setSearch(queryWrapper, searchValidate, new String[]{
|
articleMapper.setSearch(queryWrapper, searchValidate, new String[]{
|
||||||
"=:cid:int",
|
|
||||||
"like:keyword@title:str"
|
"like:keyword@title:str"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (StringUtils.isNotNull(searchValidate.getCid()) && searchValidate.getCid() > 0) {
|
||||||
|
queryWrapper.eq("cid", searchValidate.getCid());
|
||||||
|
}
|
||||||
|
|
||||||
if (StringUtils.isNotNull(searchValidate.getSort())) {
|
if (StringUtils.isNotNull(searchValidate.getSort())) {
|
||||||
switch (searchValidate.getSort()) {
|
switch (searchValidate.getSort()) {
|
||||||
case "hot": // 最热
|
case "hot": // 最热
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue