|
@@ -18,6 +18,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.persagy.cache.AlarmInfoCache;
|
|
|
import com.persagy.constant.CommonConst;
|
|
|
import com.persagy.entity.AlarmDefine;
|
|
|
+import com.persagy.entity.AlarmState;
|
|
|
import com.persagy.entity.NettyMessage;
|
|
|
import com.persagy.entity.ZktAlarmRecordDO;
|
|
|
import com.persagy.netty.client.NettyClient;
|
|
@@ -136,6 +137,12 @@ public class HelloWorld {
|
|
|
}
|
|
|
return new HashMap<>();
|
|
|
}
|
|
|
+
|
|
|
+ @PostMapping("/test5")
|
|
|
+ public AlarmState getAlarmState(@RequestBody JSONObject jsonObject) throws Exception {
|
|
|
+ String defineId = AlarmInfoCache.getAlarmDefineId(jsonObject);
|
|
|
+ return AlarmInfoCache.getAlarmState(defineId);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|