|
@@ -67,10 +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 category = alarmRecord.getString("category");
|
|
|
- if (EnumAlarmCategory.EQWB.equals(category)){
|
|
|
-
|
|
|
+ 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"));
|