|
@@ -67,13 +67,9 @@ public class NettyAlarmServiceImpl extends NettyAlarmService {
|
|
|
JSONObject supplement = new JSONObject();
|
|
|
if (!CollectionUtils.isEmpty(objectList)) {
|
|
|
supplement.put("alarm_obj_name", objectList.get(0).get("localName"));
|
|
|
- String itemCode = alarmRecord.getString("itemCode");
|
|
|
- String category = getAlarmCategory(alarmUrlParam, itemCode);
|
|
|
- if (EnumAlarmCategory.EQWB.equals(category)){//报警分类 //维保
|
|
|
- supplement.put("specification",objectList.get(0).getString("specification"));//设备型号
|
|
|
- supplement.put("equip_local_id",objectList.get(0).getString("localId"));//设备本地编码
|
|
|
- supplement.put("equip_local_name",objectList.get(0).getString("localName"));//设备本地名称
|
|
|
- }
|
|
|
+ supplement.put("specification",objectList.get(0).getString("specification"));//设备型号
|
|
|
+ supplement.put("equip_local_id",objectList.get(0).getString("localId"));//设备本地编码
|
|
|
+ supplement.put("equip_local_name",objectList.get(0).getString("localName"));//设备本地名称
|
|
|
}
|
|
|
return supplement;
|
|
|
}
|