南昌市物联网技防平台-后台
Administrator
2021-04-12 36afc3a1f1437b8a3283dc0bf6475e96fded05a7
blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/nettyServer/ServerHandler.java
@@ -14,6 +14,7 @@
import org.springblade.jfpt.equipment.service.IEquipmentService;
import org.springblade.jfpt.operation.service.IOperationService;
import org.springblade.jfpt.operation.vo.OperationVO;
import org.springblade.jfpt.webscoket.service.IPushMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -50,6 +51,9 @@
   @Autowired
   private IAlarmService alarmService;
   @Autowired
   private IPushMsgService pushMsgService;
   @Autowired
   private IOperationService operationService;
@@ -1786,6 +1790,9 @@
                  operation.setZc("接警");
                  operation.setZctime(alarm.getJjTime());
                  serverHandler.operationService.save(operation);
                  //通过websocket给前端接警员发送信息
                  //serverHandler.pushMsgService.pushMsg(alarm.getAlarmId(), alarm.getId().toString());
               }
               outData.add("LEOK#@");