feiyu02
2025-12-20 5a003a42d2b34e8362910ac1d3e5a8866768e5fe
src/main/kotlin/cn/flightfeather/supervision/lightshare/web/SubtaskController.kt
@@ -10,6 +10,7 @@
import cn.flightfeather.supervision.lightshare.vo.TaskVo
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import io.swagger.annotations.ApiParam
import org.springframework.format.annotation.DateTimeFormat
import org.springframework.web.bind.annotation.*
import java.time.LocalDateTime
@@ -91,11 +92,13 @@
    ) = subtaskService.findByDayTaskID(dayTaskId, userId, userType)
    @IgnoreResponseAdvice
    @ApiOperation("根据时间和场景id获取巡查任务")
    @GetMapping("/byDate")
    fun findByDate(
        @RequestParam("date") date: String,
        @RequestParam("userId") userId: String,
    ) = subtaskService.findByDate(date, userId)
        @ApiParam(value = "时间,如果不传,则默认获取最新一期") @RequestParam("date", required = false) date: String?,
        @RequestParam("userId", required = false) userId: String?,
        @ApiParam(value = "场景id") @RequestParam(required = false) sceneId: String?,
    ) = subtaskService.findByDate(date, userId, sceneId)
    @IgnoreResponseAdvice
    @GetMapping("/getSubTask")