优化了平台热搜、轮播图排序统一,越小越靠前

This commit is contained in:
chendt
2022-07-25 09:35:20 +08:00
parent 7dc4c21bac
commit e4a5209d6e
2 changed files with 2 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ public class HotSearchController {
.like(StrUtil.isNotBlank(hotSearch.getContent()), HotSearch::getContent,hotSearch.getContent())
.like(StrUtil.isNotBlank(hotSearch.getTitle()), HotSearch::getTitle,hotSearch.getTitle())
.eq(hotSearch.getStatus()!=null, HotSearch::getStatus,hotSearch.getStatus())
.orderByAsc(HotSearch::getSeq)
);
return ResponseEntity.ok(hotSearchs);
}

View File

@@ -51,7 +51,7 @@ public class IndexImgController {
IPage<IndexImg> indexImgPage = indexImgService.page(page,
new LambdaQueryWrapper<IndexImg>()
.eq(indexImg.getStatus() != null, IndexImg::getStatus, indexImg.getStatus())
.orderByDesc(IndexImg::getSeq));
.orderByAsc(IndexImg::getSeq));
return ResponseEntity.ok(indexImgPage);
}