whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/controller/DevalarmDataHistoryController.java
@@ -8,10 +8,13 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.text.ParseException;
import java.util.List;
@Api(tags="告警管理-设备告警历史查询")
@RestController
@RequestMapping("DevalarmDataHistoryAction")
public class DevalarmDataHistoryController {
public class DevalarmDataHistoryController extends BaseController{
    @Autowired
    private DevalarmDataHistoryService service;
@@ -19,10 +22,19 @@
    //设备告警历史查询
    @ApiOperation(value = "设备告警历史查询")
    @PostMapping("serchByCondition")
    public Response serchByCondition(@RequestBody DevAlarmPar par){
        return  service.serchByCondition(par);
    public Response serchByCondition(@RequestBody DevAlarmPar param) throws ParseException, InterruptedException {
        //return  service.serchByCondition(par);
        return  service.getPageInfo(param);
    }
    @PostMapping("levelList")
    @ApiOperation(value = "设备告警历史记录查询-告警等级分类统计")
    public Response getLevelList() throws ParseException {
        //return service.serchByInfo(par);
        return service.getLevelList();
    }
    //设备告警删除告警
    @ApiOperation(value = "设备告警删除告警")
    @GetMapping("delete")