From 762977849a6ec7c6962cffa1fbbc837bd0e6da83 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 01 三月 2024 14:53:22 +0800
Subject: [PATCH] 整理

---
 server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java |    1 -
 server/dmvisit_service/src/main/java/com/doumee/core/erp/ErpTool.java     |    3 +--
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/server/dmvisit_service/src/main/java/com/doumee/core/erp/ErpTool.java b/server/dmvisit_service/src/main/java/com/doumee/core/erp/ErpTool.java
index 9ccafcb..a19a5e9 100644
--- a/server/dmvisit_service/src/main/java/com/doumee/core/erp/ErpTool.java
+++ b/server/dmvisit_service/src/main/java/com/doumee/core/erp/ErpTool.java
@@ -107,7 +107,6 @@
             int pageSize  = 100;
             boolean hasLast = true;
             while (hasLast){
-                hasLast = false;
                 PageWrap<UserListRequest> pageWrap  = new PageWrap<>();
                 pageWrap.setModel(param);
                 pageWrap.setPage(page);
@@ -122,8 +121,8 @@
                         if(pageSize*page < response.getData().getTotal() ){
                             hasLast =false;//杩樻湁涓嬩竴椤�
                         }
-                        page++;
                     }
+                    page++;
                 }
             }
         }catch (Exception e){
diff --git a/server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java b/server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java
index bc5f931..1c8ff4e 100644
--- a/server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java
+++ b/server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java
@@ -35,7 +35,6 @@
     //琚嫓璁夸汉淇℃伅鏍¢獙鏂瑰紡锛�0鎵嬫満鍙峰崟鐙牎楠� 1鎵嬫満鍙峰拰濮撳悕缁勫悎鏍¢獙锛�
     public static final String BEVISITED_USER_VALID = "BEVISITED_USER_VALID";
     public static final String LW_BEVISITED_USER_VALID = "LW_BEVISITED_USER_VALID";
-
     public static final String SELECT_DOORS_VISIT_REQUIRED = "SELECT_DOORS_VISIT_REQUIRED";
     public static final String SELECT_DOORS_LW_REQUIRED = "SELECT_DOORS_LW_REQUIRED";
     public static final String PROBLEM_LW_REQUIRED = "PROBLEM_LW_REQUIRED";

--
Gitblit v1.9.3