|
@@ -263,7 +263,7 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, StudentEntity> i
|
|
|
// 保存绑定关系
|
|
|
studentPaperService.saveOrUpdateBatchByMultiId(studentPaperList);
|
|
|
// 更新考生状态
|
|
|
- updateStudentByPaper(user, id, true);
|
|
|
+ updateStudentByPaper(user, id, true,true);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -274,7 +274,7 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, StudentEntity> i
|
|
|
@Override
|
|
|
@Transactional
|
|
|
// @Lockable(name = LockType.STUDENT, key = "#id")
|
|
|
- public StudentEntity updateStudentByPaper(@NotNull User user, @NotNull Long id, @NotNull boolean updateOmrTask) {
|
|
|
+ public StudentEntity updateStudentByPaper(@NotNull User user, @NotNull Long id, @NotNull boolean updateOmrTask, boolean updateAssignedCount) {
|
|
|
StudentEntity student = baseMapper.selectById(id);
|
|
|
if (student == null) {
|
|
|
throw new ParameterException("找不到对应的考生");
|
|
@@ -380,7 +380,9 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, StudentEntity> i
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- this.updateAssignedCheckCount(student.getId(), true);
|
|
|
+ if(updateAssignedCount){
|
|
|
+ this.updateAssignedCheckCount(student.getId(), true);
|
|
|
+ }
|
|
|
return student;
|
|
|
}
|
|
|
|
|
@@ -1160,7 +1162,7 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, StudentEntity> i
|
|
|
}
|
|
|
paperService.savePaperAndPages(paper, pages);
|
|
|
}
|
|
|
- updateStudentByPaper(user, student.getId(), true);
|
|
|
+ updateStudentByPaper(user, student.getId(), true,false);
|
|
|
return AnswerRefixVo.create();
|
|
|
} finally {
|
|
|
concurrentService.getReadWriteLock(LockType.STUDENT + "-" + student.getId()).writeLock().unlock();
|
|
@@ -1195,7 +1197,7 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, StudentEntity> i
|
|
|
}
|
|
|
paperService.savePaperAndPages(paperEntity, pages);
|
|
|
}
|
|
|
- updateStudentByPaper(user, student.getId(), false);
|
|
|
+ updateStudentByPaper(user, student.getId(), false,false);
|
|
|
return UpdateTimeVo.create();
|
|
|
} finally {
|
|
|
concurrentService.getReadWriteLock(LockType.STUDENT + "-" + student.getId()).writeLock().unlock();
|
|
@@ -1251,7 +1253,7 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, StudentEntity> i
|
|
|
throw new ParameterException("未找到page信息结果");
|
|
|
}
|
|
|
paperService.savePaperAndPages(paperEntity, pages);
|
|
|
- updateStudentByPaper(user, student.getId(), false);
|
|
|
+ updateStudentByPaper(user, student.getId(), false,false);
|
|
|
return UpdateTimeVo.create();
|
|
|
} finally {
|
|
|
concurrentService.getReadWriteLock(LockType.STUDENT + "-" + student.getId()).writeLock().unlock();
|