|
|
@@ -21,8 +21,8 @@ import com.ruoyi.web.modules.category.service.ICategoryService;
|
|
21
|
21
|
import com.ruoyi.web.modules.category.service.IPlatformCategoryService;
|
|
22
|
22
|
import com.ruoyi.web.modules.category.support.SellerShopContext;
|
|
23
|
23
|
import com.ruoyi.web.modules.category.vo.CategoryLevel2OptionVO;
|
|
24
|
|
-import com.ruoyi.web.modules.category.vo.CategoryListVO;
|
|
25
|
24
|
import com.ruoyi.web.modules.category.vo.CategoryRowVO;
|
|
|
25
|
+import com.ruoyi.web.modules.category.vo.CategoryScopeVO;
|
|
26
|
26
|
import com.ruoyi.web.modules.category.vo.CategoryTreeResultVO;
|
|
27
|
27
|
import com.ruoyi.web.modules.category.vo.CategoryTreeVO;
|
|
28
|
28
|
|
|
|
@@ -42,9 +42,15 @@ public class CategoryServiceImpl implements ICategoryService, IPlatformCategoryS
|
|
42
|
42
|
private IShopFacade shopFacade;
|
|
43
|
43
|
|
|
44
|
44
|
@Override
|
|
45
|
|
- public CategoryListVO selectCategoryList(String keyword)
|
|
|
45
|
+ public CategoryScopeVO selectCategoryScope()
|
|
46
|
46
|
{
|
|
47
|
|
- return doSelectCategoryList(requireShopId(), keyword);
|
|
|
47
|
+ return doSelectScope(requireShopId());
|
|
|
48
|
+ }
|
|
|
49
|
+
|
|
|
50
|
+ @Override
|
|
|
51
|
+ public List<CategoryRowVO> selectCategoryRowList(String keyword)
|
|
|
52
|
+ {
|
|
|
53
|
+ return doSelectCategoryRowList(requireShopId(), keyword);
|
|
48
|
54
|
}
|
|
49
|
55
|
|
|
50
|
56
|
@Override
|
|
|
@@ -87,9 +93,9 @@ public class CategoryServiceImpl implements ICategoryService, IPlatformCategoryS
|
|
87
|
93
|
}
|
|
88
|
94
|
|
|
89
|
95
|
@Override
|
|
90
|
|
- public CategoryListVO selectPlatformCategoryList(String keyword)
|
|
|
96
|
+ public List<CategoryRowVO> selectPlatformCategoryRowList(String keyword)
|
|
91
|
97
|
{
|
|
92
|
|
- return doSelectCategoryList(null, keyword);
|
|
|
98
|
+ return doSelectCategoryRowList(null, keyword);
|
|
93
|
99
|
}
|
|
94
|
100
|
|
|
95
|
101
|
@Override
|
|
|
@@ -131,16 +137,21 @@ public class CategoryServiceImpl implements ICategoryService, IPlatformCategoryS
|
|
131
|
137
|
doDeleteCategoryByIds(null, categoryIds, operator);
|
|
132
|
138
|
}
|
|
133
|
139
|
|
|
134
|
|
- private CategoryListVO doSelectCategoryList(Long shopId, String keyword)
|
|
|
140
|
+ private CategoryScopeVO doSelectScope(Long shopId)
|
|
135
|
141
|
{
|
|
136
|
142
|
assertScopeMaintable(shopId);
|
|
137
|
|
- CategoryListVO vo = new CategoryListVO();
|
|
|
143
|
+ CategoryScopeVO vo = new CategoryScopeVO();
|
|
138
|
144
|
vo.setShopId(shopId);
|
|
139
|
145
|
vo.setShopName(resolveScopeName(shopId));
|
|
140
|
|
- vo.setRows(buildFlatRows(queryList(shopId, keyword)));
|
|
141
|
146
|
return vo;
|
|
142
|
147
|
}
|
|
143
|
148
|
|
|
|
149
|
+ private List<CategoryRowVO> doSelectCategoryRowList(Long shopId, String keyword)
|
|
|
150
|
+ {
|
|
|
151
|
+ assertScopeMaintable(shopId);
|
|
|
152
|
+ return buildFlatRows(queryList(shopId, keyword));
|
|
|
153
|
+ }
|
|
|
154
|
+
|
|
144
|
155
|
private CategoryTreeResultVO doSelectCategoryTree(Long shopId, String keyword)
|
|
145
|
156
|
{
|
|
146
|
157
|
assertScopeMaintable(shopId);
|