Explorar o código

fix dependency

deason %!s(int64=2) %!d(string=hai) anos
pai
achega
a6978550fc

+ 2 - 1
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/controller/OrgController.java

@@ -42,6 +42,7 @@ import cn.com.qmth.examcloud.web.config.SystemProperties;
 import cn.com.qmth.examcloud.web.filestorage.FileStoragePathEnvInfo;
 import cn.com.qmth.examcloud.web.filestorage.YunPathInfo;
 import cn.com.qmth.examcloud.web.helpers.GlobalHelper;
+import cn.com.qmth.examcloud.web.jpa.PageUtils;
 import cn.com.qmth.examcloud.web.redis.RedisClient;
 import cn.com.qmth.examcloud.web.security.DataRule;
 import cn.com.qmth.examcloud.web.support.ApiId;
@@ -395,7 +396,7 @@ public class OrgController extends ControllerSupport {
 
         UserDataRule userDataRule = super.getUserDataRule(DataRuleType.ORG);
         if (userDataRule.assertEmptyQueryResult()) {
-            return new PageInfo(new PageImpl<>(new ArrayList<>(), pageable, 0L));
+            return PageUtils.toPageInfo(new PageImpl<>(new ArrayList<>(), pageable, 0L));
         }
 
         Specification<OrgEntity> specification = (root, query, cb) -> {

+ 2 - 1
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/controller/StudentController.java

@@ -34,6 +34,7 @@ import cn.com.qmth.examcloud.support.helper.IdentityNumberHelper;
 import cn.com.qmth.examcloud.task.api.DataSyncCloudService;
 import cn.com.qmth.examcloud.web.config.SystemProperties;
 import cn.com.qmth.examcloud.web.helpers.GlobalHelper;
+import cn.com.qmth.examcloud.web.jpa.PageUtils;
 import cn.com.qmth.examcloud.web.security.DataRule;
 import cn.com.qmth.examcloud.web.support.ControllerSupport;
 import com.google.common.collect.Lists;
@@ -135,7 +136,7 @@ public class StudentController extends ControllerSupport {
 
         UserDataRule userDataRule = super.getUserDataRule(DataRuleType.ORG);
         if (userDataRule.assertEmptyQueryResult()) {
-            return new PageInfo(new PageImpl<>(new ArrayList<>(), pageable, 0L));
+            return PageUtils.toPageInfo(new PageImpl<>(new ArrayList<>(), pageable, 0L));
         }
 
         Specification<StudentEntity> specification = (root, query, cb) -> {