| | |
| | | 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 |
| | |
| | | ) = 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") |