|
@@ -54,6 +54,7 @@ import cn.com.qmth.stmms.biz.utils.PictureTag;
|
|
|
import cn.com.qmth.stmms.biz.utils.ScoreItem;
|
|
|
import cn.com.qmth.stmms.common.enums.ExamSubjectStatus;
|
|
|
import cn.com.qmth.stmms.common.enums.Role;
|
|
|
+import cn.com.qmth.stmms.common.enums.ScanCheck;
|
|
|
import cn.com.qmth.stmms.common.enums.UserType;
|
|
|
import cn.com.qmth.stmms.common.utils.Md5EncryptUtils;
|
|
|
|
|
@@ -438,14 +439,21 @@ public class ExamStudentServiceImpl extends BaseQueryService<ExamStudent> implem
|
|
|
|
|
|
@Override
|
|
|
@Transactional
|
|
|
- public void updateManualAbsent(int examId, String examNumber, boolean manualAbsent) {
|
|
|
- studentDao.updateManualAbsent(examId, examNumber, manualAbsent);
|
|
|
+ public void updateManualAbsent(int examId, String examNumber, boolean manualAbsent,ScanCheck scanCheck) {
|
|
|
+ studentDao.updateManualAbsent(examId, examNumber, manualAbsent,scanCheck);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@Transactional
|
|
|
public void clearManualAbsent(int examId) {
|
|
|
- studentDao.clearManualAbsent(examId);
|
|
|
+ List<ExamStudent> list = studentDao.findByExamIdAndManualAbsent(examId,true);
|
|
|
+ for (ExamStudent student : list) {
|
|
|
+ if(student.getScanCheck().equals(ScanCheck.IGNORE)){
|
|
|
+ updateManualAbsent(examId,student.getExamNumber(),false,ScanCheck.TODO);
|
|
|
+ }else{
|
|
|
+ updateManualAbsent(student.getId(),false);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|