店铺树形新增显示条件查询
This commit is contained in:
parent
9eafc6bac5
commit
eade3040d2
@ -72,8 +72,12 @@ public class ShopBaseStoreCategoryAdminController {
|
||||
@RequestMapping(value = "/categoryTree", method = RequestMethod.GET)
|
||||
public CommonResult categoryTree(ShopBaseStoreCategory category) {
|
||||
QueryWrapper<ShopBaseStoreCategory> queryWrapper = new QueryWrapper<>();
|
||||
if (category.getStore_category_parent_id() != null)
|
||||
if (category.getStore_category_parent_id() != null){
|
||||
queryWrapper.eq("store_category_parent_id", category.getStore_category_parent_id());
|
||||
}
|
||||
if(category.getCategory_is_enable() != null){
|
||||
queryWrapper.eq("category_is_enable", category.getCategory_is_enable());
|
||||
}
|
||||
|
||||
return CommonResult.success(shopBaseStoreCategoryService.getCategoryTree(queryWrapper));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user