| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * 视频巡检步骤Controller |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-05-30 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/inspect/step") |
| | | public class ArdVideoInspectTaskStepController extends BaseController |
| | | { |
| | | public class ArdVideoInspectTaskStepController extends BaseController { |
| | | @Autowired |
| | | private IArdVideoInspectTaskStepService ardVideoInspectTaskStepService; |
| | | |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('inspect:step:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ArdVideoInspectTaskStep ardVideoInspectTaskStep) |
| | | { |
| | | public TableDataInfo list(ArdVideoInspectTaskStep ardVideoInspectTaskStep) { |
| | | startPage(); |
| | | List<ArdVideoInspectTaskStep> list = ardVideoInspectTaskStepService.selectArdVideoInspectTaskStepList(ardVideoInspectTaskStep); |
| | | return getDataTable(list); |
| | |
| | | @PreAuthorize("@ss.hasPermi('inspect:step:export')") |
| | | @Log(title = "视频巡检步骤", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ArdVideoInspectTaskStep ardVideoInspectTaskStep) |
| | | { |
| | | public void export(HttpServletResponse response, ArdVideoInspectTaskStep ardVideoInspectTaskStep) { |
| | | List<ArdVideoInspectTaskStep> list = ardVideoInspectTaskStepService.selectArdVideoInspectTaskStepList(ardVideoInspectTaskStep); |
| | | ExcelUtil<ArdVideoInspectTaskStep> util = new ExcelUtil<ArdVideoInspectTaskStep>(ArdVideoInspectTaskStep.class); |
| | | util.exportExcel(response, list, "视频巡检步骤数据"); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('inspect:step:query')") |
| | | @GetMapping(value = "/{taskId}") |
| | | public AjaxResult getInfo(@PathVariable("taskId") String taskId) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("taskId") String taskId) { |
| | | return success(ardVideoInspectTaskStepService.selectArdVideoInspectTaskStepByTaskId(taskId)); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('inspect:step:add')") |
| | | @Log(title = "视频巡检步骤", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ArdVideoInspectTaskStep ardVideoInspectTaskStep) |
| | | { |
| | | public AjaxResult add(@RequestBody ArdVideoInspectTaskStep ardVideoInspectTaskStep) { |
| | | return toAjax(ardVideoInspectTaskStepService.insertArdVideoInspectTaskStep(ardVideoInspectTaskStep)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('inspect:step:edit')") |
| | | @Log(title = "视频巡检步骤", businessType = BusinessType.UPDATE) |
| | | @GetMapping("/selectByTaskId") |
| | | public List selectByTaskId(String taskId) { |
| | | return ardVideoInspectTaskStepService.selectByTaskId(taskId); |
| | | } |
| | | |
| | | /** |
| | | * 修改视频巡检步骤 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('inspect:step:edit')") |
| | | @Log(title = "视频巡检步骤", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ArdVideoInspectTaskStep ardVideoInspectTaskStep) |
| | | { |
| | | public AjaxResult edit(@RequestBody ArdVideoInspectTaskStep ardVideoInspectTaskStep) { |
| | | return toAjax(ardVideoInspectTaskStepService.updateArdVideoInspectTaskStep(ardVideoInspectTaskStep)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('inspect:step:remove')") |
| | | @Log(title = "视频巡检步骤", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{taskIds}") |
| | | public AjaxResult remove(@PathVariable String[] taskIds) |
| | | { |
| | | @DeleteMapping("/{taskIds}") |
| | | public AjaxResult remove(@PathVariable String[] taskIds) { |
| | | return toAjax(ardVideoInspectTaskStepService.deleteArdVideoInspectTaskStepByTaskIds(taskIds)); |
| | | } |
| | | } |