Ver código fonte

1、停车负载率重定向
2、报警睡眠

lirong 3 anos atrás
pai
commit
f2ecdb7df3

+ 10 - 0
ibms-data-sdk/src/main/java/com/persagy/ibms/data/sdk/util/RWDDownloadUtil.java

@@ -566,11 +566,21 @@ public class RWDDownloadUtil {
 					JSONObject classItem = classArray.getJSONObject(i);
 					String ibmsSceneCode = classItem.getString("ibmsSceneCode");
 					String ibmsClassCode = classItem.getString("ibmsClassCode");
+					try{
+						Thread.sleep(1000L);
+					}catch (InterruptedException e){
+						log.error(e.getMessage(),e);
+					}
 					String itemListResultString = HttpClientUtil.instance("alarm")
 							.get(Constant.alarm_url + "/alarm-config/itemList/" + ibmsSceneCode + "/" + ibmsClassCode);
 					JSONObject itemListResultJSON = JSON.parseObject(itemListResultString);
 					JSONArray itemListResultContent = itemListResultJSON.getJSONArray("Content");
 					for (int ii = 0; ii < itemListResultContent.size(); ii++) {
+						try{
+							Thread.sleep(1000L);
+						}catch (InterruptedException e){
+							log.error(e.getMessage(),e);
+						}
 						JSONObject itemAlarmType = itemListResultContent.getJSONObject(ii);
 						String itemId = itemAlarmType.getString("id");
 						String alarmDefineListString = HttpClientUtil.instance("alarm")

+ 11 - 0
ibms-data-sdk/src/main/resources/config.xml

@@ -170,6 +170,17 @@
 	<Redirect code="设备在离线状态" http_request_type="get" url="http://192.168.100.33:9909/ocssiRealTime/listEquipOnlineStatus">
 		<header key="Content-Type" value="application/json" />
 	</Redirect>
+	<!--退出登录,需配置人员服务的地址和端口-->
+	<Redirect code="退出登录" http_request_type="post" url="http://39.102.40.239:9970/person-center/user/logout">
+		<header key="Content-Type" value="application/json"/>
+	</Redirect>
+	<!--车位负载率,需配置zkt_monitor服务的地址和接口-->
+	<Redirect code="负载率" http_request_type="post" url="http://192.168.0.33:9982/parklot/loadCurrentRateOfCarport">
+		<header key="Content-Type" value="application/json"/>
+	</Redirect>
+	<Redirect code="负载率曲线" http_request_type="post" url="http://192.168.0.33:9982/parklot/load24HRateOfCarport">
+		<header key="Content-Type" value="application/json"/>
+	</Redirect>
 
 	<Redirect code="test-get1" http_request_type="get" url="http://39.102.43.179:9993/alarm-record/list" />
 	<Redirect code="test-post1" http_request_type="post" url="http://192.168.4.69:8806/zkt-sdk/post" />