|
@@ -60,6 +60,7 @@ import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.text.MessageFormat;
|
|
import java.text.MessageFormat;
|
|
|
|
+import java.text.ParseException;
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
import java.time.format.DateTimeFormatter;
|
|
import java.time.format.DateTimeFormatter;
|
|
@@ -463,6 +464,13 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, Student> impleme
|
|
if (!subjectNames.contains(student.getSubjectName())) {
|
|
if (!subjectNames.contains(student.getSubjectName())) {
|
|
errMsg.add(String.format("第%s行声部不支持", msgRowNo));
|
|
errMsg.add(String.format("第%s行声部不支持", msgRowNo));
|
|
}
|
|
}
|
|
|
|
+ try {
|
|
|
|
+ if(!StringUtils.isEmpty(student.getBirthday())){
|
|
|
|
+ LocalDate.parse(student.getBirthday(), DateTimeFormatter.ISO_LOCAL_DATE);
|
|
|
|
+ }
|
|
|
|
+ }catch (Exception e) {
|
|
|
|
+ errMsg.add(String.format("第%s行生日格式错误", msgRowNo));
|
|
|
|
+ }
|
|
|
|
|
|
if (errMsg.size() > 100) {
|
|
if (errMsg.size() > 100) {
|
|
break;
|
|
break;
|