| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | |
| | | @RequestMapping("centralMonitorSysST") |
| | |
| | | return service.getInfoByDevId(devId); |
| | | } |
| | | |
| | | @GetMapping("field") |
| | | @ApiOperation(value = "查询告警阈值字段") |
| | | public Response<Map<String, List>> getField(){ |
| | | return service.getField(); |
| | | } |
| | | |
| | | @PutMapping("updateStatus") |
| | | @ApiOperation(value = "更新状态-演示使用") |
| | | public Response updateStatus(@RequestParam int devId,@RequestParam int switchCloseBusScreen){ |
| | | return service.updateStatus(devId,switchCloseBusScreen); |
| | | } |
| | | |
| | | /** |
| | | * ======History====== |
| | | * 历史查询时,因为历史记录是按照日期分表的,如果查询所有的日期表(union)后再分页,会导致速度极慢,故查询按照单个日期查询 |