From d86b90b6849c754b7c7a2eabd925773fc461ca32 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 2 Apr 2023 00:21:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E7=BB=A7=E6=9C=8D=E5=8A=A1=E6=8B=89?= =?UTF-8?q?=E5=8F=96=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sale/admin/idc/service/impl/IdcServiceImpl.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/api-admin/src/main/java/com/glxp/sale/admin/idc/service/impl/IdcServiceImpl.java b/api-admin/src/main/java/com/glxp/sale/admin/idc/service/impl/IdcServiceImpl.java index c281062..96f7103 100644 --- a/api-admin/src/main/java/com/glxp/sale/admin/idc/service/impl/IdcServiceImpl.java +++ b/api-admin/src/main/java/com/glxp/sale/admin/idc/service/impl/IdcServiceImpl.java @@ -246,10 +246,18 @@ public class IdcServiceImpl implements IdcService { String result = ""; MultipartFile[] files = {}; try { + boolean success=true; Response response = client.newCall(request).execute(); result = response.body().toString(); JSONObject json = JSONObject.parseObject(result); - analyToDB(json,files); + if(isLastLevel()) { + success = analyToDB(json,files); + } else { + syncAddTaskStatus(json,false); + } + String host = getNextHost(); + if(success) + post(host+"/spssync/common/success",params); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace();