Commit ac9e1ecc by hzc

添加了分页pageNo和pageSize的初始值

parent a3b1e0bd
......@@ -41,14 +41,15 @@ public class LoggingEventCtrl {
@ApiOperation(value = "分页查询访问信息",notes = "分页查询访问信息")
@PostMapping("/findVisitMsg")
public Page<LoggingEvent> findVisitMsg(@RequestBody LogQuery logQuery){
Integer pageNo = logQuery.getPageNo();
Integer pageSize = logQuery.getPageSize();
if(pageNo==null){
pageNo=1;
logQuery.setPageNo(pageNo);
}
if(pageSize==null){
pageSize=10;
logQuery.setPageSize(pageSize);
}
List<LoggingEvent> list = new ArrayList<>();
long total = loggingEventService.findCountByLogQuery(logQuery);
......
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