package org.security.trans.dataStatistics.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.security.trans.dataStatistics.dto.AnswerAlarmDataDTO;
import org.security.trans.dataStatistics.dto.StatisticsDataDTO;
import org.security.trans.dataStatistics.service.AnswerAlarmDataService;
import org.security.trans.dataStatistics.service.IEmployeeDataService;
import org.security.trans.dataStatistics.vo.AnswerAlarmDataVO;
import org.security.trans.dataStatistics.vo.UnlocaleCheckDataVO;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
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;

/**
 * @author ：wzf
 * @apiNote ：数据统计-联系接警记录
 * @since ：Created in 2022/10/31 18:19
 */
@RestController
@AllArgsConstructor
@RequestMapping("/statistics/answer-alarm")
public class AnswerAlarmDataController {
	private final AnswerAlarmDataService answerAlarmDataService;


	/**
	 * 统计列表
	 */
	@PostMapping("/table")
	@ApiOperationSupport(order = 1)
	@ApiOperation(value = "统计列表", notes = "statisticsDataDTO")
	public R<IPage<AnswerAlarmDataVO>> getTableData(@RequestBody AnswerAlarmDataDTO answerAlarmDataDTO, Query query) {
		return R.data(answerAlarmDataService.getTableData(answerAlarmDataDTO, Condition.getPage(query)));
	}
}
