diff --git a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/MessageServiceImpl.java b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/MessageServiceImpl.java index 17e94da..4a65ed5 100644 --- a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/MessageServiceImpl.java +++ b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/MessageServiceImpl.java @@ -82,10 +82,12 @@ public class MessageServiceImpl implements MessageService { if(!session.getAttributes().containsKey("codes")){ return; } + log.info("permission_message_session :{}",session.getId()); List codes = (List) session.getAttributes().get("codes"); if(CollectionUtil.isEmpty(codes) || !codes.contains(alarm.getStationId())){ return; } + log.info("send_to_alarm_message :{}",session.getId()); try { session.sendMessage(new TextMessage(JSONObject.toJSONString(Collections.singletonList(alarm)))); } catch (IOException e) { diff --git a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/accessTicket/service/impl/AccessTicketServiceImpl.java b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/accessTicket/service/impl/AccessTicketServiceImpl.java index 2027f4a..8960a69 100644 --- a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/accessTicket/service/impl/AccessTicketServiceImpl.java +++ b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/accessTicket/service/impl/AccessTicketServiceImpl.java @@ -115,12 +115,12 @@ public class AccessTicketServiceImpl extends ServiceImpl