Browse Source

店铺管理列表查询框
改为:店铺分类。

lyhzzz 3 years ago
parent
commit
0e0fe7c757
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/main/java/com/cdf/controller/api/ShopApiController.java

+ 2 - 0
src/main/java/com/cdf/controller/api/ShopApiController.java

@@ -34,6 +34,8 @@ public class ShopApiController {
         if(categoryId != null){
             wrapper.eq(Shop::getCategoryId,categoryId);
         }
+        wrapper.orderByAsc(Shop::getSort);
+        wrapper.orderByDesc(Shop::getCreateTime);
         return ResultData.ok(shopService.list(wrapper));
     }
 }