|
@@ -1012,14 +1012,15 @@ public interface YiZhuLuRuDao {
|
|
|
default XinZhenYiZhu queryPatientInfo(String patNo,
|
|
|
Integer times) {
|
|
|
XinZhenYiZhu xinZhenYiZhu = this.sqlQueryPatientInfo(patNo, times);
|
|
|
- Date birthDate = xinZhenYiZhu.getBirthDate();
|
|
|
- if (birthDate != null) {
|
|
|
- try {
|
|
|
- xinZhenYiZhu.setAge(DateUtil.calculateAge(birthDate, xinZhenYiZhu.getAdmissDate()));
|
|
|
- } catch (Exception ignore) {
|
|
|
+ if(xinZhenYiZhu != null) {
|
|
|
+ Date birthDate = xinZhenYiZhu.getBirthDate();
|
|
|
+ if (birthDate != null) {
|
|
|
+ try {
|
|
|
+ xinZhenYiZhu.setAge(DateUtil.calculateAge(birthDate, xinZhenYiZhu.getAdmissDate()));
|
|
|
+ } catch (Exception ignore) {
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return xinZhenYiZhu;
|
|
|
}
|
|
|
|