fix getBranchShopList 分页

This commit is contained in:
shuo.wang
2025-01-20 10:21:33 +08:00
parent 789d3702ca
commit 5b25213e2c

View File

@@ -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;
}