|
@@ -8,6 +8,7 @@ import com.xjrsoft.common.enums.ArchivesStatusEnum;
|
|
import com.xjrsoft.common.enums.DeleteMark;
|
|
import com.xjrsoft.common.enums.DeleteMark;
|
|
import com.xjrsoft.common.enums.EnabledMark;
|
|
import com.xjrsoft.common.enums.EnabledMark;
|
|
import com.xjrsoft.common.enums.RoleEnum;
|
|
import com.xjrsoft.common.enums.RoleEnum;
|
|
|
|
+import com.xjrsoft.common.exception.MyException;
|
|
import com.xjrsoft.config.CommonPropertiesConfig;
|
|
import com.xjrsoft.config.CommonPropertiesConfig;
|
|
import com.xjrsoft.module.banding.dto.BandingTaskClassStudentPageDto;
|
|
import com.xjrsoft.module.banding.dto.BandingTaskClassStudentPageDto;
|
|
import com.xjrsoft.module.banding.dto.ChangeClassDto;
|
|
import com.xjrsoft.module.banding.dto.ChangeClassDto;
|
|
@@ -269,7 +270,12 @@ public class BandingTaskClassStudentServiceImpl extends MPJBaseServiceImpl<Bandi
|
|
|
|
|
|
// 将字符串解析为LocalDate对象
|
|
// 将字符串解析为LocalDate对象
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
|
|
- return LocalDate.parse(birthdayString, formatter);
|
|
|
|
|
|
+ try {
|
|
|
|
+ LocalDate parse = LocalDate.parse(birthdayString, formatter);
|
|
|
|
+ return parse;
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ throw new MyException("身份证号填写错误,无法提取出生日期");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|