|
@@ -14,9 +14,7 @@ import com.bizmatics.service.vo.CommonIcoVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
|
|
|
/**
|
|
|
* 电力告警
|
|
@@ -132,6 +130,28 @@ public class AlarmPowerController {
|
|
|
return ApiResult.success(alarmPowerService.getOne(id));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 电力详情测试
|
|
|
+ * @param alarmId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/alarmGradeOneList")
|
|
|
+ public List<Map<String,Object>> alarmGradeOneList(@RequestParam(required = false) Integer alarmId){
|
|
|
+ List<Map<String, Object>> list = new ArrayList<>();
|
|
|
+ Map<String,Object> map = new HashMap<>();
|
|
|
+ map.put("id",2);
|
|
|
+ map.put("deviceCode","DA00012784");
|
|
|
+ map.put("alarmName","事件顺序记录");
|
|
|
+ map.put("sendingTime","2020-12-22 09:27:00");
|
|
|
+ map.put("alarmType","alert");
|
|
|
+ map.put("measName","BusOutage");
|
|
|
+ map.put("digitalValue",0);
|
|
|
+ map.put("measDesc","母线停电复归");
|
|
|
+ map.put("soeTime","2020-12-22 09:27:00");
|
|
|
+ list.add(map);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 修改数据
|
|
|
* @param alarmPower
|