Parcourir la source

处理返回结果

lvxianyun il y a 3 ans
Parent
commit
b2dc7829e1

+ 2 - 2
src/main/java/com/persagy/proxy/object/service/impl/AdmSpaceServiceImpl.java

@@ -359,8 +359,8 @@ public class AdmSpaceServiceImpl extends AbstractAdmBaseServiceImpl<AdmSpace> im
         }else {
             response.setTotal((long) queryObjects.size());
         }
-        response.setPageNumber(request.getPageNumber());
-        response.setPageSize(request.getPageSize());
+        response.setPageNumber(request.getPageNumber() == null ? 50 : request.getPageNumber());
+        response.setPageSize(request.getPageSize() == null ? 1 : request.getPageSize());
         // 系统需要补充分类名称属性
         ensureSpecialValues(AdmContextUtil.toDmpContext(), admVOs);
         return response;