提交 cc72be0e 编写于 作者: 有来技术

docs(PmsSpuServiceImpl.java): 商品列表分页参数确实问题修复

上级 1cbcdec8
......@@ -34,7 +34,6 @@ public class GoodsController {
@ApiImplicitParam(name = "limit", value = "每页数量", paramType = "query", dataType = "Long"),
@ApiImplicitParam(name = "categoryId", value = "分类ID", paramType = "query", dataType = "Long"),
@ApiImplicitParam(name = "name", value = "商品名称", paramType = "query", dataType = "String")
})
@GetMapping("/page")
public Result list(Integer page, Integer limit, String name, Long categoryId) {
......
......@@ -12,6 +12,5 @@ import java.util.List;
*/
@Mapper
public interface PmsSpuMapper extends BaseMapper<PmsSpu> {
List<PmsSpu> list( String name, Long categoryId);
List<PmsSpu> list(Page<PmsSpu> page, String name, Long categoryId);
}
......@@ -39,7 +39,6 @@ import java.util.stream.Collectors;
public class PmsSpuServiceImpl extends ServiceImpl<PmsSpuMapper, PmsSpu> implements IPmsSpuService {
private final IPmsSkuService iPmsSkuService;
private final IPmsSpuAttributeValueService iPmsSpuAttributeValueService;
private final BloomRedisService bloomRedisService;
/**
* 商品分页列表
......@@ -51,7 +50,7 @@ public class PmsSpuServiceImpl extends ServiceImpl<PmsSpuMapper, PmsSpu> impleme
*/
@Override
public IPage<PmsSpu> list(Page<PmsSpu> page, String name, Long categoryId) {
List<PmsSpu> list = this.baseMapper.list( name, categoryId);
List<PmsSpu> list = this.baseMapper.list(page, name, categoryId);
page.setRecords(list);
return page;
}
......@@ -78,7 +77,6 @@ public class PmsSpuServiceImpl extends ServiceImpl<PmsSpuMapper, PmsSpu> impleme
}
/**
* 修改商品
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册