lxw
2023-04-25 a3dd5e747bc4b8e8ceaead18f1055c07f51a0cf0
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
48
49
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.PwrdevAlarmHistory;
import com.whyc.service.PwrdevAlarmHistoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
 
@Api(tags = "告警管理-电源历史告警")
@RestController
@RequestMapping("PwrdevAlarmHistoryAction")
public class PwrdevAlarmHistoryController {
 
    @Autowired
    private PwrdevAlarmHistoryService service;
 
    //电源历史告警查询
    @ApiOperation(value = "电源历史告警查询",notes = "almTypes,almSource,almStartTime,almStartTime1,pageCurr,pageSize,usrId,stationName1,stationName2,stationName3,stationName5")
    @PostMapping("/getHistoryAllPage")
    public Response getHistoryAllPage(@RequestBody PwrdevAlarmHistory pwrH){
        return service.getHistoryAllPage(pwrH);
    }
 
    //电池历史告警删除
    @ApiOperation(value = "电源历史告警删除---通讯电源")
    @GetMapping("delete")
    public Response delete(@RequestParam int num){
        return service.delete(num);
    }
    //电池历史告警删除批量
    @ApiOperation(value = "电源历史告警删除批量---通讯电源")
    @PostMapping("deletepro")
    public Response deletepro(@RequestBody List<Integer> list){
        return service.deletepro(list);
    }
 
    //通讯电源历史告警查询
    @ApiOperation(value = "通讯电源历史告警查询",notes = "almTypes,almSource,almStartTime,almStartTime1,pageCurr,pageSize,usrId,stationName1,stationName2,stationName3,stationName5")
    @PostMapping("/getHistoryAllPage2")
    public Response getHistoryAllPage2(@RequestBody PwrdevAlarmHistory pwrH){
        return service.getHistoryAllPage2(pwrH);
    }
 
}