Sfoglia il codice sorgente

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

lyhzzz 3 anni fa
parent
commit
0e0fe7c757

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