add: 效率提升屏蔽光电判断
This commit is contained in:
@@ -424,14 +424,16 @@ public class BoxPackageManipulatorDeviceDriver extends AbstractOpcDeviceDriver i
|
||||
throw new BadRequestException("设备:" + nextDevice.getDevice_code() + "未设置电气调度号!");
|
||||
}
|
||||
|
||||
BoxSubvolumesConveyorDeviceDriver boxSubvolumesConveyorDeviceDriver;
|
||||
if (nextDevice.getDeviceDriver() instanceof BoxSubvolumesConveyorDeviceDriver) {
|
||||
boxSubvolumesConveyorDeviceDriver = (BoxSubvolumesConveyorDeviceDriver) nextDevice.getDeviceDriver();
|
||||
if (boxSubvolumesConveyorDeviceDriver.getMove() != 1) {
|
||||
notCreateInstMessage = "universal_notCreateInstMessage2";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
//效率提升屏蔽光电判断
|
||||
|
||||
// BoxSubvolumesConveyorDeviceDriver boxSubvolumesConveyorDeviceDriver;
|
||||
// if (nextDevice.getDeviceDriver() instanceof BoxSubvolumesConveyorDeviceDriver) {
|
||||
// boxSubvolumesConveyorDeviceDriver = (BoxSubvolumesConveyorDeviceDriver) nextDevice.getDeviceDriver();
|
||||
// if (boxSubvolumesConveyorDeviceDriver.getMove() != 1) {
|
||||
// notCreateInstMessage = "universal_notCreateInstMessage2";
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
|
||||
ManipulatorCacheDeviceDriver manipulatorCacheDeviceDriver;
|
||||
if (startDevice.getDeviceDriver() instanceof ManipulatorCacheDeviceDriver) {
|
||||
@@ -553,11 +555,11 @@ public class BoxPackageManipulatorDeviceDriver extends AbstractOpcDeviceDriver i
|
||||
map12.put("value", interactionJsonDTO.getFrpModel());
|
||||
list.add(map12);
|
||||
}
|
||||
if (ObjectUtil.isNotEmpty(interactionJsonDTO.getIsHave())) {
|
||||
map13.put("code", "to_have_or_not");
|
||||
map13.put("value", interactionJsonDTO.getIsHave());
|
||||
list.add(map13);
|
||||
}
|
||||
// if (ObjectUtil.isNotEmpty(interactionJsonDTO.getIsHave())) {
|
||||
// map13.put("code", "to_have_or_not");
|
||||
// map13.put("value", interactionJsonDTO.getIsHave());
|
||||
// list.add(map13);
|
||||
// }
|
||||
}
|
||||
this.writing(list);
|
||||
luceneExecuteLogService.deviceExecuteLog(LuceneLogDto.builder()
|
||||
|
||||
Reference in New Issue
Block a user