From d10119bef47eae0704cfe9e9980076ab10db13f9 Mon Sep 17 00:00:00 2001
From: gengby <858962040@qq.com>
Date: Fri, 15 Mar 2024 16:00:09 +0800
Subject: [PATCH] =?UTF-8?q?rev:=E6=96=B0=E5=A2=9E=E9=9C=80=E6=B1=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
acs/nladmin-system/package-lock.json | 3 +++
.../server/impl/XianGongAgvServiceImpl.java | 3 ++-
.../amb/service/impl/HFHandServiceImpl.java | 19 +++++++++++++++
.../java/org/nl/hand/amb/wql/QJN_QUERY001.wql | 2 +-
.../main/resources/config/application-dev.yml | 8 +++----
.../acs/device/driver/nl4/nl4_station.vue | 24 ++++++++++++++++++-
.../device/driver/standard_ordinary_site.vue | 22 ++++++++++++++++-
7 files changed, 73 insertions(+), 8 deletions(-)
create mode 100644 acs/nladmin-system/package-lock.json
diff --git a/acs/nladmin-system/package-lock.json b/acs/nladmin-system/package-lock.json
new file mode 100644
index 0000000..48e341a
--- /dev/null
+++ b/acs/nladmin-system/package-lock.json
@@ -0,0 +1,3 @@
+{
+ "lockfileVersion": 1
+}
diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/agv/server/impl/XianGongAgvServiceImpl.java b/acs/nladmin-system/src/main/java/org/nl/acs/agv/server/impl/XianGongAgvServiceImpl.java
index d53c3cc..82600b1 100644
--- a/acs/nladmin-system/src/main/java/org/nl/acs/agv/server/impl/XianGongAgvServiceImpl.java
+++ b/acs/nladmin-system/src/main/java/org/nl/acs/agv/server/impl/XianGongAgvServiceImpl.java
@@ -219,7 +219,8 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
return result;
} catch (Exception e) {
log.error("取消AGV指令信息错误:{}", e.getMessage());
- throw new BadRequestException(e.getMessage());
+ //throw new BadRequestException(e.getMessage());
+ return null;
}
} else {
return null;
diff --git a/acs/nladmin-system/src/main/java/org/nl/hand/amb/service/impl/HFHandServiceImpl.java b/acs/nladmin-system/src/main/java/org/nl/hand/amb/service/impl/HFHandServiceImpl.java
index 7b8b1a8..de40b05 100644
--- a/acs/nladmin-system/src/main/java/org/nl/hand/amb/service/impl/HFHandServiceImpl.java
+++ b/acs/nladmin-system/src/main/java/org/nl/hand/amb/service/impl/HFHandServiceImpl.java
@@ -46,6 +46,8 @@ import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.Map;
+import java.util.Objects;
+import java.util.Optional;
/**
@@ -233,6 +235,23 @@ public class HFHandServiceImpl implements HFHandService {
return resultJson;
}
+ String only_next_device_code = Optional.ofNullable(startDevice.getExtraValue().get("next_device_code"))
+ .map(Objects::toString).orElse(null);
+ if (only_next_device_code == null || only_next_device_code.length() <= 2) {
+ resultJson.put("code", "0");
+ resultJson.put("desc", "起点'" + start_devicecode + "',驱动未配置定点任务中的下一点位!");
+ resultJson.put("result", "");
+ return resultJson;
+ }
+
+ JSONArray array = JSONArray.parseArray(only_next_device_code);
+ if (!array.contains(next_devicecode)) {
+ resultJson.put("code", "0");
+ resultJson.put("desc", "起点'" + start_devicecode + "',驱动配置的定点任务中的下一点位中的点位信息不包含该终点!");
+ resultJson.put("result", "");
+ return resultJson;
+ }
+
//判断起点有货,终点为空
if (0 == startDevice.getHas_goods() || "1".equals(startDevice.getIslock())) {
resultJson.put("code", "0");
diff --git a/acs/nladmin-system/src/main/java/org/nl/hand/amb/wql/QJN_QUERY001.wql b/acs/nladmin-system/src/main/java/org/nl/hand/amb/wql/QJN_QUERY001.wql
index d4024c3..7cf63d0 100644
--- a/acs/nladmin-system/src/main/java/org/nl/hand/amb/wql/QJN_QUERY001.wql
+++ b/acs/nladmin-system/src/main/java/org/nl/hand/amb/wql/QJN_QUERY001.wql
@@ -54,7 +54,7 @@
WHERE
`name` = 'region'
OPTION 输入.region_code <> ""
- value in ('2','3')
+ value in ('2','3','5','7','8','11')
ENDOPTION
ENDSELECT
ENDQUERY
diff --git a/acs/nladmin-system/src/main/resources/config/application-dev.yml b/acs/nladmin-system/src/main/resources/config/application-dev.yml
index c564262..8bf3b93 100644
--- a/acs/nladmin-system/src/main/resources/config/application-dev.yml
+++ b/acs/nladmin-system/src/main/resources/config/application-dev.yml
@@ -8,7 +8,7 @@ spring:
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:nl4_acs}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true
username: ${DB_USER:root}
- password: ${DB_PWD:123456}
+ password: ${DB_PWD:password}
# 初始连接数
initial-size: 5
# 最小连接数
@@ -126,11 +126,11 @@ file:
avatarMaxSize: 5
logging:
file:
- path: C:\log\ACS
+ path: /Users/onepiece/myFile/acs_logs
config: classpath:logback-spring.xml
lucene:
index:
- path: D:\lucene\index
+ path: /Users/onepiece/myFile/lucene/index
# Sa-Token配置
sa-token:
@@ -153,5 +153,5 @@ sa-token:
token-prefix: Bearer
loki:
- url: http://localhost:3100/loki/api/v1
+ url: http://10.211.55.3:3100/loki/api/v1
systemName: acs
diff --git a/acs/nladmin-ui/src/views/acs/device/driver/nl4/nl4_station.vue b/acs/nladmin-ui/src/views/acs/device/driver/nl4/nl4_station.vue
index 5c32c18..5863933 100644
--- a/acs/nladmin-ui/src/views/acs/device/driver/nl4/nl4_station.vue
+++ b/acs/nladmin-ui/src/views/acs/device/driver/nl4/nl4_station.vue
@@ -211,6 +211,27 @@
+
+
+
+
+
+
+
+
+
@@ -450,7 +471,8 @@ export default {
gantry_device_code2: [],
gantry_device_code3: [],
channel_steel_device_code1: [],
- channel_steel_device_code2: []
+ channel_steel_device_code2: [],
+ next_device_code: []
},
rules: {}
}
diff --git a/acs/nladmin-ui/src/views/acs/device/driver/standard_ordinary_site.vue b/acs/nladmin-ui/src/views/acs/device/driver/standard_ordinary_site.vue
index 1dfd00e..d1fa041 100644
--- a/acs/nladmin-ui/src/views/acs/device/driver/standard_ordinary_site.vue
+++ b/acs/nladmin-ui/src/views/acs/device/driver/standard_ordinary_site.vue
@@ -92,6 +92,25 @@
+
+
+
+
+
+
+
@@ -168,7 +187,8 @@ export default {
is_release: true,
station_manager: true,
auto_clean_task: true,
- input_material: true
+ input_material: true,
+ next_device_code: []
},
rules: {}
}