fix getBranchShopList 分页
This commit is contained in:
@@ -380,6 +380,7 @@ public class ShopServiceImpl implements ShopService {
|
||||
PageHelper.startPage(request.getPageNum(), request.getPageSize());
|
||||
List<BranchShopResponse> responses = new ArrayList<>();
|
||||
List<PreparationDTO> preparations = shopInfoDAO.ListByBranchShopRequest(request,userId);
|
||||
PageInfo pageInfo = new PageInfo<>(preparations);
|
||||
if (CollectionUtils.isEmpty(preparations)) {
|
||||
return new PageInfo<>();
|
||||
}
|
||||
@@ -417,8 +418,8 @@ public class ShopServiceImpl implements ShopService {
|
||||
response.setDays();
|
||||
responses.add(response);
|
||||
}
|
||||
|
||||
return new PageInfo<>(responses);
|
||||
pageInfo.setList(responses);
|
||||
return pageInfo;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user