|
@@ -4,7 +4,6 @@ import com.caimei.mapper.ProductMapper;
|
|
|
import com.caimei.model.ResponseJson;
|
|
|
import com.caimei.model.vo.ClubVo;
|
|
|
import com.caimei.service.ProductService;
|
|
|
-import com.github.pagehelper.Page;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -24,8 +23,8 @@ public class ProductServiceImpl implements ProductService {
|
|
|
private ProductMapper productMapper;
|
|
|
|
|
|
@Override
|
|
|
- public ResponseJson<PageInfo<ClubVo>> clubList(Integer organizeId, String name, Page<ClubVo> page) {
|
|
|
- PageHelper.startPage(page.getPageNum(),page.getPageSize());
|
|
|
+ public ResponseJson<PageInfo<ClubVo>> clubList(Integer organizeId, String name, int pageNum, int pageSize) {
|
|
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
List<ClubVo> clubList = productMapper.findClubList(organizeId, name);
|
|
|
PageInfo<ClubVo> pageInfo = new PageInfo<>(clubList);
|
|
|
|