package com.casic.controller; import com.casic.service.MapDataService; import org.springframework.beans.factory.annotation.Required; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/overview") public class MapDataController { private final MapDataService mapDataService; public MapDataController(MapDataService mapDataService) { this.mapDataService = mapDataService; } /** * 获取列表 */ @RequestMapping(value = "/wellList") public Object getWellList(@RequestParam(required = false) String keywords, @RequestParam(required = false) String wellType, @RequestParam(required = false) String deptid, @RequestParam(required = false) String isAlarm) { return mapDataService.getWellList(keywords,wellType,deptid,isAlarm); } /** * 获取当前全部告警列表 */ @RequestMapping(value = "/alarmNow") public Object alarmNow() { return mapDataService.getNowAlarmRecords(); } /** * 获取当前全部告警列表 */ @RequestMapping(value = "/wellInfo") public Object getWellInfo(@RequestParam(value = "devcode", required = true) String devcode, @RequestParam(value = "deviceType", required = true) String deviceType) { return mapDataService.getWellInfo(devcode,deviceType); } }