| | |
| | | { |
| | | 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)); |
| | | } |
| | | |
| | | /** |
| | | * 删除视频巡检任务 |
| | |
| | | */ |
| | | public int updateArdVideoInspectTask(ArdVideoInspectTask ardVideoInspectTask); |
| | | |
| | | /** |
| | | * 只更新任务,不连带步骤 |
| | | * @param ardVideoInspectTask |
| | | * @return |
| | | */ |
| | | public int updateArdVideoInspectTaskSingle(ArdVideoInspectTask ardVideoInspectTask); |
| | | |
| | | public int updateArdVideoInspectTaskNoUpdater(ArdVideoInspectTask ardVideoInspectTask); |
| | | |
| | | /** |
| | |
| | | return ardVideoInspectTaskMapper.updateArdVideoInspectTask(ardVideoInspectTask); |
| | | } |
| | | |
| | | /** |
| | | * 修改视频巡检任务,bu更新步骤 |
| | | * |
| | | * @param ardVideoInspectTask 视频巡检任务 |
| | | * @return 结果 |
| | | */ |
| | | @Transactional |
| | | @Override |
| | | public int updateArdVideoInspectTaskSingle(ArdVideoInspectTask ardVideoInspectTask) { |
| | | ardVideoInspectTask.setUpdateBy(SecurityUtils.getUsername()); |
| | | ardVideoInspectTask.setUpdateTime(DateUtils.getNowDate()); |
| | | return ardVideoInspectTaskMapper.updateArdVideoInspectTask(ardVideoInspectTask); |
| | | } |
| | | |
| | | @Override |
| | | public int updateArdVideoInspectTaskNoUpdater(ArdVideoInspectTask ardVideoInspectTask) { |
| | | return ardVideoInspectTaskMapper.updateArdVideoInspectTask(ardVideoInspectTask); |