whyclxw
2025-03-29 b2304cfc3342211dfd161de427879fa813a22a44
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.dto.paramter.AlarmPar;
import com.whyc.dto.result.AlarmRes;
import com.whyc.service.BattalarmDataHistoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.text.ParseException;
import java.util.List;
 
@Api(tags = "告警管理-电池告警历史查询")
@RestController
@RequestMapping("BattalarmDataHistoryAction")
public class BattalarmDataHistoryController extends BaseController{
 
    @Autowired
    private BattalarmDataHistoryService service;
 
 
    @PostMapping("/serchByInfo")
    @ApiOperation(value = "电池告警历史记录查询")
    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);
    }
 
}