Commit a92beb69 authored by suntao's avatar suntao

page 查询验证

parent 8cb23f5a
......@@ -37,6 +37,9 @@ public class ChannelConfController {
@ChannelIdInit
@PostMapping("/info")
public Result channelInfo(Long channelId, Integer pageNumber, Integer pageSize) {
if (pageNumber == null || pageSize == null) {
return Result.buildFial("page信息不对");
}
return Result.buildSuccess(channelConfService.getChannelInfo(pageNumber, pageSize, channelId));
}
......
......@@ -43,6 +43,9 @@ public class OrderController {
@CheckChannelRole
@GetMapping("/list")
public Result getOrders(Long channelId, String channelOrderNumber, Integer pageNumber, Integer pageSize) {
if (pageNumber == null || pageSize == null) {
return Result.buildFial("page信息不对");
}
return Result.buildSuccess(orderService.getOrders(channelId, channelOrderNumber, pageNumber, pageSize));
}
......
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