mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 12:48:59 +08:00
docs(PmsSpuServiceImpl.java): 商品列表分页参数确实问题修复
This commit is contained in:
parent
1cbcdec8b5
commit
cc72be0e5d
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 修改商品
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user