|
|
@ -1098,6 +1098,11 @@ public class AppUserServiceImpl implements AppUserService { |
|
|
@Override |
|
|
@Override |
|
|
public Result volunteerAuthenticate(TokenDto tokenDto, EpdcCompleteVolunteerInfoFormDTO formDto) { |
|
|
public Result volunteerAuthenticate(TokenDto tokenDto, EpdcCompleteVolunteerInfoFormDTO formDto) { |
|
|
String sex = IdentityNoAnalysisUtil.getSex(formDto.getIdentityNo()); // 身份证解析性别
|
|
|
String sex = IdentityNoAnalysisUtil.getSex(formDto.getIdentityNo()); // 身份证解析性别
|
|
|
|
|
|
if (sex.equals("女")){ |
|
|
|
|
|
sex = "0"; |
|
|
|
|
|
}else { |
|
|
|
|
|
sex = "1"; |
|
|
|
|
|
} |
|
|
Date birthday = IdentityNoAnalysisUtil.getBirthDay(formDto.getIdentityNo()); // 身份证解析生日
|
|
|
Date birthday = IdentityNoAnalysisUtil.getBirthDay(formDto.getIdentityNo()); // 身份证解析生日
|
|
|
formDto.setSex(sex); // 性别
|
|
|
formDto.setSex(sex); // 性别
|
|
|
formDto.setBirthday(birthday); // 生日
|
|
|
formDto.setBirthday(birthday); // 生日
|
|
|
|