mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
refactor: 方法名修改
This commit is contained in:
parent
76359ee81e
commit
eedd7a08bc
@ -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);
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user