xiatian 6 年 前
コミット
3f7a8165ea

+ 2 - 1
examcloud-task-api-provider/src/main/java/cn/com/qmth/examcloud/task/api/provider/ReportsComputeCloudServiceProvider.java

@@ -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不能为空");