| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.text.ParseException; |
| | | import java.util.List; |
| | | |
| | | @Api(tags = "电池历史告警") |
| | | @Api(tags = "告警管理-电池告警历史查询") |
| | | @RestController |
| | | @RequestMapping("/BattalarmDataHistoryAction") |
| | | public class BattalarmDataHistoryController { |
| | | @RequestMapping("BattalarmDataHistoryAction") |
| | | public class BattalarmDataHistoryController extends BaseController{ |
| | | |
| | | @Autowired |
| | | private BattalarmDataHistoryService service; |
| | | |
| | | |
| | | @PostMapping |
| | | @PostMapping("/serchByInfo") |
| | | @ApiOperation(value = "电池告警历史记录查询") |
| | | public Response<List<AlarmRes>> serchByInfo(@RequestBody AlarmPar par){ |
| | | return service.serchByInfo(par); |
| | | public Response serchByInfo(@RequestBody AlarmPar param) throws ParseException, InterruptedException { |
| | | //return service.serchByInfo(par); |
| | | return service.getPageInfo(param); |
| | | } |
| | | |
| | | @PostMapping("levelList") |
| | | @ApiOperation(value = "电池告警历史记录查询-告警等级分类统计") |
| | | public Response getLevelList() throws ParseException { |
| | | //return service.serchByInfo(par); |
| | | return service.getLevelList(); |
| | | } |
| | | |
| | | @PostMapping("/delete") |
| | | @ApiOperation(value = "删除历史告警记录") |
| | | public Response<List<AlarmRes>> delete(@RequestBody List<Integer> list){ |
| | | return service.delete(list); |
| | | } |
| | | |
| | | } |