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

master
chendt 4 years ago
parent 7dc4c21bac
commit e4a5209d6e

@ -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);
}

Loading…
Cancel
Save