| | |
| | | import cn.flightfeather.supervision.lightshare.vo.AreaVo |
| | | import cn.flightfeather.supervision.lightshare.vo.TaskVo |
| | | import io.swagger.annotations.Api |
| | | import io.swagger.annotations.ApiOperation |
| | | import org.springframework.web.bind.annotation.* |
| | | |
| | | @Api(tags = ["SubtaskController"], description = "巡查子任务API接口") |
| | |
| | | @GetMapping("/getSubTask") |
| | | fun getByTopTaskAndDate( |
| | | @RequestParam("topTaskId") topTaskId: String, |
| | | @RequestParam("startTime") startTime: String, |
| | | @RequestParam("endTime") endTime: String, |
| | | @RequestParam(value = "startTime", required = false) startTime: String?, |
| | | @RequestParam(value = "endTime", required = false) endTime: String?, |
| | | @RequestParam(value = "sceneTypeId", required = false) sceneTypeId: Int? |
| | | ) = subtaskService.getByTopTaskAndDate(topTaskId, startTime, endTime, sceneTypeId) |
| | | |
| | | @ApiOperation("获取某类场景的巡查任务统计信息") |
| | | @GetMapping("/summary") |
| | | fun getByTopTaskAndDate( |
| | | @RequestParam("topTaskId") topTaskId: String, |
| | | @RequestParam(value = "sceneTypeId", required = false) sceneTypeId: Int? |
| | | ) = subtaskService.getSummary(topTaskId, sceneTypeId) |
| | | } |