Explorar el Código

真实报警加上批注类型,userId

menglu hace 3 años
padre
commit
c2ec753e9c

+ 7 - 0
ibms-data-sdk/src/main/java/com/persagy/ibms/data/sdk/util/RWDAlarmUtil.java

@@ -795,6 +795,9 @@ public class RWDAlarmUtil {
 							handleJSON.put("state", 2);
 						}
 					}
+					if (paramJSON.containsKey("userId")) {
+						handleJSON.put("userId", paramJSON.get("userId"));
+					}
 					log.warn(Constant.alarm_url + "/alarm-record/handleAlarm" + "\n" + handleJSON.toJSONString());
 					String post_result = HttpClientUtil.instance("alarm").put(Constant.alarm_url + "/alarm-record/handleAlarm",
 							handleJSON.toJSONString());
@@ -857,6 +860,10 @@ public class RWDAlarmUtil {
 					handleJSON.put("id", paramJSON.get("id"));
 					handleJSON.put("treatMode", 2);
 					handleJSON.put("treatState", 2);
+					handleJSON.put("nature", 2);
+					if (paramJSON.containsKey("userId")) {
+						handleJSON.put("userId", paramJSON.get("userId"));
+					}
 					log.warn(Constant.alarm_url + "/alarm-record/handleAlarm" + "\n" + handleJSON.toJSONString());
 					String post_result = HttpClientUtil.instance("alarm").put(Constant.alarm_url + "/alarm-record/handleAlarm",
 							handleJSON.toJSONString());