springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java
@@ -21,6 +21,11 @@ List<Boolean> plclist = S7control.getinstance().ReadBits("DB104.DBx0.0", 40); if(plclist==null){ }else{ JSONObject jsonObject = new JSONObject(); jsonObject.append("params", plclist); @@ -84,9 +89,10 @@ if (shuzu1[i] == 1 && result == 0) { // alarmMapper.Insertalarm(shuzu[i]); } else if (shuzu1[i] == 0 && result > 0) { alarmMapper.updatealarm(shuzu[i]); // alarmMapper.updatealarm(shuzu[i]); } } } } } }