fix: 报错信息显示
This commit is contained in:
@@ -87,7 +87,7 @@ public class AgvWaitUtil {
|
|||||||
manipulatorAgvStationDeviceDriver = (ManipulatorAgvStationDeviceDriver) endDevice.getDeviceDriver();
|
manipulatorAgvStationDeviceDriver = (ManipulatorAgvStationDeviceDriver) endDevice.getDeviceDriver();
|
||||||
manipulatorAgvStationDeviceDriver.writing(2);
|
manipulatorAgvStationDeviceDriver.writing(2);
|
||||||
if(manipulatorAgvStationDeviceDriver.getAction() != 1){
|
if(manipulatorAgvStationDeviceDriver.getAction() != 1){
|
||||||
log.info("不允许仙工AGV取货,烘箱对接位有报警,设备号 - {}", endDevice);
|
log.info("不允许仙工AGV取货,对接位有报警,设备号 - {}", endDevice);
|
||||||
throw new BadRequestException("上位系统不允许取货");
|
throw new BadRequestException("上位系统不允许取货");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -363,9 +363,9 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
|
|||||||
jo1.put("blockId", IdUtil.simpleUUID());
|
jo1.put("blockId", IdUtil.simpleUUID());
|
||||||
jo1.put("location", pointCode);
|
jo1.put("location", pointCode);
|
||||||
jo1.put("operation", "JackLoad");
|
jo1.put("operation", "JackLoad");
|
||||||
// jo1.put("operationArgs", new JSONObject() {{
|
jo1.put("operationArgs", new JSONObject() {{
|
||||||
// put("recognize", true);
|
put("recognize", true);
|
||||||
// }});
|
}});
|
||||||
ja.add(jo1);
|
ja.add(jo1);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import com.alibaba.fastjson.JSONObject;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import lombok.val;
|
||||||
import org.apache.commons.lang3.ObjectUtils;
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.nl.acs.agv.server.AgvService;
|
import org.nl.acs.agv.server.AgvService;
|
||||||
import org.nl.acs.common.base.CommonFinalParam;
|
import org.nl.acs.common.base.CommonFinalParam;
|
||||||
@@ -89,6 +90,7 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
|
|
||||||
String notCreateInstMessage = "";
|
String notCreateInstMessage = "";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 心跳
|
* 心跳
|
||||||
*/
|
*/
|
||||||
@@ -167,7 +169,6 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
int last_to_height_level = 0;
|
int last_to_height_level = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//子卷条码
|
//子卷条码
|
||||||
String material_barcode = null;
|
String material_barcode = null;
|
||||||
String last_material_barcode = null;
|
String last_material_barcode = null;
|
||||||
@@ -200,6 +201,8 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
|
|
||||||
String hand_barcode = null;
|
String hand_barcode = null;
|
||||||
|
|
||||||
|
Boolean ignore_pickup_check = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* led点阵屏信息
|
* led点阵屏信息
|
||||||
*/
|
*/
|
||||||
@@ -234,14 +237,13 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
to_container_no = this.itemProtocol.getContainer_direction();
|
to_container_no = this.itemProtocol.getContainer_direction();
|
||||||
|
|
||||||
|
|
||||||
|
if (move != last_move && move == 0 && last_move == 1) {
|
||||||
if (move != last_move && move==0 && last_move==1) {
|
|
||||||
requireSucess = false;
|
requireSucess = false;
|
||||||
clearWrite();
|
clearWrite();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (move != 0 && task > 0) {
|
if (move != 0 && task > 0) {
|
||||||
CompletableFuture.runAsync(() -> {
|
CompletableFuture.runAsync(() -> {
|
||||||
// 异步更新指令状态
|
// 异步更新指令状态
|
||||||
try {
|
try {
|
||||||
update_instruction_status();
|
update_instruction_status();
|
||||||
@@ -259,7 +261,7 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
|
|
||||||
//申请空托盘出库
|
//申请空托盘出库
|
||||||
if (mode == 8 && !requireSucess) {
|
if (mode == 8 && !requireSucess) {
|
||||||
if (container_type==0){
|
if (container_type == 0) {
|
||||||
message = "托盘类型为空";
|
message = "托盘类型为空";
|
||||||
}
|
}
|
||||||
applyEmptyTask(StorageTypeEnum.DISKS_OUT.getType(), mode);
|
applyEmptyTask(StorageTypeEnum.DISKS_OUT.getType(), mode);
|
||||||
@@ -287,7 +289,7 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
//申请任务
|
//申请任务
|
||||||
if (move == 1 && !requireSucess) {
|
if (move == 1 && !requireSucess) {
|
||||||
instruction_require();
|
instruction_require();
|
||||||
} else {
|
} else {
|
||||||
String remark = "";
|
String remark = "";
|
||||||
@@ -322,8 +324,6 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -344,26 +344,26 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
last_to_container_type = to_container_type;
|
last_to_container_type = to_container_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void clearWrite() {
|
public void clearWrite() {
|
||||||
List list = new ArrayList<>();
|
List list = new ArrayList<>();
|
||||||
Map map = new HashMap<>();
|
Map map = new HashMap<>();
|
||||||
map.put("code","to_target");
|
map.put("code", "to_target");
|
||||||
map.put("value","0");
|
map.put("value", "0");
|
||||||
list.add(map);
|
list.add(map);
|
||||||
Map map2 = new HashMap<>();
|
Map map2 = new HashMap<>();
|
||||||
map2.put("code","to_task");
|
map2.put("code", "to_task");
|
||||||
map2.put("value","0");
|
map2.put("value", "0");
|
||||||
list.add(map2);
|
list.add(map2);
|
||||||
Map map4 = new HashMap<>();
|
Map map4 = new HashMap<>();
|
||||||
map4.put("code","to_container_type");
|
map4.put("code", "to_container_type");
|
||||||
map4.put("value","0");
|
map4.put("value", "0");
|
||||||
list.add(map4);
|
list.add(map4);
|
||||||
|
|
||||||
this.writing(list);
|
this.writing(list);
|
||||||
message=null;
|
message = null;
|
||||||
vehicle_code=null;
|
vehicle_code = null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void writing(int command) {
|
public void writing(int command) {
|
||||||
@@ -430,9 +430,6 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 申请任务
|
* 申请任务
|
||||||
*/
|
*/
|
||||||
@@ -471,10 +468,10 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
InteractionJsonDTO interactionJsonDTO = JSON.parseObject(interactionJson, InteractionJsonDTO.class);
|
InteractionJsonDTO interactionJsonDTO = JSON.parseObject(interactionJson, InteractionJsonDTO.class);
|
||||||
String containerType = "";
|
String containerType = "";
|
||||||
if (ObjectUtil.isNotEmpty(interactionJsonDTO)) {
|
if (ObjectUtil.isNotEmpty(interactionJsonDTO)) {
|
||||||
containerType = interactionJsonDTO.getContainerType();
|
containerType = interactionJsonDTO.getContainerType();
|
||||||
}
|
}
|
||||||
List list = new ArrayList();
|
List list = new ArrayList();
|
||||||
writeData(next_addr, list, inst,containerType);
|
writeData(next_addr, list, inst, containerType);
|
||||||
// led_message = getLedMessage(inst);
|
// led_message = getLedMessage(inst);
|
||||||
requireSucess = true;
|
requireSucess = true;
|
||||||
return true;
|
return true;
|
||||||
@@ -522,7 +519,7 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
if (StrUtil.equals(deviceAppservice.findDeviceTypeByCode(next_device_code), "storage")) {
|
if (StrUtil.equals(deviceAppservice.findDeviceTypeByCode(next_device_code), "storage")) {
|
||||||
next_point_code = next_device_code + "-" + taskDtoHandCode.getTo_y() + "-" + taskDtoHandCode.getTo_z();
|
next_point_code = next_device_code + "-" + taskDtoHandCode.getTo_y() + "-" + taskDtoHandCode.getTo_z();
|
||||||
Instruction instdto = new Instruction();
|
Instruction instdto = new Instruction();
|
||||||
packageData(instdto, route_plan_code, taskDtoHandCode, taskid, taskcode, start_device_code, next_device_code, start_point_code, next_point_code, priority, containerType,vehicleCode);
|
packageData(instdto, route_plan_code, taskDtoHandCode, taskid, taskcode, start_device_code, next_device_code, start_point_code, next_point_code, priority, containerType, vehicleCode);
|
||||||
try {
|
try {
|
||||||
instructionService.create(instdto);
|
instructionService.create(instdto);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -606,14 +603,18 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
BeltConveyorDeviceDriver beltConveyorDeviceDriver;
|
BeltConveyorDeviceDriver beltConveyorDeviceDriver;
|
||||||
//异常位到叠盘位
|
//异常位到叠盘位
|
||||||
FoldDiscSiteDeviceDriver foldDiscSiteDeviceDriver;
|
FoldDiscSiteDeviceDriver foldDiscSiteDeviceDriver;
|
||||||
|
|
||||||
if (nextdevice.getDeviceDriver() instanceof BeltConveyorDeviceDriver) {
|
if (nextdevice.getDeviceDriver() instanceof BeltConveyorDeviceDriver) {
|
||||||
beltConveyorDeviceDriver = (BeltConveyorDeviceDriver) nextdevice.getDeviceDriver();
|
beltConveyorDeviceDriver = (BeltConveyorDeviceDriver) nextdevice.getDeviceDriver();
|
||||||
if (beltConveyorDeviceDriver.getMode() != 2 || beltConveyorDeviceDriver.getMove() == 1) {
|
Boolean ignorePickupCheck = (Boolean) beltConveyorDeviceDriver.getExtraValue().get("ignore_pickup_check");
|
||||||
log.error("输送机,{}未联机或执行中", next_device_code);
|
if (!ignorePickupCheck) {
|
||||||
this.setNotCreateInstMessage("universal_notCreateInstMessage4");
|
if (beltConveyorDeviceDriver.getMode() != 2 || beltConveyorDeviceDriver.getMove() == 1) {
|
||||||
return false;
|
log.error("输送机,{}未联机或执行中", next_device_code);
|
||||||
|
this.setNotCreateInstMessage("universal_notCreateInstMessage4");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}else if (nextdevice.getDeviceDriver() instanceof FoldDiscSiteDeviceDriver){
|
} else if (nextdevice.getDeviceDriver() instanceof FoldDiscSiteDeviceDriver) {
|
||||||
foldDiscSiteDeviceDriver = (FoldDiscSiteDeviceDriver) nextdevice.getDeviceDriver();
|
foldDiscSiteDeviceDriver = (FoldDiscSiteDeviceDriver) nextdevice.getDeviceDriver();
|
||||||
if (foldDiscSiteDeviceDriver.getMode() != 2 || foldDiscSiteDeviceDriver.getMove() == 1) {
|
if (foldDiscSiteDeviceDriver.getMode() != 2 || foldDiscSiteDeviceDriver.getMove() == 1) {
|
||||||
log.error("输送机,{}未联机或执行中", next_device_code);
|
log.error("输送机,{}未联机或执行中", next_device_code);
|
||||||
@@ -653,7 +654,7 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
InteractionJsonDTO interactionJsonDTO = JSON.parseObject(interactionJson, InteractionJsonDTO.class);
|
InteractionJsonDTO interactionJsonDTO = JSON.parseObject(interactionJson, InteractionJsonDTO.class);
|
||||||
String containerType = "";
|
String containerType = "";
|
||||||
if (ObjectUtil.isNotEmpty(interactionJsonDTO)) {
|
if (ObjectUtil.isNotEmpty(interactionJsonDTO)) {
|
||||||
containerType = interactionJsonDTO.getContainerType();
|
containerType = interactionJsonDTO.getContainerType();
|
||||||
}
|
}
|
||||||
List list = new ArrayList();
|
List list = new ArrayList();
|
||||||
writeData(next_addr, list, instdto, containerType);
|
writeData(next_addr, list, instdto, containerType);
|
||||||
@@ -662,7 +663,7 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void writeData(String next_addr, List list, Instruction inst,String containerType) {
|
private void writeData(String next_addr, List list, Instruction inst, String containerType) {
|
||||||
List list1 = new ArrayList();
|
List list1 = new ArrayList();
|
||||||
Map map = new HashMap();
|
Map map = new HashMap();
|
||||||
map.put("code", "to_target");
|
map.put("code", "to_target");
|
||||||
@@ -824,6 +825,7 @@ public class BeltConveyorDeviceDriver extends AbstractOpcDeviceDriver implements
|
|||||||
jo.put("isOnline", this.getIsonline());
|
jo.put("isOnline", this.getIsonline());
|
||||||
jo.put("requireSucess", requireSucess);
|
jo.put("requireSucess", requireSucess);
|
||||||
jo.put("hand_barcode", hand_barcode);
|
jo.put("hand_barcode", hand_barcode);
|
||||||
|
jo.put("materiel", material_barcode);
|
||||||
jo.put("notCreateInstMessage", LangProcess.msg(notCreateInstMessage));
|
jo.put("notCreateInstMessage", LangProcess.msg(notCreateInstMessage));
|
||||||
return jo;
|
return jo;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -260,6 +260,10 @@ public class BoxStorageOutConveyorDeviceDriver extends AbstractOpcDeviceDriver i
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 25:
|
case 25:
|
||||||
|
if ( StrUtil.isEmpty(material_barcode)) {
|
||||||
|
message = "子卷码为空";
|
||||||
|
}
|
||||||
|
|
||||||
//二楼到一楼输送线申请行架任务
|
//二楼到一楼输送线申请行架任务
|
||||||
if (move == 1 && !requireSucess) {
|
if (move == 1 && !requireSucess) {
|
||||||
applyManipulatorTask();
|
applyManipulatorTask();
|
||||||
|
|||||||
@@ -295,10 +295,11 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
List toInstructions;
|
List toInstructions;
|
||||||
//木箱入库申请入库任务
|
//木箱入库申请入库任务
|
||||||
if (mode == 6 && !requireSucess) {
|
if (mode == 6 && !requireSucess) {
|
||||||
if (StrUtil.isEmpty(barcode)) {
|
if (StrUtil.isEmpty(barcode)||StrUtil.isEmpty(material_barcode)) {
|
||||||
message = "托盘条码为空";
|
message = "托盘条码为空、或者子卷码为空";
|
||||||
|
}else {
|
||||||
|
applyIn(StorageTypeEnum.BOX_IN.getType(), mode);
|
||||||
}
|
}
|
||||||
applyIn(StorageTypeEnum.BOX_IN.getType(), mode);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -306,8 +307,9 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
if (mode == 7 && move == 1 && !requireSucess) {
|
if (mode == 7 && move == 1 && !requireSucess) {
|
||||||
if (StrUtil.isEmpty(barcode) || StrUtil.isEmpty(material_barcode)) {
|
if (StrUtil.isEmpty(barcode) || StrUtil.isEmpty(material_barcode)) {
|
||||||
message = "托盘条码为空、或者子卷码为空";
|
message = "托盘条码为空、或者子卷码为空";
|
||||||
|
}else {
|
||||||
|
applyIn(StorageTypeEnum.STORAGE.getType(), mode);
|
||||||
}
|
}
|
||||||
applyIn(StorageTypeEnum.STORAGE.getType(), mode);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -316,25 +318,27 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
if (mode == 9 && move == 1 && !requireSucess) {
|
if (mode == 9 && move == 1 && !requireSucess) {
|
||||||
if (container_type == 0) {
|
if (container_type == 0) {
|
||||||
message = "托盘类型为空";
|
message = "托盘类型为空";
|
||||||
|
}else {
|
||||||
|
applyEmptyTask(StorageTypeEnum.DISKS_IN.getType(), mode);
|
||||||
}
|
}
|
||||||
applyEmptyTask(StorageTypeEnum.DISKS_IN.getType(), mode);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//申请退货入库
|
//申请退货入库
|
||||||
if (mode == 18 && move == 1 && !requireSucess) {
|
if (mode == 18 && move == 1 && !requireSucess) {
|
||||||
if (StrUtil.isEmpty(barcode)) {
|
if (StrUtil.isEmpty(barcode)) {
|
||||||
message = "托盘条码为空";
|
message = "托盘条码为空";
|
||||||
|
}else {
|
||||||
|
applyBoxReturnTask(StorageTypeEnum.BOX_RETURN.getType(), mode);
|
||||||
}
|
}
|
||||||
applyBoxReturnTask(StorageTypeEnum.BOX_RETURN.getType(), mode);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
//申请高度
|
//申请高度
|
||||||
if (mode == 23 && !requireSucess) {
|
if (mode == 23 && !requireSucess) {
|
||||||
if (StrUtil.isEmpty(barcode) || StrUtil.isEmpty(material_barcode)) {
|
if (StrUtil.isEmpty(barcode) || StrUtil.isEmpty(material_barcode)) {
|
||||||
message = "条码为空";
|
message = "条码为空";
|
||||||
|
}else {
|
||||||
|
applyErrorHeight();
|
||||||
}
|
}
|
||||||
applyErrorHeight();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -399,7 +403,7 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
if (StrUtil.isNotEmpty(hand_barcode)) {
|
if (StrUtil.isNotEmpty(hand_barcode)) {
|
||||||
param.put("vehicle_code", hand_barcode);
|
param.put("vehicle_code", hand_barcode);
|
||||||
}
|
}
|
||||||
if (StrUtil.isNotEmpty(barcode)) {
|
if (StrUtil.isNotEmpty(barcode)&&(barcode.startsWith("A")||barcode.startsWith("B"))) {
|
||||||
param.put("vehicle_code", barcode);
|
param.put("vehicle_code", barcode);
|
||||||
}
|
}
|
||||||
if (StrUtil.isNotEmpty(material_barcode)) {
|
if (StrUtil.isNotEmpty(material_barcode)) {
|
||||||
@@ -464,7 +468,7 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
if (StrUtil.isNotEmpty(hand_barcode)) {
|
if (StrUtil.isNotEmpty(hand_barcode)) {
|
||||||
param.put("vehicle_code", hand_barcode);
|
param.put("vehicle_code", hand_barcode);
|
||||||
}
|
}
|
||||||
if (StrUtil.isNotEmpty(barcode)) {
|
if (StrUtil.isNotEmpty(barcode)&&(barcode.startsWith("A")||barcode.startsWith("B"))) {
|
||||||
param.put("vehicle_code", barcode);
|
param.put("vehicle_code", barcode);
|
||||||
}
|
}
|
||||||
if (StrUtil.isNotEmpty(material_barcode)) {
|
if (StrUtil.isNotEmpty(material_barcode)) {
|
||||||
@@ -529,6 +533,7 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
this.writing(list);
|
this.writing(list);
|
||||||
message = null;
|
message = null;
|
||||||
vehicle_code = null;
|
vehicle_code = null;
|
||||||
|
hand_barcode = null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -575,12 +580,6 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
JSONObject param = new JSONObject();
|
JSONObject param = new JSONObject();
|
||||||
param.put("device_code", device_code);
|
param.put("device_code", device_code);
|
||||||
param.put("container_type", container_type);
|
param.put("container_type", container_type);
|
||||||
if (StrUtil.isNotEmpty(hand_barcode)) {
|
|
||||||
param.put("vehicle_code", hand_barcode);
|
|
||||||
}
|
|
||||||
if (StrUtil.isNotEmpty(barcode)) {
|
|
||||||
param.put("vehicle_code", barcode);
|
|
||||||
}
|
|
||||||
param.put("type", type);
|
param.put("type", type);
|
||||||
LuceneLogDto logDto = LuceneLogDto.builder()
|
LuceneLogDto logDto = LuceneLogDto.builder()
|
||||||
.device_code(device_code)
|
.device_code(device_code)
|
||||||
@@ -632,7 +631,7 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
if (StrUtil.isNotEmpty(hand_barcode)) {
|
if (StrUtil.isNotEmpty(hand_barcode)) {
|
||||||
param.put("vehicle_code", hand_barcode);
|
param.put("vehicle_code", hand_barcode);
|
||||||
}
|
}
|
||||||
if (StrUtil.isNotEmpty(barcode)) {
|
if (StrUtil.isNotEmpty(barcode)&&(barcode.startsWith("A")||barcode.startsWith("B"))) {
|
||||||
param.put("vehicle_code", barcode);
|
param.put("vehicle_code", barcode);
|
||||||
}
|
}
|
||||||
if (StrUtil.isNotEmpty(material_barcode)) {
|
if (StrUtil.isNotEmpty(material_barcode)) {
|
||||||
@@ -998,6 +997,8 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
jo.put("device_name", this.getDevice().getDevice_name());
|
jo.put("device_name", this.getDevice().getDevice_name());
|
||||||
jo.put("mode", mode);
|
jo.put("mode", mode);
|
||||||
jo.put("hand_barcode", hand_barcode);
|
jo.put("hand_barcode", hand_barcode);
|
||||||
|
jo.put("barcode", barcode);
|
||||||
|
jo.put("material_barcode", material_barcode);
|
||||||
jo.put("move", move);
|
jo.put("move", move);
|
||||||
jo.put("action", action);
|
jo.put("action", action);
|
||||||
jo.put("task", task);
|
jo.put("task", task);
|
||||||
|
|||||||
@@ -620,7 +620,7 @@ public class TrappedManipulatorManipulatorDeviceDriver extends AbstractOpcDevice
|
|||||||
jo.put("isError", this.getIserror());
|
jo.put("isError", this.getIserror());
|
||||||
jo.put("message", LangProcess.msg(message));
|
jo.put("message", LangProcess.msg(message));
|
||||||
jo.put("notCreateTaskMessage", notCreateTaskMessage);
|
jo.put("notCreateTaskMessage", notCreateTaskMessage);
|
||||||
jo.put("notCreateInstMessage", LangProcess.msg(notCreateInstMessage));
|
jo.put("notCreateInstMessage", LangProcess.msg(notCreateInstMessage));
|
||||||
jo.put("feedMessage", LangProcess.msg(feedMessage));
|
jo.put("feedMessage", LangProcess.msg(feedMessage));
|
||||||
jo.put("driver_type", "siemens_conveyor");
|
jo.put("driver_type", "siemens_conveyor");
|
||||||
jo.put("is_click", true);
|
jo.put("is_click", true);
|
||||||
|
|||||||
@@ -833,6 +833,8 @@ public class StandardStackerDeviceDriver extends AbstractOpcDeviceDriver impleme
|
|||||||
requireSucess = true;
|
requireSucess = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
message = "不是取货中或者取货完成报警";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//放货中报警
|
//放货中报警
|
||||||
@@ -843,6 +845,8 @@ public class StandardStackerDeviceDriver extends AbstractOpcDeviceDriver impleme
|
|||||||
requireSucess = true;
|
requireSucess = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
message = "不是放货中报警";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//出库报警
|
//出库报警
|
||||||
@@ -855,6 +859,8 @@ public class StandardStackerDeviceDriver extends AbstractOpcDeviceDriver impleme
|
|||||||
requireSucess = true;
|
requireSucess = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
message = "不是取货中或者取货完成报警";
|
||||||
}
|
}
|
||||||
//放货中报警
|
//放货中报警
|
||||||
if ("3".equals(instructionErro.getExecute_code()) && forkCargo == 2) {
|
if ("3".equals(instructionErro.getExecute_code()) && forkCargo == 2) {
|
||||||
@@ -866,6 +872,8 @@ public class StandardStackerDeviceDriver extends AbstractOpcDeviceDriver impleme
|
|||||||
requireSucess = true;
|
requireSucess = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
message = "不是放货中报警";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1085,9 +1085,10 @@ public class TaskServiceImpl extends CommonServiceImpl<TaskMapper, Task> impleme
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TaskDto findByStartCodeAndReady(String device_code) {
|
public TaskDto findByStartCodeAndReady(String device_code) {
|
||||||
|
//根据时间升序取第一个
|
||||||
Optional<TaskDto> optionalTask = tasks.stream()
|
Optional<TaskDto> optionalTask = tasks.stream()
|
||||||
.filter(task -> StrUtil.equals(task.getStart_device_code(), device_code)
|
.filter(task -> StrUtil.equals(task.getStart_device_code(), device_code)
|
||||||
&& StrUtil.equals(task.getTask_status(), TaskStatusEnum.READY.getIndex()))
|
&& StrUtil.equals(task.getTask_status(), TaskStatusEnum.READY.getIndex())).sorted(Comparator.comparing(TaskDto::getCreate_time))
|
||||||
.findFirst();
|
.findFirst();
|
||||||
return optionalTask.orElse(null);
|
return optionalTask.orElse(null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -704,7 +704,7 @@ export default {
|
|||||||
const obj = { name: i18n.t('monitor.click.inventory_quantity'), value: data[val] }
|
const obj = { name: i18n.t('monitor.click.inventory_quantity'), value: data[val] }
|
||||||
this.arr.push(obj)
|
this.arr.push(obj)
|
||||||
} else if (val === 'hand_barcode') {
|
} else if (val === 'hand_barcode') {
|
||||||
const obj = { name: '子卷编号', value: data[val] }
|
const obj = { name: '补码信息', value: data[val] }
|
||||||
this.arr.push(obj)
|
this.arr.push(obj)
|
||||||
} else if (val === 'x') {
|
} else if (val === 'x') {
|
||||||
const obj = { name: 'X', value: data[val] }
|
const obj = { name: 'X', value: data[val] }
|
||||||
@@ -745,6 +745,9 @@ export default {
|
|||||||
} else if (val === 'command') {
|
} else if (val === 'command') {
|
||||||
const obj = { name: i18n.t('monitor.click.command'), value: data[val] }
|
const obj = { name: i18n.t('monitor.click.command'), value: data[val] }
|
||||||
this.arr.push(obj)
|
this.arr.push(obj)
|
||||||
|
} else if (val === 'material_barcode') {
|
||||||
|
const obj = { name: '子卷编号', value: data[val] }
|
||||||
|
this.arr.push(obj)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user