Commit 7285b76c by songyinghui

feat: 分页参数

parent 648b0755
......@@ -75,6 +75,8 @@ public class InteractRecordApiServiceImpl implements InteractRecordApiService {
.collect(Collectors.toList());
result.setTotalCount(pageResult.getTotalCount());
result.setResult(recordInfos);
result.setCurrentPage(interactRecordQDTO.getPageNum());
result.setPageSize(interactRecordQDTO.getPageSize());
return ServiceResponse.success(result);
}
......
......@@ -48,6 +48,8 @@ public class PotentialCustomerApiServiceImpl implements PotentialCustomerApiServ
}
Page<PotentialCustomerDTO> resultPage = new Page<>();
resultPage.setTotalCount(customerPage.getTotalCount());
resultPage.setCurrentPage(potentialCustomerQDTO.getPageNum());
resultPage.setPageSize(potentialCustomerQDTO.getPageSize());
List<PotentialCustomerDTO> customerDTOS = customerPage.getResult()
.stream()
.map(item -> {
......
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