2 Commits a1d20e5c0a ... bf8476e48d

Author SHA1 Message Date
  xujiaheng bf8476e48d Merge remote-tracking branch 'origin/v1.0.0' into v1.0.0 3 years ago
  xujiaheng 5d1ffa57c7 报警对象bug修改 3 years ago

+ 1 - 1
src/main/java/com/persagy/apm/alarmservice/project/alarmrule/service/impl/ProjectAlarmRuleServiceImpl.java

@@ -294,7 +294,7 @@ public class ProjectAlarmRuleServiceImpl extends ServiceImpl<ProjectAlarmRuleMap
             addProjectAlarmRuleObjRelDTO.setProjectAlarmRuleId(id);
             addProjectAlarmRuleObjRelDTO.setObjId(updateAlarmItemDTO.getObjId());
             addProjectAlarmRuleObjRelDTO.setProjectId(projectId);
-            addProjectAlarmRuleObjRelDTO.setOpen(updateAlarmItemDTO.getOpen());
+            addProjectAlarmRuleObjRelDTO.setOpen(1);
             addProjectAlarmRuleObjRelDTO.setObjName(updateAlarmItemDTO.getObjName());
             list.add(addProjectAlarmRuleObjRelDTO);
         }

+ 1 - 1
src/main/java/com/persagy/apm/alarmservice/project/alarmruleobjrel/service/impl/ProjectAlarmRuleObjRelServiceImpl.java

@@ -366,7 +366,7 @@ public class ProjectAlarmRuleObjRelServiceImpl extends ServiceImpl<ProjectAlarmR
             QueryWrapper<ProjectAlarmRuleObjRel> queryWrapper = new QueryWrapper<>();
             queryWrapper.eq(ProjectAlarmRuleObjRel.PROP_PROJECT_ALARM_RULE_ID, queryRuleObjRelDTO.getProjectAlarmRuleId());
             queryWrapper.eq(ProjectAlarmRuleObjRel.PROP_VALID, ValidEnum.TRUE.getType());
-//            queryWrapper.eq(ProjectAlarmRuleObjRel.PROP_OPEN, 1);
+            queryWrapper.eq(ProjectAlarmRuleObjRel.PROP_OPEN, 1);
             List<ProjectAlarmRuleObjRel> list = list(queryWrapper);
             list.stream().map(ProjectAlarmRuleObjRel::getObjId).distinct().collect(Collectors.toList());
             resultList.addAll(list);