package com.inspect.statistics.controller;

import com.inspect.base.core.web.controller.BaseController;
import com.inspect.base.core.web.page.TableDataInfo;
import com.inspect.statistics.domain.StaticsCompareAlarm;
import com.inspect.statistics.mapper.StatisticsAlarmMsgMapper;

import java.util.List;
import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping({"/statisticsAlarm"})
public class StatisticsAlarmController extends BaseController {
    @Resource
    StatisticsAlarmMsgMapper mapper;

    @GetMapping({"/queryAlarmList"})
    public TableDataInfo queryList(StaticsCompareAlarm alarm) {
        this.startPage();
        List<StaticsCompareAlarm> staticsCompareAlarms = this.mapper.queryList(alarm);
        return this.getDataTable(staticsCompareAlarms);
    }
}
