lxw
2023-04-24 e2b4ed00f1a0012236e737a608ecfb2abbfc2eb4
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
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.util.List;
 
@Api(tags = "告警管理-电池告警历史查询")
@RestController
@RequestMapping("BattalarmDataHistoryAction")
public class BattalarmDataHistoryController {
 
    @Autowired
    private BattalarmDataHistoryService service;
 
 
    @PostMapping("/serchByInfo")
    @ApiOperation(value = "电池告警历史记录查询")
    public Response serchByInfo(@RequestBody AlarmPar par){
        return service.serchByInfo(par);
    }
    @PostMapping("/delete")
    @ApiOperation(value = "删除历史告警记录")
    public Response<List<AlarmRes>> delete(@RequestBody List<Integer> list){
        return service.delete(list);
    }
 
}