WANG 6 роки тому
батько
коміт
42bff6bda1

+ 1 - 5
examcloud-core-examwork-service/src/main/java/cn/com/qmth/examcloud/core/examwork/service/impl/ExamStudentServiceImpl.java

@@ -3,8 +3,6 @@ package cn.com.qmth.examcloud.core.examwork.service.impl;
 import java.util.List;
 
 import org.apache.commons.lang3.StringUtils;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
@@ -45,8 +43,6 @@ import cn.com.qmth.examcloud.task.api.request.SyncExamStudentReq;
 @Service
 public class ExamStudentServiceImpl implements ExamStudentService {
 
-	protected static final Logger log = LoggerFactory.getLogger(ExamStudentServiceImpl.class);
-
 	@Autowired
 	ExamStudentRepo examStudentRepo;
 
@@ -296,7 +292,7 @@ public class ExamStudentServiceImpl implements ExamStudentService {
 		examStudent.setExamSite(examStudentInfo.getExamSite());
 		examStudent.setRemark(examStudentInfo.getRemark());
 
-		ExamStudentEntity saved = examStudentRepo.saveAndFlush(examStudent);
+		ExamStudentEntity saved = examStudentRepo.save(examStudent);
 
 		ExamCourseRelationEntity relation = new ExamCourseRelationEntity();
 		relation.setExamId(saved.getExamId());