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

This commit is contained in:
有来技术 2021-10-21 00:22:09 +08:00
parent 1cbcdec8b5
commit cc72be0e5d
3 changed files with 2 additions and 6 deletions

View File

@ -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) {

View File

@ -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);
}

View File

@ -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
}
/**
* 修改商品
*