| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.utils.uuid.UUID; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ArdVideoInspectTask ardVideoInspectTask) |
| | | { |
| | | ardVideoInspectTask.setId(UUID.randomUUID().toString()); |
| | | return toAjax(ardVideoInspectTaskService.insertArdVideoInspectTask(ardVideoInspectTask)); |
| | | } |
| | | |
| | |
| | | { |
| | | return toAjax(ardVideoInspectTaskService.updateArdVideoInspectTask(ardVideoInspectTask)); |
| | | } |
| | | /** |
| | | * 只修改视频巡检任务,不更新步骤 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('inspect:task:edit')") |
| | | @Log(title = "只修改视频巡检任务,不更新步骤", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | public AjaxResult updateArdVideoInspectTaskSingle(@RequestBody ArdVideoInspectTask ardVideoInspectTask) |
| | | { |
| | | return toAjax(ardVideoInspectTaskService.updateArdVideoInspectTaskSingle(ardVideoInspectTask)); |
| | | } |
| | | |
| | | /** |
| | | * 删除视频巡检任务 |