瀏覽代碼

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

chendt 3 年之前
父節點
當前提交
e4a5209d6e

+ 1 - 0
yami-shop-admin/src/main/java/com/yami/shop/admin/controller/HotSearchController.java

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

+ 1 - 1
yami-shop-admin/src/main/java/com/yami/shop/admin/controller/IndexImgController.java

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