lxw
2023-08-15 160e150009b51a39fa95d9462c3798ba28d51a09
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
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.dto.paramter.DevAlarmPar;
import com.whyc.service.DevalarmDataHistoryService;
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.text.ParseException;
 
@Api(tags="告警管理-设备告警历史查询")
@RestController
@RequestMapping("DevalarmDataHistoryAction")
public class DevalarmDataHistoryController {
 
    @Autowired
    private DevalarmDataHistoryService service;
 
    //设备告警历史查询
    @ApiOperation(value = "设备告警历史查询")
    @PostMapping("serchByCondition")
    public Response serchByCondition(@RequestBody DevAlarmPar param) throws ParseException {
        //return  service.serchByCondition(par);
        return  service.getPageInfo(param);
    }
 
    //设备告警删除告警
    @ApiOperation(value = "设备告警删除告警")
    @GetMapping("delete")
    public Response delete(@RequestParam int num){
        return  service.delete(num);
    }
 
}