Commit 528b784a authored by suntao's avatar suntao

channel查询

parent 6cc9c1b3
......@@ -29,8 +29,8 @@ public class ChannelConfController {
@GetMapping("/info")
public Page<ChannelConfiguration> channelInfo(@RequestParam @Valid Pagination pagination, Integer channelId) {
return channelConfService.getChannelInfo(pagination, channelId);
public Page<ChannelConfiguration> channelInfo(Integer pageNumber, Integer pageSize, Integer channelId) {
return channelConfService.getChannelInfo(pageNumber, pageSize, channelId);
}
......
......@@ -35,7 +35,7 @@ public class ChannelConfService {
public Page<ChannelConfiguration> getChannelInfo(Pagination pagination, Integer channelId) {
public Page<ChannelConfiguration> getChannelInfo(Integer pageNumber, Integer pageSize, Integer channelId) {
Page<ChannelConfiguration> page = this.clfChannelConfigurationRepository.findAll((root, criteriaQuery, criteriaBuilder) -> {
......@@ -51,7 +51,7 @@ public class ChannelConfService {
return criteriaQuery.getRestriction();
}, new PageRequest(pagination.getPageNumber(), pagination.getPageSize()));
}, new PageRequest(pageNumber, pageSize));
return page;
......
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