Commit d915aa46 authored by muhong's avatar muhong

修改 首页分页

parent 679a1eca
...@@ -49,7 +49,7 @@ public class ItemServiceImpl implements ItemService { ...@@ -49,7 +49,7 @@ public class ItemServiceImpl implements ItemService {
result.setPageSize(page.getPageSize()); result.setPageSize(page.getPageSize());
result.setTotal(page.getTotal()); result.setTotal(page.getTotal());
result.setList(new ArrayList<>()); result.setList(new ArrayList<>());
result.setHasNextPage(result.isHasNextPage()); result.setHasNextPage(page.isHasNextPage());
if (CollectionUtils.isEmpty(page.getList())) { if (CollectionUtils.isEmpty(page.getList())) {
return Result.success(result); return Result.success(result);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment