package com.gkhy.huataiFourierSpecialGasMonitor.controller;
|
|
import com.gkhy.huataiFourierSpecialGasMonitor.annotation.RepeatedClick;
|
import com.gkhy.huataiFourierSpecialGasMonitor.commons.domain.Result;
|
import com.gkhy.huataiFourierSpecialGasMonitor.commons.model.PageQuery;
|
import com.gkhy.huataiFourierSpecialGasMonitor.entity.query.FindGasWarnLogPageQuery;
|
import com.gkhy.huataiFourierSpecialGasMonitor.entity.req.GasWarnLogCountByTimeReqDTO;
|
import com.gkhy.huataiFourierSpecialGasMonitor.entity.req.GasWarnLogInfoReqDTO;
|
import com.gkhy.huataiFourierSpecialGasMonitor.entity.req.HandleGasWarnLogReqDTO;
|
import com.gkhy.huataiFourierSpecialGasMonitor.entity.req.WindRoseByTimeReqDTO;
|
import com.gkhy.huataiFourierSpecialGasMonitor.service.GasWarnLogService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
|
/**
|
* @author Mr.huang
|
* @decription
|
* @date 2023/8/9 16:46
|
*/
|
@RestController
|
@RequestMapping("/gasWarnLog")
|
public class GasWarnLogController {
|
|
@Autowired
|
private GasWarnLogService gasWarnLogService;
|
|
@PostMapping("/page")
|
public Result findGasWarnLogPage(@RequestBody PageQuery<FindGasWarnLogPageQuery> pageQuery){
|
Result result = gasWarnLogService.findGasWarnLogPage(pageQuery);
|
return result;
|
}
|
|
@PostMapping("/handleById")
|
@RepeatedClick
|
public Result handleGasWarnLog(@RequestBody HandleGasWarnLogReqDTO reqDto){
|
Result result = gasWarnLogService.handleGasWarnLog(reqDto);
|
return result;
|
}
|
|
@PostMapping("/gasWarnLogCountByTime")
|
public Result gasWarnLogCountByTime(@RequestBody GasWarnLogCountByTimeReqDTO gasWarnLogCountByTimeReqDTO){
|
Result result = gasWarnLogService.gasWarnLogCountByTime(gasWarnLogCountByTimeReqDTO);
|
return result;
|
}
|
@PostMapping("/gasWarnLogInfoByTime")
|
public Result gasWarnLogInfoByTime(@RequestBody GasWarnLogInfoReqDTO gasWarnLogInfoReqDTO){
|
Result result = gasWarnLogService.gasWarnLogInfoByTime(gasWarnLogInfoReqDTO);
|
return result;
|
}
|
|
@PostMapping("/gasWindRoseByTime")
|
public Result gasWindRoseByTime(@RequestBody WindRoseByTimeReqDTO reqDTO){
|
Result result = gasWarnLogService.gasWindRoseByTime(reqDTO);
|
return result;
|
}
|
}
|