|
@@ -563,10 +563,10 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
List<HomeDiagnoseInfo> homePageList = new ArrayList<>();
|
|
List<HomeDiagnoseInfo> homePageList = new ArrayList<>();
|
|
List<HomeOperationInfo> homeOperationInfoList = new ArrayList<>();
|
|
List<HomeOperationInfo> homeOperationInfoList = new ArrayList<>();
|
|
if (homePage != null) {
|
|
if (homePage != null) {
|
|
|
|
+ String ageData = homePage.getAge();
|
|
try {
|
|
try {
|
|
if(StringUtils.isNotEmpty(homePage.getAge())&&"-".equals(homePage.getAge())==false&&"—".equals(homePage.getAge())==false){
|
|
if(StringUtils.isNotEmpty(homePage.getAge())&&"-".equals(homePage.getAge())==false&&"—".equals(homePage.getAge())==false){
|
|
//兼容数据库出现 .03岁数据 作后期判断处理
|
|
//兼容数据库出现 .03岁数据 作后期判断处理
|
|
- String ageData = homePage.getAge();
|
|
|
|
String ageUnitString = homePage.getAgeUnit() == null ? "" : homePage.getAgeUnit();
|
|
String ageUnitString = homePage.getAgeUnit() == null ? "" : homePage.getAgeUnit();
|
|
if(homePage.getAge().contains(".")&&"岁".equals(ageUnitString)){
|
|
if(homePage.getAge().contains(".")&&"岁".equals(ageUnitString)){
|
|
String ageString = homePage.getAge().split("\\.")[0];
|
|
String ageString = homePage.getAge().split("\\.")[0];
|
|
@@ -600,14 +600,14 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
homePage.setNewbornMonth("-");
|
|
homePage.setNewbornMonth("-");
|
|
homePage.setNewbornDay("-");
|
|
homePage.setNewbornDay("-");
|
|
}
|
|
}
|
|
- homePage.setAge(ageData+(StringUtils.isEmpty(homePage.getAgeUnit())==true ? "":homePage.getAgeUnit()));
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
System.out.println("年龄解析出错" + e);
|
|
System.out.println("年龄解析出错" + e);
|
|
}
|
|
}
|
|
|
|
+ homePage.setAge(ageData+(StringUtils.isEmpty(homePage.getAgeUnit())==true ? "":homePage.getAgeUnit()));
|
|
//去掉年龄单位
|
|
//去掉年龄单位
|
|
homePage.setAgeUnit("");
|
|
homePage.setAgeUnit("");
|
|
|
|
+
|
|
// 获取首页出院诊断、病理诊断
|
|
// 获取首页出院诊断、病理诊断
|
|
homePageList = homeDiagnoseInfoFacade.list(new QueryWrapper<HomeDiagnoseInfo>()
|
|
homePageList = homeDiagnoseInfoFacade.list(new QueryWrapper<HomeDiagnoseInfo>()
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|