| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @Api(tags="设备历史告警") |
| | | import java.text.ParseException; |
| | | import java.util.List; |
| | | |
| | | @Api(tags="告警管理-设备告警历史查询") |
| | | @RestController |
| | | @RequestMapping("/DevalarmDataHistoryAction") |
| | | public class DevalarmDataHistoryController { |
| | | @RequestMapping("DevalarmDataHistoryAction") |
| | | public class DevalarmDataHistoryController extends BaseController{ |
| | | |
| | | @Autowired |
| | | private DevalarmDataHistoryService service; |
| | | |
| | | //设备告警历史查询 |
| | | @ApiOperation(value = "设备告警历史查询") |
| | | @PostMapping("/serchByCondition") |
| | | public Response serchByCondition(@RequestBody DevAlarmPar par){ |
| | | return service.serchByCondition(par); |
| | | @PostMapping("serchByCondition") |
| | | public Response serchByCondition(@RequestBody DevAlarmPar param) throws ParseException, InterruptedException { |
| | | //return service.serchByCondition(par); |
| | | return service.getPageInfo(param); |
| | | } |
| | | |
| | | @PostMapping("levelList") |
| | | @ApiOperation(value = "设备告警历史记录查询-告警等级分类统计") |
| | | public Response getLevelList() throws ParseException { |
| | | //return service.serchByInfo(par); |
| | | return service.getLevelList(); |
| | | } |
| | | |
| | | |
| | | //设备告警删除告警 |
| | | @ApiOperation(value = "设备告警删除告警") |
| | | @PostMapping("/delete") |
| | | @GetMapping("delete") |
| | | public Response delete(@RequestParam int num){ |
| | | return service.delete(num); |
| | | } |