| | |
| | | import cn.flightfeather.supervision.lightshare.service.SubtaskService |
| | | import cn.flightfeather.supervision.lightshare.vo.AreaVo |
| | | import cn.flightfeather.supervision.lightshare.vo.TaskVo |
| | | import com.fasterxml.jackson.annotation.JsonFormat |
| | | import io.swagger.annotations.Api |
| | | import io.swagger.annotations.ApiOperation |
| | | import org.springframework.format.annotation.DateTimeFormat |
| | |
| | | |
| | | @ApiOperation("获取某类场景的巡查任务统计信息") |
| | | @PostMapping("/summary/area") |
| | | fun getSummaryByArea( |
| | | fun getTaskProgressByArea( |
| | | @RequestBody areaVo: AreaVo, |
| | | ) = subtaskService.getSummaryByArea(areaVo) |
| | | ) = resPack { subtaskService.getTaskProgressByArea(areaVo) } |
| | | |
| | | @ApiOperation("获取某个场景的巡查任务") |
| | | @GetMapping("/byScene") |
| | |
| | | @RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") startTime: LocalDateTime?, |
| | | @RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") endTime: LocalDateTime?, |
| | | ) = subtaskService.getByScene(sceneId, startTime, endTime) |
| | | |
| | | @ApiOperation("获取某类场景的巡查任务统计信息") |
| | | @PostMapping("/summary/area/problem") |
| | | fun getSummaryByArea( |
| | | @RequestBody areaVo: AreaVo, |
| | | ) = resPack { subtaskService.getSummaryByArea(areaVo) } |
| | | } |