Pārlūkot izejas kodu

同步中控用户数据

he.dujuan 3 gadi atpakaļ
vecāks
revīzija
bfd397b369

+ 3 - 6
eladmin-system/src/main/java/me/zhengjie/modules/quartz/task/ZkDataSyncTask.java

@@ -168,9 +168,6 @@ public class ZkDataSyncTask {
         }
     }
 
-    /**
-     * 人员数据同步
-     */
     /**
      * 人员数据同步
      */
@@ -190,7 +187,7 @@ public class ZkDataSyncTask {
 
         //计算总页数
         int total = getDatas(api,createTme,0,1,1).getJSONObject("data").getInteger("totalElements");
-        int pageSize = 100;
+        int pageSize = 10;
         int pageTotal = (total / pageSize);
         if (total % pageSize != 0) {
             pageTotal++;
@@ -280,8 +277,8 @@ public class ZkDataSyncTask {
         String api = "/api/thirdparty/v1/user/getZkSysUsers";
 
         //计算总页数
-        int total = getDatas(api,null,0,100,2).getJSONObject("data").getInteger("totalElements");
-        int pageSize = 100;
+        int total = getDatas(api,null,0,10,2).getJSONObject("data").getInteger("totalElements");
+        int pageSize = 10;
         int pageTotal = (total / pageSize);
         if (total % pageSize != 0) {
             pageTotal++;