|
|
|
@ -212,8 +212,10 @@ public class PlcEventTask { |
|
|
|
if (pointType.equals("99")) { |
|
|
|
if (pointType.equals("99")) { |
|
|
|
log.info("地址:"+address+" 报警内容:"+devpName); |
|
|
|
log.info("地址:"+address+" 报警内容:"+devpName); |
|
|
|
if (pointMap.containsKey(address) && Boolean.valueOf((pointMap.get(address).toString()))) { |
|
|
|
if (pointMap.containsKey(address) && Boolean.valueOf((pointMap.get(address).toString()))) { |
|
|
|
|
|
|
|
String message = MessageUtils.message(devpName); |
|
|
|
|
|
|
|
log.info("报警内容转多语言:"+message); |
|
|
|
businPlcException.setPlcPoint(address); |
|
|
|
businPlcException.setPlcPoint(address); |
|
|
|
businPlcException.setExecMsg(MessageUtils.message(devpName)); |
|
|
|
businPlcException.setExecMsg(message); |
|
|
|
businPlcException.setExecDate(DateUtils.getTime()); |
|
|
|
businPlcException.setExecDate(DateUtils.getTime()); |
|
|
|
businPlcException.setExecDev(devType); |
|
|
|
businPlcException.setExecDev(devType); |
|
|
|
execList.add(businPlcException); |
|
|
|
execList.add(businPlcException); |
|
|
|
|