lixing 3 years ago
parent
commit
d047d82bd3

+ 1 - 0
dmp-alarm/src/main/java/com/persagy/dmp/alarm/enumeration/EnumAlarmMessageType.java

@@ -13,6 +13,7 @@ public enum EnumAlarmMessageType {
     ALARM_CONFIGS_CHANGE("alarmConfigsChange", "报警定义变动"),
     ALARM_TARGET_UPDATE("alarmTargetUpdate", "报警匹配条件更新"),
     ALARM_TARGET_CREATE("alarmTargetCreate", "新增报警匹配条件"),
+    ALARM_TARGET_DELETE("alarmTargetDelete", "删除报警匹配条件"),
     ALARM_ITEM_CREATE("alarmItemCreate", "新增报警条目"),
     ALARM_ITEM_UPDATE("alarmItemUpdate", "报警条目更新"),
     ALARM_ITEM_DELETE("alarmItemDelete", "删除报警条目"),

+ 1 - 0
dmp-alarm/src/main/java/com/persagy/dmp/alarm/jms/MessageProcesser.java

@@ -46,6 +46,7 @@ public class MessageProcesser {
 		beanNames.add(EnumAlarmMessageType.ALARM_TARGET_UPDATE.getValue());
 		beanNames.add(EnumAlarmMessageType.ALARM_ITEM_UPDATE.getValue());
 		beanNames.add(EnumAlarmMessageType.INSTANCE_OBJ_DELETE.getValue());
+		beanNames.add(EnumAlarmMessageType.ALARM_TARGET_DELETE.getValue());
 //		由其他服务消费
 //		beanNames.add(RabbitMQConstants.ALARM_CONFIG_CREATE);
 //		beanNames.add(RabbitMQConstants.ALARM_CONFIG_DELETE);

+ 1 - 1
dmp-alarm/src/main/java/com/persagy/dmp/alarm/service/AlarmTargetService.java

@@ -209,7 +209,7 @@ public class AlarmTargetService extends AlarmBaseService {
         /* 拼装需要推送至消息队列的消息 */
         DmpMessage msg = new DmpMessage();
         msg.setMid(UUID.randomUUID().toString());
-        msg.setType(EnumAlarmMessageType.ALARM_ITEM_DELETE.getValue());
+        msg.setType(EnumAlarmMessageType.ALARM_TARGET_DELETE.getValue());
         msg.setGroupCode(DmpParameterStorage.getGroupCode());
         msg.setProjectId(DmpParameterStorage.getProjectId());
         msg.setTargetId(param.getId());