Selaa lähdekoodia

修复信息采集处方生成图片年龄信息获取异常的问题

cgp 1 päivä sitten
vanhempi
commit
3c74023a36

+ 2 - 1
fs-service/src/main/java/com/fs/hisStore/service/impl/FsUserInformationCollectionServiceImpl.java

@@ -476,7 +476,8 @@ public class FsUserInformationCollectionServiceImpl extends ServiceImpl<FsUserIn
             SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
             birthday = sdf.format(param.getPatientInfo().getBirthday());
             fsPrescribe.setPatientBirthday(birthday);
-            fsPrescribe.setPatientAge(String.valueOf(calculateAge(birthday)));
+            //因为患者信息的身份证号可能是默认的会有问题,这里就只能是用户信息采集的年龄了
+            fsPrescribe.setPatientAge(String.valueOf(fsUserInformationCollection.getAge()));
         }
         if (param.getPatientInfo().getWeight()!=null){
             fsPrescribe.setWeight(String.valueOf(param.getPatientInfo().getWeight()));