|
@@ -564,9 +564,11 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
List<HomeOperationInfo> homeOperationInfoList = new ArrayList<>();
|
|
List<HomeOperationInfo> homeOperationInfoList = new ArrayList<>();
|
|
if (homePage != null) {
|
|
if (homePage != null) {
|
|
if(StringUtils.isNotEmpty(homePage.getAge())){
|
|
if(StringUtils.isNotEmpty(homePage.getAge())){
|
|
- //兼容数据库出现 .03岁异常数据
|
|
|
|
|
|
+ //兼容数据库出现 .03岁数据 作后期判断处理
|
|
|
|
+ String ageData = homePage.getAge();
|
|
if(homePage.getAge().contains(".")){
|
|
if(homePage.getAge().contains(".")){
|
|
String ageString = homePage.getAge().split("\\.")[0];
|
|
String ageString = homePage.getAge().split("\\.")[0];
|
|
|
|
+ //该年龄作为判断使用
|
|
homePage.setAge(StringUtils.isEmpty(ageString)==true? "0"+homePage.getAge():homePage.getAge());
|
|
homePage.setAge(StringUtils.isEmpty(ageString)==true? "0"+homePage.getAge():homePage.getAge());
|
|
}
|
|
}
|
|
//根据时间单位对模版年龄进行区分
|
|
//根据时间单位对模版年龄进行区分
|
|
@@ -592,7 +594,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
homePage.setNewbornMonth("-");
|
|
homePage.setNewbornMonth("-");
|
|
homePage.setNewbornDay("-");
|
|
homePage.setNewbornDay("-");
|
|
}
|
|
}
|
|
- homePage.setAge(homePage.getAge()+(StringUtils.isEmpty(homePage.getAgeUnit())==true ? "":homePage.getAgeUnit()));
|
|
|
|
|
|
+ homePage.setAge(ageData+(StringUtils.isEmpty(homePage.getAgeUnit())==true ? "":homePage.getAgeUnit()));
|
|
|
|
|
|
}
|
|
}
|
|
//去掉年龄单位
|
|
//去掉年龄单位
|