fix:修复系统参数页面名称不显示问题
This commit is contained in:
@@ -365,6 +365,7 @@ public class TrappedManipulatorManipulatorDeviceDriver extends AbstractOpcDevice
|
||||
logServer.deviceExecuteLog(device_code, "", "", "当前设备:" + device_code + ",下发指令:"
|
||||
+ instructionReady.getInstruction_code() + ",指令起点:" + instructionReady.getStart_device_code()
|
||||
+ ",指令终点:" + instructionReady.getNext_device_code() + ",交互参数:" + interactionJsonDTO.toString() + ",指令执行失败:" + e.getMessage());
|
||||
return false;
|
||||
}
|
||||
this.setRequireSucess(true);
|
||||
return true;
|
||||
|
||||
@@ -556,7 +556,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
||||
InflatableShaftLibraryDeviceDriver inflatableShaftLibraryDeviceDriver;
|
||||
HongXiangStationDeviceDriver hongXiangStationDeviceDriver;
|
||||
LampThreecolorDeviceDriver lampThreecolorDeviceDriver;
|
||||
BeltConveyorDeviceDriver beltConveyorDeviceDriver ;
|
||||
BeltConveyorDeviceDriver beltConveyorDeviceDriver;
|
||||
WasteFoilWeighingStationDriver wasteFoilWeighingStationDriver;
|
||||
FoldDiscSiteDeviceDriver foldDiscSiteDeviceDriver;
|
||||
TrappedManipulatorManipulatorDeviceDriver trappedManipulatorManipulatorDeviceDriver;
|
||||
@@ -569,11 +569,11 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
||||
lampThreecolorDeviceDriver.writing(code, value);
|
||||
}
|
||||
if (device.getDeviceDriver() instanceof BeltConveyorDeviceDriver) {
|
||||
beltConveyorDeviceDriver=(BeltConveyorDeviceDriver) device.getDeviceDriver();
|
||||
beltConveyorDeviceDriver = (BeltConveyorDeviceDriver) device.getDeviceDriver();
|
||||
beltConveyorDeviceDriver.writing(code, value);
|
||||
Device mxddhj1 = deviceAppService.findDeviceByCode("MXDDHJ1");
|
||||
trappedManipulatorManipulatorDeviceDriver= (TrappedManipulatorManipulatorDeviceDriver) mxddhj1.getDeviceDriver();
|
||||
if (StrUtil.equals(device_code,"CK2020")){
|
||||
trappedManipulatorManipulatorDeviceDriver = (TrappedManipulatorManipulatorDeviceDriver) mxddhj1.getDeviceDriver();
|
||||
if (StrUtil.equals(device_code, "CK2020")) {
|
||||
Map<String, Object> map1 = new HashMap<>();
|
||||
List list = new ArrayList();
|
||||
map1.put("code", "to_command");
|
||||
@@ -581,7 +581,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
||||
list.add(map1);
|
||||
trappedManipulatorManipulatorDeviceDriver.writing(list);
|
||||
}
|
||||
if (StrUtil.equals(device_code,"CK2022")){
|
||||
if (StrUtil.equals(device_code, "CK2022")) {
|
||||
Map<String, Object> map2 = new HashMap<>();
|
||||
List list = new ArrayList();
|
||||
map2.put("code", "to_command");
|
||||
@@ -654,11 +654,11 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
||||
wasteFoilWeighingStationDriver.writing("to_command", "6");
|
||||
Thread.sleep(1000); //休眠1秒
|
||||
while (wasteFoilWeighingStationDriver.getMode() == 6) {
|
||||
jo.put("currentWeight", wasteFoilWeighingStationDriver.getWeight());//当前重量
|
||||
jo.put("lastWeight", wasteFoilWeighingStationDriver.getOld_weight());//上一次重量
|
||||
jo.put("weightGap", wasteFoilWeighingStationDriver.getGap_weight());//重量差
|
||||
break;
|
||||
}
|
||||
jo.put("currentWeight", wasteFoilWeighingStationDriver.getWeight());//当前重量
|
||||
jo.put("lastWeight", wasteFoilWeighingStationDriver.getOld_weight());//上一次重量
|
||||
jo.put("weightGap", wasteFoilWeighingStationDriver.getGap_weight());//重量差
|
||||
break;
|
||||
}
|
||||
wasteFoilWeighingStationDriver.writing("to_command", "0");
|
||||
}
|
||||
//称重确认信号
|
||||
@@ -666,10 +666,10 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
||||
wasteFoilWeighingStationDriver.writing("to_command", "7");
|
||||
Thread.sleep(1000); //休眠1秒
|
||||
while (wasteFoilWeighingStationDriver.getMode() == 7) {
|
||||
jo.put("currentWeight", wasteFoilWeighingStationDriver.getWeight());//当前重量
|
||||
jo.put("lastWeight", wasteFoilWeighingStationDriver.getOld_weight());//上一次重量
|
||||
jo.put("weightGap", wasteFoilWeighingStationDriver.getGap_weight());//重量差
|
||||
break;
|
||||
jo.put("currentWeight", wasteFoilWeighingStationDriver.getWeight());//当前重量
|
||||
jo.put("lastWeight", wasteFoilWeighingStationDriver.getOld_weight());//上一次重量
|
||||
jo.put("weightGap", wasteFoilWeighingStationDriver.getGap_weight());//重量差
|
||||
break;
|
||||
}
|
||||
wasteFoilWeighingStationDriver.writing("to_command", "0");
|
||||
}
|
||||
@@ -716,11 +716,11 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
||||
PaperTubePickSiteDeviceDriver paperTubePickSiteDeviceDriver;
|
||||
if (device.getDeviceDriver() instanceof PaperTubePickSiteDeviceDriver) {
|
||||
paperTubePickSiteDeviceDriver = (PaperTubePickSiteDeviceDriver) device.getDeviceDriver();
|
||||
if (ObjectUtil.isEmpty(to_material)){
|
||||
if (ObjectUtil.isEmpty(to_material)) {
|
||||
map.put("to_material", "0");
|
||||
map.put("to_spec", "0");
|
||||
map.put("to_qty", "0");
|
||||
}else {
|
||||
} else {
|
||||
map.put("to_material", to_material);
|
||||
map.put("to_spec", to_spec);
|
||||
map.put("to_qty", to_qty);
|
||||
@@ -924,8 +924,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
||||
jo.put("qty", foldDiscSiteDeviceDriver.getQty());
|
||||
jo.put("container_type", foldDiscSiteDeviceDriver.getContainer_type());
|
||||
jo.put("error", foldDiscSiteDeviceDriver.getError());
|
||||
}
|
||||
else if (device.getDeviceDriver() instanceof InflatableShaftLibraryDeviceDriver) {
|
||||
} else if (device.getDeviceDriver() instanceof InflatableShaftLibraryDeviceDriver) {
|
||||
inflatableShaftLibraryDeviceDriver = (InflatableShaftLibraryDeviceDriver) device.getDeviceDriver();
|
||||
jo.put("device_code", parent_device_code);
|
||||
jo.put("move", inflatableShaftLibraryDeviceDriver.getMove());
|
||||
|
||||
Reference in New Issue
Block a user