From 5dff0867ec232328033ec0497a014fb32f276612 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 2 Apr 2023 00:22:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=89=E5=8F=96=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/glxp/api/idc/service/impl/IdcServiceImpl.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/glxp/api/idc/service/impl/IdcServiceImpl.java b/src/main/java/com/glxp/api/idc/service/impl/IdcServiceImpl.java index f68aae48..fe3b6a45 100644 --- a/src/main/java/com/glxp/api/idc/service/impl/IdcServiceImpl.java +++ b/src/main/java/com/glxp/api/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();