Commit 96034cf8187f457737daa6c976b71f112b3a5114
1 parent
4e5b1223ee
Exists in
master
and in
6 other branches
修复父亲年龄异常显示问题
Showing 1 changed file with 6 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java
View file @
96034cf
... | ... | @@ -2925,8 +2925,12 @@ |
2925 | 2925 | //父亲证件号码 |
2926 | 2926 | map.put("fcardnum", StringUtils.isNotEmpty(patients.getHcertificateNum()) ? patients.getHcertificateNum() : ""); |
2927 | 2927 | |
2928 | - | |
2929 | - map.put("fage", patients.getFmAge()); | |
2928 | + Integer fAge = null; | |
2929 | + Date husbandBirth = patients.getHusbandBirth(); | |
2930 | + if (husbandBirth != null) { | |
2931 | + fAge = DateUtil.getAge(husbandBirth); | |
2932 | + } | |
2933 | + map.put("fage", fAge); | |
2930 | 2934 | map.put("inHospitalNo", data.getInHospitalNo()); |
2931 | 2935 | String haddressRegister = CommonsHelper.getResidence(patients.getHprovinceRegisterId(), patients.getHcityRegisterId(), |
2932 | 2936 | patients.getHareaRegisterId(), patients.getHstreetRegisterId(), patients.getHaddressRegister(), basicConfigService); |