lixing 3 лет назад
Родитель
Сommit
18262569c6

+ 12 - 12
src/main/java/com/persagy/apm/alarmservice/group/alarmrecord/controller/AlarmRecordController.java

@@ -388,18 +388,18 @@ public class AlarmRecordController {
 
     @PostMapping("/test")
     public void test() {
-        AddAlarmRecordDTO addAlarmRecordDTO = new AddAlarmRecordDTO();
-        addAlarmRecordDTO.setId("123");
-        addAlarmRecordDTO.setTriggerTime(new Date());
-        addAlarmRecordDTO.setObjId("123");
-        addAlarmRecordDTO.setName("test");
-        addAlarmRecordDTO.setItemCode("123");
-        addAlarmRecordDTO.setLevel("1");
-        try {
-            alarmRecordService.create(addAlarmRecordDTO);
-        } catch (Exception e) {
-            e.printStackTrace();
-        }
+//        AddAlarmRecordDTO addAlarmRecordDTO = new AddAlarmRecordDTO();
+//        addAlarmRecordDTO.setId("123");
+//        addAlarmRecordDTO.setTriggerTime(new Date());
+//        addAlarmRecordDTO.setObjId("123");
+//        addAlarmRecordDTO.setName("test");
+//        addAlarmRecordDTO.setItemCode("123");
+//        addAlarmRecordDTO.setLevel("1");
+//        try {
+//            alarmRecordService.create(addAlarmRecordDTO);
+//        } catch (Exception e) {
+//            e.printStackTrace();
+//        }
     }
 }