|
@@ -29,13 +29,12 @@ public class ItsApiAfterTaskCompleted {
|
|
|
public void executeFcltUserMsgNotify(Long msgNmbr) {
|
|
|
// 시설물 사용자 유지보수 메시지 작성 완료 후 웹소켓으로 접속한 사용자에게 통보
|
|
|
try {
|
|
|
- int broadcastCount = 0;
|
|
|
TbUserMsgDto.TbUserMsgNotify msg = TbUserMsgDto.TbUserMsgNotify.builder()
|
|
|
.msgNmbr(msgNmbr)
|
|
|
.build();
|
|
|
ItsWebSocketMessage itsMessage = new ItsWebSocketMessage("fcltUserMsg", msg);
|
|
|
String itsSttsJsonData = this.mapper.writeValueAsString(itsMessage);
|
|
|
- broadcastCount = this.itsWebSocketSessionManager.sendBroadcastUserMessage(itsMessage.getCommand(), new TextMessage(itsSttsJsonData));
|
|
|
+ int broadcastCount = this.itsWebSocketSessionManager.sendBroadcastUserMessage(itsMessage.getCommand(), new TextMessage(itsSttsJsonData));
|
|
|
if (broadcastCount > 0) {
|
|
|
log.info("executeFcltUserMsgNotify: {} EA.", broadcastCount);
|
|
|
}
|