mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2026-03-22 09:17:16 +08:00
优化了平台热搜、轮播图排序统一,越小越靠前
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user