whyclxw
2021-12-13 6e5bc346fe8c1c0305a80de7b4cfc54e921622fe
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
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);
    }
}