From 34e1dd894d2eb810171776f5cf7166229660ccdf Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期一, 30 六月 2025 09:41:57 +0800 Subject: [PATCH] 1 --- src/main/java/com/zy/asrs/task/handler/AutoMoveTwoAndThreeGoOneHandler.java | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/handler/AutoMoveTwoAndThreeGoOneHandler.java b/src/main/java/com/zy/asrs/task/handler/AutoMoveTwoAndThreeGoOneHandler.java index bb9bbca..d295832 100644 --- a/src/main/java/com/zy/asrs/task/handler/AutoMoveTwoAndThreeGoOneHandler.java +++ b/src/main/java/com/zy/asrs/task/handler/AutoMoveTwoAndThreeGoOneHandler.java @@ -2,6 +2,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; +import com.core.common.Cools; import com.core.exception.CoolException; import com.zy.asrs.entity.WrkMastExecute; import com.zy.asrs.entity.param.AgvTaskCreateParam; @@ -21,6 +22,7 @@ import java.util.Arrays; import java.util.Date; import java.util.List; +import java.util.concurrent.TimeUnit; @Slf4j @Service @@ -123,6 +125,7 @@ response = new HttpHandler.Builder() .setUri(url) .setPath(path) + .setTimeout(30, TimeUnit.SECONDS) .setJson(JSONObject.toJSONString(requestParam)) .build() .doPost(); @@ -130,13 +133,16 @@ int code = Integer.parseInt(jsonObject.get("code").toString()); if(code != 0){ + //TODO 寮犺秴 throw new CoolException("璋冪敤AGV鍝嶅簲閿欒"); + //return code; } success = true; return code; }catch (Exception e){ log.error(e.getMessage()); - throw new CoolException("璋冪敤AGV鍝嶅簲閿欒"); + //throw new CoolException("璋冪敤AGV鍝嶅簲閿欒"); + return 1; }finally { apiLogService.save( namespace, -- Gitblit v1.9.1