diff --git a/shkj-wms/src/main/java/com/shkj/wcs/plc/PlcEventTask.java b/shkj-wms/src/main/java/com/shkj/wcs/plc/PlcEventTask.java index 4dcc8d1..ed45cd2 100644 --- a/shkj-wms/src/main/java/com/shkj/wcs/plc/PlcEventTask.java +++ b/shkj-wms/src/main/java/com/shkj/wcs/plc/PlcEventTask.java @@ -208,7 +208,12 @@ public class PlcEventTask { String devpName = property.getDevpName(); String address = property.getAddress(); businPlcException = new BusinPlcException(); - if (pointType.equals("99")) { + if (pointType.equals("oneBoverlength")||pointType.equals("oneAoverlength") + ||pointType.equals("oneLwide")||pointType.equals("oneRwide") + ||pointType.equals("oneHigh")||pointType.equals("ontExit") + ||pointType.equals("twoBoverlength")||pointType.equals("twoAoverlength") + ||pointType.equals("twoLwide")||pointType.equals("twoRwide") + ||pointType.equals("twoHigh")) { if (pointMap.containsKey(address) && Boolean.valueOf((pointMap.get(address).toString()))) { businPlcException.setPlcPoint(address); businPlcException.setExecMsg(devpName); @@ -217,7 +222,7 @@ public class PlcEventTask { execList.add(businPlcException); } } - // iBusinPlcExceptionService.saveBatch(execList); + // iBusinPlcExceptionService.saveBatch(execList); } redisTemplate.opsForValue().set(RedisConstant.redisPlcExecMsg + devType, execList); } catch (Exception e) { diff --git a/shkj-wms/src/main/java/com/shkj/wms/service/impl/BusinOutInPlanServiceImpl.java b/shkj-wms/src/main/java/com/shkj/wms/service/impl/BusinOutInPlanServiceImpl.java index e0c0b72..9dd9282 100644 --- a/shkj-wms/src/main/java/com/shkj/wms/service/impl/BusinOutInPlanServiceImpl.java +++ b/shkj-wms/src/main/java/com/shkj/wms/service/impl/BusinOutInPlanServiceImpl.java @@ -943,8 +943,10 @@ public class BusinOutInPlanServiceImpl extends ServiceImpl