From 2bc10d832acd06bc6511e50405202fde99b0e7c2 Mon Sep 17 00:00:00 2001 From: zhangc <zc@123> Date: 星期六, 18 一月 2025 10:20:25 +0800 Subject: [PATCH] java 优化库位检索逻辑,添加AGV工作明细服务,修复定时任务 --- src/main/java/com/zy/asrs/service/impl/AgvWrkMastServiceImp.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/AgvWrkMastServiceImp.java b/src/main/java/com/zy/asrs/service/impl/AgvWrkMastServiceImp.java index 230cf7c..af24386 100644 --- a/src/main/java/com/zy/asrs/service/impl/AgvWrkMastServiceImp.java +++ b/src/main/java/com/zy/asrs/service/impl/AgvWrkMastServiceImp.java @@ -29,6 +29,9 @@ @Slf4j public class AgvWrkMastServiceImp extends ServiceImpl<AgvWrkMastMapper, AgvWrkMast> implements AgvWrkMastService { + @Value("${agv.flag}") + private boolean flag; + @Value("${agv.url}") private String url; @@ -271,6 +274,9 @@ } private int doHttpRequest(Object requestParam, String namespace, String url, String path, String appkey, String ip) { + if (!flag) { + return 1; + } String response = ""; boolean success = false; int code = 0; -- Gitblit v1.9.1