| | |
| | | package com.gkhy.fourierSpecialGasMonitor.controller; |
| | | |
| | | import com.gkhy.fourierSpecialGasMonitor.annotation.RepeatedClick; |
| | | import com.gkhy.fourierSpecialGasMonitor.commons.domain.Result; |
| | | import com.gkhy.fourierSpecialGasMonitor.commons.model.PageQuery; |
| | | import com.gkhy.fourierSpecialGasMonitor.entity.query.FindGasCategoryPageQuery; |
| | | import com.gkhy.fourierSpecialGasMonitor.entity.query.FindGasWarnLogPageQuery; |
| | | import com.gkhy.fourierSpecialGasMonitor.entity.req.GasWarnLogCountByTimeReqDTO; |
| | | import com.gkhy.fourierSpecialGasMonitor.entity.req.GasWarnLogInfoReqDTO; |
| | | import com.gkhy.fourierSpecialGasMonitor.entity.req.HandleGasWarnLogReqDTO; |
| | | import com.gkhy.fourierSpecialGasMonitor.entity.req.WindRoseByTimeReqDTO; |
| | | import com.gkhy.fourierSpecialGasMonitor.service.GasWarnLogService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | } |
| | | |
| | | @PostMapping("/handleById") |
| | | public Result handleGasWarnLog(@RequestParam Long id){ |
| | | Result result = gasWarnLogService.handleGasWarnLog(id); |
| | | @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; |
| | | } |
| | | } |