|
@@ -2,6 +2,7 @@ package cn.com.qmth.examcloud.task.api.provider;
|
|
|
|
|
|
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;
|
|
|
|
|
@@ -32,7 +33,7 @@ public class ReportsComputeCloudServiceProvider extends ControllerSupport
|
|
|
@ApiOperation(value = "新增报表计算任务")
|
|
|
@PostMapping("/add")
|
|
|
@Override
|
|
|
- public AddReportsComputeResp addReportsCompute(AddReportsComputeReq req) {
|
|
|
+ public AddReportsComputeResp addReportsCompute(@RequestBody AddReportsComputeReq req) {
|
|
|
Long projectId=req.getProjectId();
|
|
|
if(projectId==null) {
|
|
|
throw new StatusException("10001", "projectId不能为空");
|