|
|
@@ -853,26 +853,28 @@ public class GoodsController {
|
|
|
/**
|
|
|
* 通过分页参数获取品牌数量
|
|
|
*
|
|
|
- * @param pageable 分页信息
|
|
|
+ * @param params 分页信息
|
|
|
* @param filter 过滤条件
|
|
|
* @return Page<BrandCount>
|
|
|
*/
|
|
|
- @RequestMapping(value = "/brandProductsCount/page", method = RequestMethod.GET)
|
|
|
- public com.uas.sso.support.Page<BrandCount> getBrandProductsCount(@PageableDefault(value = 20, page = 1) Pageable pageable, GoodsFilter filter) {
|
|
|
+ @RequestMapping(value = "/brandProductsCount/page", method = RequestMethod.POST)
|
|
|
+ public com.uas.sso.support.Page<BrandCount> getBrandProductsCount(PageParams params, @RequestBody GoodsFilter filter) {
|
|
|
logger.info("后台产品管理", "分页获取品牌数量信息");
|
|
|
- return goodsService.getBrandProductsCount(pageable, filter);
|
|
|
+ PageInfo info = new PageInfo(params);
|
|
|
+ return goodsService.getBrandProductsCount(info, filter);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 通过分页参数获取类目数量
|
|
|
*
|
|
|
- * @param pageable 分页参数
|
|
|
+ * @param params 分页参数
|
|
|
* @param filter 过滤条件
|
|
|
* @return Page<KindHierarchicalCount>
|
|
|
*/
|
|
|
- @RequestMapping(value = "/kindProductsCount/page", method = RequestMethod.GET)
|
|
|
- public com.uas.sso.support.Page<KindHierarchicalCount> getKindProductsCount(@PageableDefault(value = 20, page = 1) Pageable pageable, GoodsFilter filter) {
|
|
|
+ @RequestMapping(value = "/kindProductsCount/page", method = RequestMethod.POST)
|
|
|
+ public com.uas.sso.support.Page<KindHierarchicalCount> getKindProductsCount(PageParams params, @RequestBody GoodsFilter filter) {
|
|
|
logger.info("后台产品管理", "分页获取类目数量信息");
|
|
|
- return goodsService.getKindProductsCount(pageable, filter);
|
|
|
+ PageInfo info = new PageInfo(params);
|
|
|
+ return goodsService.getKindProductsCount(info, filter);
|
|
|
}
|
|
|
}
|