From c9c0eb5e9c0c08d79061fe6196bd8700276fe3e6 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Tue, 14 Jan 2025 16:43:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../udidl/admin/service/chsapi/ChsYbDrugService.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/glxp/udidl/admin/service/chsapi/ChsYbDrugService.java b/src/main/java/com/glxp/udidl/admin/service/chsapi/ChsYbDrugService.java index 104cd08..4952efb 100644 --- a/src/main/java/com/glxp/udidl/admin/service/chsapi/ChsYbDrugService.java +++ b/src/main/java/com/glxp/udidl/admin/service/chsapi/ChsYbDrugService.java @@ -26,16 +26,16 @@ public class ChsYbDrugService extends ServiceImpl { Integer pageNum = 1; Integer pageSize = 200; - //1、获取数据 - YbDrugResponse ybDrugResponse = ybChsHttpClient.getYbDrugList(pageNum, pageSize,null); - Integer total = ybDrugResponse.getTotal(); - //处理第一批数据 - processUpdates(ybDrugResponse); try { Thread.sleep(15000); } catch (InterruptedException e) { e.printStackTrace(); } + //1、获取数据 + YbDrugResponse ybDrugResponse = ybChsHttpClient.getYbDrugList(pageNum, pageSize,null); + Integer total = ybDrugResponse.getTotal(); + //处理第一批数据 + processUpdates(ybDrugResponse); //处理后续数据 if (total>pageNum){ for (int i = 2; i <= total ; i++) {