소스 검색

模版处理

chengyao 4 년 전
부모
커밋
360de8342b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/main/java/com/diagbot/facade/BehospitalInfoFacade.java

+ 1 - 0
src/main/java/com/diagbot/facade/BehospitalInfoFacade.java

@@ -586,6 +586,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
                 }else if("天".equals(ageUnitString)||"日".equals(ageUnitString)){
                     if(StringUtils.isEmpty(homePage.getNewbornMonth())&&StringUtils.isEmpty(homePage.getNewbornDay())){
                         homePage.setNewbornDay(homePage.getAge());
+                        homePage.setNewbornMonth(StringUtils.isEmpty(homePage.getNewbornMonth())==true ? "0":homePage.getNewbornMonth());
                     }else{
                         homePage.setNewbornMonth(StringUtils.isEmpty(homePage.getNewbornMonth())==true ? "0":homePage.getNewbornMonth());
                         homePage.setNewbornDay(StringUtils.isEmpty(homePage.getNewbornDay())==true ? "0" : homePage.getNewbornDay());