瀏覽代碼

模版处理

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());