diff --git a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/agv/AgvWaitUtil.java b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/agv/AgvWaitUtil.java
index b2035a536..0207bb0cd 100644
--- a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/agv/AgvWaitUtil.java
+++ b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/agv/AgvWaitUtil.java
@@ -49,36 +49,38 @@ public class AgvWaitUtil {
ManipulatorAgvStationDeviceDriver manipulatorAgvStationDeviceDriver;
BoxSubvolumesConveyorDeviceDriver boxSubvolumesConveyorDeviceDriver;
//agv诺宝对接位安全信号交互
- if(startDevice.getDeviceDriver() instanceof ManipulatorAgvStationDeviceDriver){
+ if (startDevice.getDeviceDriver() instanceof ManipulatorAgvStationDeviceDriver) {
manipulatorAgvStationDeviceDriver = (ManipulatorAgvStationDeviceDriver) startDevice.getDeviceDriver();
- manipulatorAgvStationDeviceDriver.writing(2);
- if(manipulatorAgvStationDeviceDriver.getAction() == 1){
- LuceneLogDto logDto1 = LuceneLogDto.builder()
- .device_code(inst.getCarno())
- .content("诺宝agv允许取货"+"点位"+startDeviceCode)
- .build();
- logDto1.setLog_level(4);
- luceneExecuteLogService.deviceExecuteLog(logDto1);
- JSONObject map = new JSONObject();
- map.put("status", 200);
- map.put("message", "允许取货!");
- log.info("允许仙工AGV取货,设备号 - {}", startDeviceCode);
- return map;
- }else {
- LuceneLogDto logDto = LuceneLogDto.builder()
- .device_code(inst.getCarno())
- .content("agv诺宝对接位行架不允许取货:" + inst.getCarno()+ "点位号"+ manipulatorAgvStationDeviceDriver.getDevice_code())
- .build();
- logDto.setLog_level(4);
- luceneExecuteLogService.deviceExecuteLog(logDto);
- throw new BadRequestException("行架不允许取货");
+ if (manipulatorAgvStationDeviceDriver.getTo_command() != 2) {
+ manipulatorAgvStationDeviceDriver.writing(2);
+ if (manipulatorAgvStationDeviceDriver.getAction() == 1) {
+ LuceneLogDto logDto1 = LuceneLogDto.builder()
+ .device_code(inst.getCarno())
+ .content("诺宝agv允许取货" + "点位" + startDeviceCode)
+ .build();
+ logDto1.setLog_level(4);
+ luceneExecuteLogService.deviceExecuteLog(logDto1);
+ JSONObject map = new JSONObject();
+ map.put("status", 200);
+ map.put("message", "允许取货!");
+ log.info("允许仙工AGV取货,设备号 - {}", startDeviceCode);
+ return map;
+ } else {
+ LuceneLogDto logDto = LuceneLogDto.builder()
+ .device_code(inst.getCarno())
+ .content("agv诺宝对接位行架不允许取货:" + inst.getCarno() + "点位号" + manipulatorAgvStationDeviceDriver.getDevice_code())
+ .build();
+ logDto.setLog_level(4);
+ luceneExecuteLogService.deviceExecuteLog(logDto);
+ throw new BadRequestException("行架不允许取货");
+ }
}
}
//agv叉车对接位安全信号交互
- if(startDevice.getDeviceDriver() instanceof BoxSubvolumesConveyorDeviceDriver){
+ if (startDevice.getDeviceDriver() instanceof BoxSubvolumesConveyorDeviceDriver) {
boxSubvolumesConveyorDeviceDriver = (BoxSubvolumesConveyorDeviceDriver) startDevice.getDeviceDriver();
- if(boxSubvolumesConveyorDeviceDriver.getMode() == 2){
+ if (boxSubvolumesConveyorDeviceDriver.getMode() == 2) {
LuceneLogDto logDto1 = LuceneLogDto.builder()
.device_code(inst.getCarno())
.content("叉车允许取货")
@@ -90,10 +92,10 @@ public class AgvWaitUtil {
map.put("message", "允许取货!");
log.info("允许仙工AGV取货,设备号 - {}", startDeviceCode);
return map;
- }else {
+ } else {
LuceneLogDto logDto1 = LuceneLogDto.builder()
.device_code(inst.getCarno())
- .content("agv叉车对接位输送线不允许取货:" + inst.getCarno()+ "点位号"+ boxSubvolumesConveyorDeviceDriver.getDevice_code())
+ .content("agv叉车对接位输送线不允许取货:" + inst.getCarno() + "点位号" + boxSubvolumesConveyorDeviceDriver.getDevice_code())
.build();
logDto1.setLog_level(4);
luceneExecuteLogService.deviceExecuteLog(logDto1);
@@ -115,19 +117,23 @@ public class AgvWaitUtil {
//如果是叉车,取货完成给输送线完成信号
Device startDevice = deviceAppService.findDeviceByCode(startDeviceCode);
ManipulatorAgvStationDeviceDriver manipulatorAgvStationDeviceDriver;
- if (inst.getAgv_system_type().equals(AgvSystemTypeEnum.XG_System_Type.getIndex())){
- if(startDevice.getDeviceDriver() instanceof BoxSubvolumesConveyorDeviceDriver) {
+ if (inst.getAgv_system_type().equals(AgvSystemTypeEnum.XG_System_Type.getIndex())) {
+ if (startDevice.getDeviceDriver() instanceof BoxSubvolumesConveyorDeviceDriver) {
BoxSubvolumesConveyorDeviceDriver boxSubvolumesConveyorDeviceDriver;
boxSubvolumesConveyorDeviceDriver = (BoxSubvolumesConveyorDeviceDriver) startDevice.getDeviceDriver();
- boxSubvolumesConveyorDeviceDriver.writing(3);
+ if (boxSubvolumesConveyorDeviceDriver.getTo_command() != 3) {
+ boxSubvolumesConveyorDeviceDriver.writing(3);
+ }
}
}
//诺宝agv调lms更新点位
- if(inst.getAgv_system_type().equals(AgvSystemTypeEnum.One_NDC_System_Type.getIndex())){
+ if (inst.getAgv_system_type().equals(AgvSystemTypeEnum.One_NDC_System_Type.getIndex())) {
applyLmsGetOut(inst);
- if(startDevice.getDeviceDriver() instanceof ManipulatorAgvStationDeviceDriver) {
+ if (startDevice.getDeviceDriver() instanceof ManipulatorAgvStationDeviceDriver) {
manipulatorAgvStationDeviceDriver = (ManipulatorAgvStationDeviceDriver) startDevice.getDeviceDriver();
- manipulatorAgvStationDeviceDriver.writing(3);
+ if (manipulatorAgvStationDeviceDriver.getTo_command() != 3) {
+ manipulatorAgvStationDeviceDriver.writing(3);
+ }
}
}
@@ -145,7 +151,7 @@ public class AgvWaitUtil {
param.put("actionType", ActionTypeEnum.IN_FINISHING.getCode().toString());
LuceneLogDto logDto = LuceneLogDto.builder()
.device_code(inst.getCarno())
- .content("诺宝取货完成:" + inst.getTask_code() + "--" + ActionTypeEnum.IN_FINISHING.getCode().toString())
+ .content("诺宝取货完成请求lms:" + inst.getTask_code() + "--" + ActionTypeEnum.IN_FINISHING.getCode().toString())
.build();
logDto.setLog_level(4);
luceneExecuteLogService.deviceExecuteLog(logDto);
@@ -154,7 +160,7 @@ public class AgvWaitUtil {
if (jo.getInteger("status") == 200) {
LuceneLogDto logDto2 = LuceneLogDto.builder()
.device_code(inst.getCarno())
- .content("追加动诺宝作块,参数,接口返回:" + jo)
+ .content("诺宝取货完成请求lms,参数,接口返回:" + jo)
.build();
logDto2.setLog_level(4);
luceneExecuteLogService.deviceExecuteLog(logDto2);
@@ -177,23 +183,25 @@ public class AgvWaitUtil {
log.info("仙工AGV请求放货,设备号 - {}", endDeviceCode);
Device endDevice = deviceAppService.findDeviceByCode(endDeviceCode);
ManipulatorAgvStationDeviceDriver manipulatorAgvStationDeviceDriver;
- if(endDevice.getDeviceDriver() instanceof ManipulatorAgvStationDeviceDriver){
+ if (endDevice.getDeviceDriver() instanceof ManipulatorAgvStationDeviceDriver) {
manipulatorAgvStationDeviceDriver = (ManipulatorAgvStationDeviceDriver) endDevice.getDeviceDriver();
- manipulatorAgvStationDeviceDriver.writing(4);
- if(manipulatorAgvStationDeviceDriver.getAction() != 1){
- LuceneLogDto logDto = LuceneLogDto.builder()
- .device_code(inst.getCarno())
- .content("agv诺宝对接位行架不允许放货:" + inst.getCarno()+ "点位号"+ manipulatorAgvStationDeviceDriver.getDevice_code())
- .build();
- logDto.setLog_level(4);
- luceneExecuteLogService.deviceExecuteLog(logDto);
- log.info("不允许仙工AGV取货,对接位有报警,设备号 - {}", endDevice);
- throw new BadRequestException("上位系统不允许取货");
+ if (manipulatorAgvStationDeviceDriver.getTo_command() != 4) {
+ manipulatorAgvStationDeviceDriver.writing(4);
+ if (manipulatorAgvStationDeviceDriver.getAction() != 1) {
+ LuceneLogDto logDto = LuceneLogDto.builder()
+ .device_code(inst.getCarno())
+ .content("agv诺宝对接位行架不允许放货:" + inst.getCarno() + "点位号" + manipulatorAgvStationDeviceDriver.getDevice_code())
+ .build();
+ logDto.setLog_level(4);
+ luceneExecuteLogService.deviceExecuteLog(logDto);
+ log.info("不允许仙工AGV取货,对接位有报警,设备号 - {}", endDevice);
+ throw new BadRequestException("上位系统不允许取货");
+ }
}
}
LuceneLogDto logDto = LuceneLogDto.builder()
.device_code(inst.getCarno())
- .content("允许放货"+ "点位" + endDeviceCode)
+ .content("允许放货" + "点位" + endDeviceCode)
.build();
logDto.setLog_level(4);
luceneExecuteLogService.deviceExecuteLog(logDto);
@@ -207,12 +215,14 @@ public class AgvWaitUtil {
//放货完成等待
public JSONObject waitOutPut(String endDeviceCode, Instruction inst) {
- Device nextDevice = deviceAppService.findDeviceByCode(inst.getNext_device_code());
+ Device nextDevice = deviceAppService.findDeviceByCode(endDeviceCode);
ManipulatorAgvStationDeviceDriver manipulatorAgvStationDeviceDriver;
- if(inst.getAgv_system_type().equals(AgvSystemTypeEnum.One_NDC_System_Type.getIndex())){
- if(nextDevice.getDeviceDriver() instanceof ManipulatorAgvStationDeviceDriver) {
+ if (inst.getAgv_system_type().equals(AgvSystemTypeEnum.One_NDC_System_Type.getIndex())) {
+ if (nextDevice.getDeviceDriver() instanceof ManipulatorAgvStationDeviceDriver) {
manipulatorAgvStationDeviceDriver = (ManipulatorAgvStationDeviceDriver) nextDevice.getDeviceDriver();
- manipulatorAgvStationDeviceDriver.writing(5);
+ if (manipulatorAgvStationDeviceDriver.getTo_command() != 5) {
+ manipulatorAgvStationDeviceDriver.writing(5);
+ }
}
}
diff --git a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/agv/server/impl/XianGongAgvServiceImpl.java b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/agv/server/impl/XianGongAgvServiceImpl.java
index 6f23d43ca..9b5c3533d 100644
--- a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/agv/server/impl/XianGongAgvServiceImpl.java
+++ b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/agv/server/impl/XianGongAgvServiceImpl.java
@@ -62,7 +62,7 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
@Autowired
private LuceneExecuteLogService luceneExecuteLogService;
@Autowired
- private DeviceAppService deviceAppservice;
+ private DeviceAppService deviceAppservice;
@Autowired
@@ -379,7 +379,8 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
jo1.put("blockId", IdUtil.simpleUUID());
jo1.put("location", pointCode);
jo1.put("operation", "JackLoad");
- inspectInStocckSet(ja, pointCode, jo1);
+ inspectInStocckSet(pointCode, jo1);
+ ja.add(jo1);
JSONObject jo2 = new JSONObject();
jo2.put("blockId", IdUtil.simpleUUID());
jo2.put("location", pointCode + "OUTGET");
@@ -400,22 +401,24 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
}
}
- private void inspectInStocckSet(JSONArray ja, String pointCode, JSONObject jo1) {
+ private void inspectInStocckSet( String pointCode, JSONObject jo1) {
Device device = deviceAppservice.findDeviceByCode(pointCode);
StandardOrdinarySiteDeviceDriver standardOrdinarySiteDeviceDriver;
if (device.getDeviceDriver() instanceof StandardOrdinarySiteDeviceDriver) {
- String inspectInStocck = (String)device.getExtraValue().get("inspect_in_stocck");
- if (StrUtil.isNotEmpty( inspectInStocck) && inspectInStocck.equals("true")){
+ String inspectInStocck = (String) device.getExtraValue().get("inspect_in_stocck");
+ if (StrUtil.isNotEmpty(inspectInStocck) && inspectInStocck.equals("true")) {
jo1.put("operationArgs", new JSONObject() {{
- put("recognize",false);
+ put("recognize", false);
}});
- ja.add(jo1);
- }else {
+ } else {
jo1.put("operationArgs", new JSONObject() {{
put("recognize", true);
}});
- ja.add(jo1);
}
+ } else {
+ jo1.put("operationArgs", new JSONObject() {{
+ put("recognize", true);
+ }});
}
}
@@ -752,26 +755,25 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
}
//一楼诺宝agv
if (instructionDto.getAgv_system_type().equals(AgvSystemTypeEnum.One_NDC_System_Type.getIndex())) {
- if (address.contains("GET") || address.contains("WAIT")) {
- //如果是取货二次分配,取放货二次分配需要重新追加动作块
- if (AgvActionTypeEnum.IN_STOCK.getCode().equals(instructionDto.getAgv_action_type()) || AgvActionTypeEnum.IN_OUT_STOCK.getCode().equals(instructionDto.getAgv_action_type())) {
- Integer actionType = ActionTypeEnum.IN_STOCK.getCode();
- String newPointCode = applyXGAgvTask(task_code, actionType, instructionDto);
- return agvWaitUtil.waitInGet(newPointCode, instructionDto);
- }
- return agvWaitUtil.waitInGet(deviceCodeNow, instructionDto);
- } else if (address.contains("PUT") || address.contains("WAIT")) {
- //如果是放货二次分配,取放货二次分配需要重新追加动作块
- if (AgvActionTypeEnum.OUT_STOCK.getCode().equals(instructionDto.getAgv_action_type()) || AgvActionTypeEnum.IN_OUT_STOCK.getCode().equals(instructionDto.getAgv_action_type())) {
- Integer actionType = ActionTypeEnum.OUT_STOCK.getCode();
-// deviceCodeNow = applyXGAgvTask(task_code, actionType, instructionDto);
- deviceCodeNow = "ZXQ_05";
- sendAddSequencesToNBAgv(instructionDto.getInstruction_code(), deviceCodeNow, instructionDto);
- return agvWaitUtil.waitInPut(deviceCodeNow, instructionDto);
- }
+ if (address.contains("GET")) {
+ return agvWaitUtil.waitInGet(deviceCodeNow, instructionDto);
+ } else if (address.contains("PUT")) {
return agvWaitUtil.waitInPut(deviceCodeNow, instructionDto);
}
+ //如果是取货二次分配,取放货二次分配需要重新追加动作块
+ if (AgvActionTypeEnum.IN_STOCK.getCode().equals(instructionDto.getAgv_action_type()) || AgvActionTypeEnum.IN_OUT_STOCK.getCode().equals(instructionDto.getAgv_action_type())) {
+ Integer actionType = ActionTypeEnum.IN_STOCK.getCode();
+ String newPointCode = applyXGAgvTask(task_code, actionType, instructionDto);
+ return agvWaitUtil.waitInGet(newPointCode, instructionDto);
+ }
+ //如果是放货二次分配,取放货二次分配需要重新追加动作块
+ if (AgvActionTypeEnum.OUT_STOCK.getCode().equals(instructionDto.getAgv_action_type()) || AgvActionTypeEnum.IN_OUT_STOCK.getCode().equals(instructionDto.getAgv_action_type())) {
+ Integer actionType = ActionTypeEnum.OUT_STOCK.getCode();
+ String newPointCode = applyXGAgvTask(task_code, actionType, instructionDto);
+// sendAddSequencesToNBAgv(instructionDto.getInstruction_code(), deviceCodeNow, instructionDto);
+ return agvWaitUtil.waitInPut(newPointCode, instructionDto);
+ }
}
//一楼叉车
if (instructionDto.getAgv_system_type().equals(AgvSystemTypeEnum.XG_System_Type.getIndex())) {
@@ -783,13 +785,13 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
if (address.contains("WAIT")) {
String newPointCode = applyCCAgvTask(task_code, instructionDto);
LuceneLogDto logDto = LuceneLogDto.builder()
- .content("叉车允许放货"+"新点位:"+newPointCode)
+ .content("叉车允许放货" + "新点位:" + newPointCode)
.build();
logDto.setLog_level(4);
luceneExecuteLogService.deviceExecuteLog(logDto);
JSONObject map = new JSONObject();
map.put("status", 200);
- map.put("message", "允许叉车放货!"+"点位"+newPointCode);
+ map.put("message", "允许叉车放货!" + "点位" + newPointCode);
log.info("允许仙工AGV放货,设备号 - {}", newPointCode);
return map;
}
@@ -824,7 +826,7 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
param.put("task_code", task_code);
LuceneLogDto logDto = LuceneLogDto.builder()
.device_code(instructionDto.getCarno())
- .content("追加动叉车作块,参数:" + task_code)
+ .content("叉车二次分配请求lms,参数:" + task_code)
.build();
logDto.setLog_level(4);
luceneExecuteLogService.deviceExecuteLog(logDto);
@@ -833,7 +835,7 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
if (jo.getInteger("status") == 200) {
LuceneLogDto logDto2 = LuceneLogDto.builder()
.device_code(instructionDto.getCarno())
- .content("追加动叉车作块,参数,接口返回:" + jo)
+ .content("叉车二次分配请求lms,参数,接口返回:" + jo)
.build();
logDto2.setLog_level(4);
luceneExecuteLogService.deviceExecuteLog(logDto2);
@@ -844,11 +846,11 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
} else {
LuceneLogDto logDto2 = LuceneLogDto.builder()
.device_code(instructionDto.getCarno())
- .content("追加动叉车作块失败,返回参数:" + jo.getString("body"))
+ .content("叉车二次分配请求lms失败,返回参数:" + jo.getString("message"))
.build();
logDto2.setLog_level(4);
luceneExecuteLogService.deviceExecuteLog(logDto2);
- throw new BadRequestException("追加动叉车作块返回失败");
+ throw new BadRequestException("叉车二次分配请求lms返回失败");
}
} catch (Exception e) {
e.printStackTrace();
@@ -939,7 +941,7 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
param.put("actionType", actionType.toString());
LuceneLogDto logDto = LuceneLogDto.builder()
.device_code(instructionDto.getCarno())
- .content("追加动诺宝作块,参数:" + task_code + "--" + actionType)
+ .content("二次分配请求lms,参数:" + task_code + "--" + actionType)
.build();
logDto.setLog_level(4);
luceneExecuteLogService.deviceExecuteLog(logDto);
@@ -948,7 +950,7 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
if (jo.getInteger("status") == 200) {
LuceneLogDto logDto2 = LuceneLogDto.builder()
.device_code(instructionDto.getCarno())
- .content("追加动诺宝作块,参数,接口返回:" + jo)
+ .content("二次分配请求lms,参数,接口返回:" + jo)
.build();
logDto2.setLog_level(4);
luceneExecuteLogService.deviceExecuteLog(logDto2);
@@ -961,11 +963,11 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
} else {
LuceneLogDto logDto2 = LuceneLogDto.builder()
.device_code(instructionDto.getCarno())
- .content("追加动诺宝作块失败,返回参数:" + jo.getString("body"))
+ .content("二次分配请求lms,返回参数:" + jo.getString("body"))
.build();
logDto2.setLog_level(4);
luceneExecuteLogService.deviceExecuteLog(logDto2);
- throw new BadRequestException("追加动诺宝作块返回失败");
+ throw new BadRequestException("二次分配请求lms返回失败");
}
} catch (Exception e) {
e.printStackTrace();
@@ -1069,7 +1071,7 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
.device_code("追加诺宝运单参数")
.content("指令号:" + instructionCode + ",下发追加诺宝运单反馈参数:" + jo)
.build();
- logDto.setLog_level(4);
+ logDto1.setLog_level(4);
luceneExecuteLogService.deviceExecuteLog(logDto1);
log.info("指令号{},状态{},下发追加诺宝运单序列反馈:{}", instructionCode, result.getStatus(), result.body());
@@ -1078,9 +1080,8 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
private Object createBlocksDataTowEnd(String instructionCode, String point, Instruction instructionDto) {
JSONArray ja = new JSONArray();
- String nextDeviceCode = instructionDto.getNext_device_code();
//终点2
- sendEndDeviceOrder3(ja, nextDeviceCode, instructionCode, instructionDto);
+ sendEndDeviceOrder3(ja, point, instructionCode, instructionDto);
return ja;
}
@@ -1178,7 +1179,8 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
jo1.put("blockId", IdUtil.simpleUUID());
jo1.put("location", startPoint);
jo1.put("operation", "JackLoad");
- inspectInStocckSet(ja, startPoint, jo1);
+ inspectInStocckSet(startPoint, jo1);
+ ja.add(jo1);
JSONObject jo2 = new JSONObject();
jo2.put("blockId", IdUtil.simpleUUID());
jo2.put("location", startPoint + "OUTGET");
diff --git a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/two_conveyor/manipulator_agv_station/ManipulatorAgvStationDeviceDriver.java b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/two_conveyor/manipulator_agv_station/ManipulatorAgvStationDeviceDriver.java
index 9c3770c3d..43c20aee4 100644
--- a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/two_conveyor/manipulator_agv_station/ManipulatorAgvStationDeviceDriver.java
+++ b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/two_conveyor/manipulator_agv_station/ManipulatorAgvStationDeviceDriver.java
@@ -123,9 +123,6 @@ public class ManipulatorAgvStationDeviceDriver extends AbstractOpcDeviceDriver i
if (mode != last_mode) {
this.setRequireSucess(false);
- if (mode == 2) {
- this.writing(0);
- }
}
} catch (Exception var17) {
return;
@@ -265,14 +262,10 @@ public class ManipulatorAgvStationDeviceDriver extends AbstractOpcDeviceDriver i
} else if (this.getMode() == 3) {
mode = LangProcess.msg("universal_operation");
}
- if (this.getAction() == 1) {
+ if (this.getAction() == 0) {
+ action = LangProcess.msg("universal_actionMessage1");
+ } else if (this.getAction() == 1) {
action = LangProcess.msg("universal_delivery");
- } else if (this.getAction() == 2) {
- action = LangProcess.msg("universal_completed");
- } else if (this.getAction() == 3) {
- action = LangProcess.msg("universal_releasing");
- } else if (this.getAction() == 4) {
- action = LangProcess.msg("universal_releasing_completed");
}
jo.put("device_name", this.getDevice().getDevice_name());
jo.put("mode", mode);
diff --git a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/ext/wms/service/impl/AcsToWmsServiceImpl.java b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/ext/wms/service/impl/AcsToWmsServiceImpl.java
index 9dd4ef120..36d3c397f 100644
--- a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/ext/wms/service/impl/AcsToWmsServiceImpl.java
+++ b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/ext/wms/service/impl/AcsToWmsServiceImpl.java
@@ -641,7 +641,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
public String secondaryAllocationPoint(JSONObject param) {
try {
MDC.put(log_file_type, log_type);
- log.info("applyTaskToWms-----输入参数{}", param);
+ log.info("secondaryAllocationPoint-----输入参数{}", param);
String wmsurl = paramService.findByCode(AcsConfig.WMSURL).getValue();
AddressDto addressDto = addressService.findByCode("secondaryAllocationPoint");
String url = wmsurl + addressDto.getMethods_url();
diff --git a/acs2/nladmin-system/nlsso-server/src/main/resources/log/NDCAgvServiceImpl.xml b/acs2/nladmin-system/nlsso-server/src/main/resources/log/NDCAgvServiceImpl.xml
index f13d96f5f..4ad8c2e02 100644
--- a/acs2/nladmin-system/nlsso-server/src/main/resources/log/NDCAgvServiceImpl.xml
+++ b/acs2/nladmin-system/nlsso-server/src/main/resources/log/NDCAgvServiceImpl.xml
@@ -10,7 +10,7 @@
15
- 200MB
+ 50MB
2GB
diff --git a/acs2/nladmin-system/nlsso-server/src/main/resources/log/OneNDCSocketConnectionAutoRun.xml b/acs2/nladmin-system/nlsso-server/src/main/resources/log/OneNDCSocketConnectionAutoRun.xml
index 8f4151a72..4d8d438ff 100644
--- a/acs2/nladmin-system/nlsso-server/src/main/resources/log/OneNDCSocketConnectionAutoRun.xml
+++ b/acs2/nladmin-system/nlsso-server/src/main/resources/log/OneNDCSocketConnectionAutoRun.xml
@@ -10,7 +10,7 @@
15
- 200MB
+ 50MB
2GB
diff --git a/acs2/nladmin-system/nlsso-server/src/main/resources/log/TwoNDCSocketConnectionAutoRun.xml b/acs2/nladmin-system/nlsso-server/src/main/resources/log/TwoNDCSocketConnectionAutoRun.xml
index 63517b12f..6f9b53f82 100644
--- a/acs2/nladmin-system/nlsso-server/src/main/resources/log/TwoNDCSocketConnectionAutoRun.xml
+++ b/acs2/nladmin-system/nlsso-server/src/main/resources/log/TwoNDCSocketConnectionAutoRun.xml
@@ -10,7 +10,7 @@
15
- 200MB
+ 50MB
2GB
diff --git a/acs2/nladmin-system/nlsso-server/src/main/resources/log/XgAgvDeviceDriver.xml b/acs2/nladmin-system/nlsso-server/src/main/resources/log/XgAgvDeviceDriver.xml
index d47c53012..885cf5920 100644
--- a/acs2/nladmin-system/nlsso-server/src/main/resources/log/XgAgvDeviceDriver.xml
+++ b/acs2/nladmin-system/nlsso-server/src/main/resources/log/XgAgvDeviceDriver.xml
@@ -10,7 +10,7 @@
15
- 100MB
+ 50MB
2GB
diff --git a/acs2/nladmin-system/nlsso-server/src/main/resources/log/XianGongAgvServiceImpl.xml b/acs2/nladmin-system/nlsso-server/src/main/resources/log/XianGongAgvServiceImpl.xml
new file mode 100644
index 000000000..02c3cf8f7
--- /dev/null
+++ b/acs2/nladmin-system/nlsso-server/src/main/resources/log/XianGongAgvServiceImpl.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+ ${LOG_HOME}/仙工agv请求/%d{yyyy-MM-dd}.%i.log
+
+ 15
+
+ 50MB
+
+ 2GB
+
+
+
+ %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
+ ${log.charset}
+
+
+
+
+
+
+
+
+
diff --git a/acs2/nladmin-system/nlsso-server/src/main/resources/logback-spring.xml b/acs2/nladmin-system/nlsso-server/src/main/resources/logback-spring.xml
index 158891bd8..a070661e3 100644
--- a/acs2/nladmin-system/nlsso-server/src/main/resources/logback-spring.xml
+++ b/acs2/nladmin-system/nlsso-server/src/main/resources/logback-spring.xml
@@ -23,6 +23,7 @@ https://juejin.cn/post/6844903775631572999
+