|
@@ -73,8 +73,8 @@ public class TaskController extends BaseController {
|
|
*/
|
|
*/
|
|
// @PreAuthorize("@ss.hasPermi('sim:task:add')")
|
|
// @PreAuthorize("@ss.hasPermi('sim:task:add')")
|
|
@Log(title = "任务", businessType = BusinessType.INSERT)
|
|
@Log(title = "任务", businessType = BusinessType.INSERT)
|
|
- @PostMapping
|
|
|
|
- @ApiOperation("新增任务")
|
|
|
|
|
|
+ // @PostMapping
|
|
|
|
+ // @ApiOperation("新增任务")
|
|
public AjaxResult add(@RequestBody Task task) {
|
|
public AjaxResult add(@RequestBody Task task) {
|
|
return toAjax(taskService.insertTask(task));
|
|
return toAjax(taskService.insertTask(task));
|
|
}
|
|
}
|
|
@@ -95,6 +95,7 @@ public class TaskController extends BaseController {
|
|
// @PreAuthorize("@ss.hasPermi('sim:task:remove')")
|
|
// @PreAuthorize("@ss.hasPermi('sim:task:remove')")
|
|
@Log(title = "任务", businessType = BusinessType.DELETE)
|
|
@Log(title = "任务", businessType = BusinessType.DELETE)
|
|
@DeleteMapping("/{taskIds}")
|
|
@DeleteMapping("/{taskIds}")
|
|
|
|
+ @ApiOperation("删除任务")
|
|
public AjaxResult remove(@PathVariable Long[] taskIds) {
|
|
public AjaxResult remove(@PathVariable Long[] taskIds) {
|
|
return toAjax(taskService.deleteTaskByTaskIds(taskIds));
|
|
return toAjax(taskService.deleteTaskByTaskIds(taskIds));
|
|
}
|
|
}
|
|
@@ -108,6 +109,6 @@ public class TaskController extends BaseController {
|
|
@GetMapping("/getInfoForAdd/{simType}")
|
|
@GetMapping("/getInfoForAdd/{simType}")
|
|
@ApiOperation("获取空白的任务详细信息,为了新建任务")
|
|
@ApiOperation("获取空白的任务详细信息,为了新建任务")
|
|
public AjaxResult getInfoForAdd(@PathVariable("simType") String simType) {
|
|
public AjaxResult getInfoForAdd(@PathVariable("simType") String simType) {
|
|
- return success(taskService.selectNewTaskViaSimType(simType));
|
|
|
|
|
|
+ return taskService.getInfoForAdd(simType);
|
|
}
|
|
}
|
|
}
|
|
}
|