whyclxw
6 天以前 5720a0b6cb13fcecc7fb810c7a7f0ad124ce6048
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
package com.whyc.controller;
 
import com.whyc.dto.AlmHis.BattAlmPar;
import com.whyc.dto.AlmHis.DevAlmPar;
import com.whyc.dto.AlmHis.PwrAlmPar;
import com.whyc.dto.Real.AlmDto;
import com.whyc.dto.Response;
import com.whyc.service.AlarmHisService;
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;
 
@RestController
@Api(tags = "告警历史管理")
@RequestMapping("almHis")
public class AlarmHistoryController {
    @Autowired
    private AlarmHisService service;
 
    @PostMapping("getBattAlmHis")
    @ApiOperation(value = "电池告警历史记录查询")
    public Response serchByInfo(@RequestBody BattAlmPar almDto) throws ParseException, InterruptedException {
        return service.getBattAlmHis(almDto);
    }
 
    @PostMapping("getDevAlmHis")
    @ApiOperation(value = "设备告警历史记录查询")
    public Response getDevAlmHis(@RequestBody DevAlmPar almDto) throws ParseException, InterruptedException {
        return service.getDevAlmHis(almDto);
    }
 
    @PostMapping("getPwrAlmHis")
    @ApiOperation(value = "电源告警历史记录查询")
    public Response getPwrAlmHis(@RequestBody PwrAlmPar almDto) throws ParseException, InterruptedException {
        return service.getPwrAlmHis(almDto);
    }
}