|
@@ -129,7 +129,9 @@ public class CollectApi {
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH-mm-ss");
|
|
|
for(CollectStuDTO dto : uploadStudentArray){
|
|
|
Student student = studentRepo.findByWorkIdAndExamNumber(activeWork.getId(),dto.getExamNumber());
|
|
|
- dataUploadService.savePaper(student,subject,dto.isManual());
|
|
|
+ if(!dto.isAbsent()){
|
|
|
+ dataUploadService.savePaper(student,subject,dto.isManual());
|
|
|
+ }
|
|
|
dto.setUploadTime(sdf.format(new Date()));
|
|
|
list.add(dto);
|
|
|
}
|