diff --git a/src/main/java/com/palnet/comn/model/GPModel.java b/src/main/java/com/palnet/comn/model/GPModel.java index 77f5cc8..b954b95 100644 --- a/src/main/java/com/palnet/comn/model/GPModel.java +++ b/src/main/java/com/palnet/comn/model/GPModel.java @@ -65,6 +65,8 @@ public class GPModel { // 전체 히스토리 저장 private List postionHistory; - + + // 비정상 상황 식별 코드 + private boolean controlWarnCd; } diff --git a/src/main/java/com/palnet/server/command/SocketCommand.java b/src/main/java/com/palnet/server/command/SocketCommand.java index 8be1bfd..3951bd2 100644 --- a/src/main/java/com/palnet/server/command/SocketCommand.java +++ b/src/main/java/com/palnet/server/command/SocketCommand.java @@ -144,7 +144,12 @@ public class SocketCommand { try { HttpRequest request = HttpRequest.newBuilder() // .uri(new URI("http://127.0.0.1:8080/api/ctr/cntrl/id/" + model.getObjectId())) - .uri(new URI(env.getProperty("app.host") + "api/ctr/cntrl/id/" + model.getObjectId())) + .uri(new URI( + env.getProperty("app.host") + "api/ctr/cntrl/id/" + model.getObjectId() + + "/" + model.getLat() + + "/" + model.getLng() + + )) .version(HttpClient.Version.HTTP_2) .GET() .build(); @@ -161,6 +166,7 @@ public class SocketCommand { model.setControlId((String) data.get("controlId")); model.setTypeCd((String) data.get("typeCd")); model.setAreaTrnsYn((String) data.get("areaTrnsYn")); + model.setControlWarnCd("Y".equals(data.get("controlWarnCd")) ? true : false); model.setServerRcvDt(DateUtils.getCurrentTime()); } catch (IOException e) {