|
@@ -146,7 +146,7 @@ public class ExamController extends JeecgController<Exam, IExamService> {
|
|
|
@ApiOperation(value = "考试-通过id查询", notes = "考试-通过id查询")
|
|
|
@GetMapping(value = "/queryById")
|
|
|
public Result<Exam> queryById(@RequestParam(name = "id", required = true) String id) {
|
|
|
- Exam exam = examService.detail(id);
|
|
|
+ Exam exam = examService.getById(id);
|
|
|
if (exam == null) {
|
|
|
return Result.error("未找到对应数据");
|
|
|
}
|