|
@@ -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")
|