diff --git a/so-service/src/main/java/com/pineone/icbms/so/service/logic/ServiceLogicImpl.java b/so-service/src/main/java/com/pineone/icbms/so/service/logic/ServiceLogicImpl.java index 485c9726..a5cfafb4 100644 --- a/so-service/src/main/java/com/pineone/icbms/so/service/logic/ServiceLogicImpl.java +++ b/so-service/src/main/java/com/pineone/icbms/so/service/logic/ServiceLogicImpl.java @@ -25,7 +25,6 @@ import java.util.ArrayList; import java.util.List; -import java.util.UUID; /** @@ -178,6 +177,7 @@ public void executeService(String serviceId, String sessionId) { try { operation = serviceSDAProxy.getPCCountUri(session); logger.info("Equipment Data = " + operation); + sessionDataUpdate(sessionStore,session,operation,DefaultSession.ADMIN_NOTI_DATA); } catch (BadRequestException e) { logger.warn("operation is not Count"); session = sessionStore.retrieveSessionDetail(localSessionId); @@ -250,4 +250,10 @@ public Service retrieveServiceDetailByName(String serviceName) { return service; } + + private void sessionDataUpdate(SessionStore sessionStore, Session session, String data, String key){ + session.insertSessionData(key, data); + sessionStore.updateSession(session); + } + } diff --git a/so-util/src/main/java/com/pineone/icbms/so/util/session/DefaultSession.java b/so-util/src/main/java/com/pineone/icbms/so/util/session/DefaultSession.java index 9d99808f..aafbe014 100644 --- a/so-util/src/main/java/com/pineone/icbms/so/util/session/DefaultSession.java +++ b/so-util/src/main/java/com/pineone/icbms/so/util/session/DefaultSession.java @@ -31,6 +31,7 @@ public class DefaultSession implements Session { public static final String DEVICE_KEY = "DEVICE_KEY"; public static final String DEVICE_LOCATION = "DEVICE_LOCATION"; public static final String DEVICE_RESULT = "DEVICE_RESULT"; + public static final String ADMIN_NOTI_DATA = "ADMIN_NOTI_DATA"; /** * control status