| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.utils.uuid.IdUtils; |
| | | import com.ruoyi.common.utils.uuid.UUID; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | List<ArdVideoInspectTask> list = ardVideoInspectTaskService.selectArdVideoInspectTaskList(ardVideoInspectTask); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 查询视频巡检任务列表(不校验权限) |
| | | */ |
| | | @GetMapping("/list/noPerm") |
| | | public TableDataInfo listNoPerm(ArdVideoInspectTask ardVideoInspectTask) { |
| | | startPage(); |
| | | List<ArdVideoInspectTask> list = ardVideoInspectTaskService.selectArdVideoInspectTaskList(ardVideoInspectTask); |
| | | return getDataTable(list); |
| | | } |
| | | /** |
| | | * 导出视频巡检任务列表 |
| | | */ |
| | |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | | return success(ardVideoInspectTaskService.selectArdVideoInspectTaskById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 获取视频巡检任务详细信息(不校验权限) |
| | | */ |
| | | @GetMapping(value = "/{id}/noPerm") |
| | | public AjaxResult getInfoNoPerm(@PathVariable("id") String id) { |
| | | return success(ardVideoInspectTaskService.selectArdVideoInspectTaskById(id)); |
| | | } |
| | | /* |
| | | */ |
| | | /** |
| | |
| | | @Log(title = "视频巡检任务", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ArdVideoInspectTask ardVideoInspectTask) { |
| | | ardVideoInspectTask.setId(UUID.randomUUID().toString()); |
| | | ardVideoInspectTask.setId(IdUtils.simpleUUID()); |
| | | return toAjax(ardVideoInspectTaskService.insertArdVideoInspectTask(ardVideoInspectTask)); |
| | | } |
| | | |