|
@@ -111,6 +111,10 @@ public class ExamStudentCloudServiceProvider extends ControllerSupport implement
|
|
@Override
|
|
@Override
|
|
public SaveExamStudentResp saveExamStudent(@RequestBody SaveExamStudentReq req) {
|
|
public SaveExamStudentResp saveExamStudent(@RequestBody SaveExamStudentReq req) {
|
|
trim(req);
|
|
trim(req);
|
|
|
|
+
|
|
|
|
+ if (req.getExamId() == null) {
|
|
|
|
+ throw new StatusException("考试ID不能为空");
|
|
|
|
+ }
|
|
ExamEntity exam = GlobalHelper.getEntity(examRepo, req.getExamId(), ExamEntity.class);
|
|
ExamEntity exam = GlobalHelper.getEntity(examRepo, req.getExamId(), ExamEntity.class);
|
|
if (exam == null) {
|
|
if (exam == null) {
|
|
throw new StatusException("未找到考试");
|
|
throw new StatusException("未找到考试");
|