package com.huixinpn.dionysus.controller.util;

import lombok.Data;
import org.springframework.data.domain.PageRequest;

@Data
public class PagingHelper {
  private static Integer defaultPageSize = 20;

  public static PageRequest getPageRequest(Integer page, Integer size) {
    int pageNumber = (page == null ? 0 : page);
    int pageSize = (size == null ? defaultPageSize : size);
    defaultPageSize = pageSize;
    return new PageRequest(pageNumber, pageSize);
  }
}

@@ -381,40 +381,8 @@
 e);%0A
-    defaultPageSize = pageSize;%0A
     

fix bug of PagingHelper