refactor: 方法名修改

This commit is contained in:
郝先瑞 2022-03-31 00:06:26 +08:00
parent 76359ee81e
commit eedd7a08bc
5 changed files with 7 additions and 7 deletions

View File

@ -29,13 +29,13 @@ public class SpuController {
@ApiOperation(value = "商品分页列表") @ApiOperation(value = "商品分页列表")
@GetMapping("/page") @GetMapping("/page")
public PageResult listSpuPage(SpuPageQuery queryParams) { public PageResult listSpuPage(SpuPageQuery queryParams) {
IPage<GoodsPageVO> result = iPmsSpuService.listAppSpuWithPage(queryParams); IPage<GoodsPageVO> result = iPmsSpuService.listAppSpuPage(queryParams);
return PageResult.success(result); return PageResult.success(result);
} }
@ApiOperation(value = "获取商品详情") @ApiOperation(value = "获取商品详情")
@GetMapping("/{spuId}") @GetMapping("/{spuId}")
public Result<GoodsDetailVO> getGoodsDetail( public Result<GoodsDetailVO> getSpuDetail(
@ApiParam("商品ID") @PathVariable Long spuId @ApiParam("商品ID") @PathVariable Long spuId
) { ) {
GoodsDetailVO goodsDetailVO = iPmsSpuService.getAppSpuDetail(spuId); GoodsDetailVO goodsDetailVO = iPmsSpuService.getAppSpuDetail(spuId);

View File

@ -25,7 +25,7 @@ public interface PmsSpuMapper extends BaseMapper<PmsSpu> {
* @param queryParams * @param queryParams
* @return * @return
*/ */
List<GoodsPageVO> listAppSpuWithPage(Page<GoodsPageVO> page, SpuPageQuery queryParams); List<GoodsPageVO> listAppSpuPage(Page<GoodsPageVO> page, SpuPageQuery queryParams);
List<PmsSpu> list(Page<PmsSpu> page, String name, Long categoryId); List<PmsSpu> list(Page<PmsSpu> page, String name, Long categoryId);

View File

@ -26,7 +26,7 @@ public interface IPmsSpuService extends IService<PmsSpu> {
* @param queryParams * @param queryParams
* @return * @return
*/ */
IPage<GoodsPageVO> listAppSpuWithPage(SpuPageQuery queryParams); IPage<GoodsPageVO> listAppSpuPage(SpuPageQuery queryParams);
/** /**

View File

@ -55,9 +55,9 @@ public class PmsSpuServiceImpl extends ServiceImpl<PmsSpuMapper, PmsSpu> impleme
* @return * @return
*/ */
@Override @Override
public IPage<GoodsPageVO> listAppSpuWithPage(SpuPageQuery queryParams) { public IPage<GoodsPageVO> listAppSpuPage(SpuPageQuery queryParams) {
Page<GoodsPageVO> page = new Page<>(queryParams.getPageNum(), queryParams.getPageSize()); Page<GoodsPageVO> page = new Page<>(queryParams.getPageNum(), queryParams.getPageSize());
List<GoodsPageVO> list = this.baseMapper.listAppSpuWithPage(page, queryParams); List<GoodsPageVO> list = this.baseMapper.listAppSpuPage(page, queryParams);
page.setRecords(list); page.setRecords(list);
return page; return page;
} }

View File

@ -72,7 +72,7 @@
<!--「移动端」商品分页列表--> <!--「移动端」商品分页列表-->
<select id="listAppSpuWithPage" resultType="com.youlai.mall.pms.pojo.vo.GoodsPageVO"> <select id="listAppSpuPage" resultType="com.youlai.mall.pms.pojo.vo.GoodsPageVO">
SELECT SELECT
id, id,
NAME, NAME,