|
@ -223,11 +223,11 @@ public class ResiServiceImpl implements ResiService, ResultDataResolver { |
|
|
String day = matcher.group(3); |
|
|
String day = matcher.group(3); |
|
|
LocalDate birthdayLocalDate = LocalDate.of(Integer.parseInt(year), Integer.parseInt(month), Integer.parseInt(day)); |
|
|
LocalDate birthdayLocalDate = LocalDate.of(Integer.parseInt(year), Integer.parseInt(month), Integer.parseInt(day)); |
|
|
age = Period.between(birthdayLocalDate, LocalDate.now()).getYears(); |
|
|
age = Period.between(birthdayLocalDate, LocalDate.now()).getYears(); |
|
|
|
|
|
r.setAge(age); |
|
|
} |
|
|
} |
|
|
} catch (DateTimeException e) { |
|
|
} catch (DateTimeException e) { |
|
|
throw new EpmetException("居民生日计算错误"); |
|
|
logger.error(r.getIcResiUserId() + "居民生日计算错误"); |
|
|
} |
|
|
} |
|
|
r.setAge(age); |
|
|
|
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|