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