| | |
| | | import java.util.List; |
| | | |
| | | import com.ard.route.domain.route.ArdRouteMission; |
| | | import com.ard.route.domain.route.UpdateMission; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | * 查询航线任务列表 |
| | | */ |
| | | @ApiOperation("查询航线任务列表") |
| | | @PreAuthorize("@ss.hasPermi('route:mission:list')") |
| | | //@PreAuthorize("@ss.hasPermi('route:mission:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ArdRouteMission ardRouteMission) { |
| | | startPage(); |
| | |
| | | * 获取航线任务详细信息 |
| | | */ |
| | | @ApiOperation("获取航线任务详细信息") |
| | | @PreAuthorize("@ss.hasPermi('route:mission:query')") |
| | | //@PreAuthorize("@ss.hasPermi('route:mission:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | | return success(ardRouteMissionService.selectArdRouteMissionById(id)); |
| | |
| | | * 新增航线任务 |
| | | */ |
| | | @ApiOperation("新增航线任务") |
| | | @PreAuthorize("@ss.hasPermi('route:mission:add')") |
| | | //@PreAuthorize("@ss.hasPermi('route:mission:add')") |
| | | @Log(title = "航线任务", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ArdRouteMission ardRouteMission) { |
| | |
| | | * 修改航线任务 |
| | | */ |
| | | @ApiOperation("修改航线任务") |
| | | @PreAuthorize("@ss.hasPermi('route:mission:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('route:mission:edit')") |
| | | @Log(title = "航线任务", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ArdRouteMission ardRouteMission) { |
| | |
| | | * 删除航线任务 |
| | | */ |
| | | @ApiOperation("删除航线任务") |
| | | @PreAuthorize("@ss.hasPermi('route:mission:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('route:mission:remove')") |
| | | @Log(title = "航线任务", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) { |
| | |
| | | * 修改航线任务状态 |
| | | */ |
| | | @ApiOperation("修改航线任务状态") |
| | | @PreAuthorize("@ss.hasPermi('route:mission:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('route:mission:edit')") |
| | | @Log(title = "航线任务", businessType = BusinessType.UPDATE) |
| | | @PutMapping("updateStatus/{id}/{status}") |
| | | public AjaxResult updateExecuteStatus(@PathVariable String id, |
| | |
| | | return toAjax(ardRouteMissionService.updateArdRouteMissionStatus(id,status)); |
| | | } |
| | | |
| | | /** |
| | | * 批量修改航线任务已读状态 |
| | | */ |
| | | @ApiOperation("批量修改航线任务已读状态") |
| | | @Log(title = "航线任务", businessType = BusinessType.UPDATE) |
| | | @PutMapping("editIsRead") |
| | | public AjaxResult editIsRead(@RequestBody UpdateMission updateMission) { |
| | | return toAjax(ardRouteMissionService.updateIsRead(updateMission)); |
| | | } |
| | | |
| | | } |