rev:新增需求
This commit is contained in:
3
acs/nladmin-system/package-lock.json
generated
Normal file
3
acs/nladmin-system/package-lock.json
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"lockfileVersion": 1
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user