|
|
@@ -11,10 +11,7 @@ import com.tzld.piaoquan.sde.service.ExecutionTaskService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
* @author supeng
|
|
|
@@ -44,4 +41,11 @@ public class ExecutionTaskController {
|
|
|
public CommonResponse<SdExecutionTask> get(@RequestBody CommonRequest<ExecutionTaskGetParam> request) {
|
|
|
return CommonResponse.create(executionTaskService.get(request));
|
|
|
}
|
|
|
+
|
|
|
+ @Operation(summary = "批量创建解构任务")
|
|
|
+ @GetMapping("/batchCreateDeconstructTask")
|
|
|
+ public CommonResponse<Void> batchCreateDeconstructTask(@RequestParam(value = "dtList") String dtList, @RequestParam(value = "contentScope") String contentScope) {
|
|
|
+ executionTaskService.batchCreateDeconstructTask(dtList, contentScope);
|
|
|
+ return CommonResponse.create();
|
|
|
+ }
|
|
|
}
|