修改类型代码

newBigdata
yz 10 months ago
parent 9326e0a8e8
commit 1a16a9544e

@ -44,7 +44,7 @@ public class TeaCaseStepController {
public ResultEntity<List<SysCaseQuestionStep>> selectCaseStep(@ApiParam("案例题ID") @RequestParam String caseId) {
List<SysCaseQuestionStep> stepList = caseStepService.selectCaseStep(caseId);
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "案例步骤展示成功",stepList);
return new ResultEntity<>(HttpStatus.OK, "案例步骤展示成功",stepList);
}
//案例步骤编辑

@ -47,10 +47,10 @@ public class TeaObjectiveController {
}
//客观题删除
@GetMapping("/batchDeleteObjective")
@PostMapping("/batchDeleteObjective")
@ApiOperation("客观题批量删除")
@AnonymousAccess
public ResultEntity batchDeleteObjective(@ApiParam("客观题IDList") @RequestParam List<String> objectiveIdList,
public ResultEntity batchDeleteObjective(@ApiParam("客观题IDList") @RequestBody List<String> objectiveIdList,
@RequestParam String schoolId) {
Boolean flag = teaObjectiveService.batchDeleteObjective(objectiveIdList,schoolId);
if (flag) {

@ -10,6 +10,7 @@ import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
@ -23,7 +24,7 @@ public class TeaResourceDataController {
@Autowired
ITeaResourceDataService resourceDataService;
//数据集上传
@GetMapping("uploadResourceData")
@PostMapping("uploadResourceData")
@ApiOperation("数据集文件上传")
@AnonymousAccess
public ResultEntity uploadResourceData(@RequestParam MultipartFile file,

Loading…
Cancel
Save