mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 12:48:59 +08:00
refactor: 方法名修改
This commit is contained in:
parent
76359ee81e
commit
eedd7a08bc
@ -29,13 +29,13 @@ public class SpuController {
|
||||
@ApiOperation(value = "商品分页列表")
|
||||
@GetMapping("/page")
|
||||
public PageResult listSpuPage(SpuPageQuery queryParams) {
|
||||
IPage<GoodsPageVO> result = iPmsSpuService.listAppSpuWithPage(queryParams);
|
||||
IPage<GoodsPageVO> result = iPmsSpuService.listAppSpuPage(queryParams);
|
||||
return PageResult.success(result);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取商品详情")
|
||||
@GetMapping("/{spuId}")
|
||||
public Result<GoodsDetailVO> getGoodsDetail(
|
||||
public Result<GoodsDetailVO> getSpuDetail(
|
||||
@ApiParam("商品ID") @PathVariable Long spuId
|
||||
) {
|
||||
GoodsDetailVO goodsDetailVO = iPmsSpuService.getAppSpuDetail(spuId);
|
||||
|
@ -25,7 +25,7 @@ public interface PmsSpuMapper extends BaseMapper<PmsSpu> {
|
||||
* @param queryParams
|
||||
* @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);
|
||||
|
||||
|
@ -26,7 +26,7 @@ public interface IPmsSpuService extends IService<PmsSpu> {
|
||||
* @param queryParams
|
||||
* @return
|
||||
*/
|
||||
IPage<GoodsPageVO> listAppSpuWithPage(SpuPageQuery queryParams);
|
||||
IPage<GoodsPageVO> listAppSpuPage(SpuPageQuery queryParams);
|
||||
|
||||
|
||||
/**
|
||||
|
@ -55,9 +55,9 @@ public class PmsSpuServiceImpl extends ServiceImpl<PmsSpuMapper, PmsSpu> impleme
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public IPage<GoodsPageVO> listAppSpuWithPage(SpuPageQuery queryParams) {
|
||||
public IPage<GoodsPageVO> listAppSpuPage(SpuPageQuery queryParams) {
|
||||
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);
|
||||
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
|
||||
id,
|
||||
NAME,
|
||||
|
Loading…
Reference in New Issue
Block a user