Commit ebd5b7a07e7b8c2b11be1591bd3838979b15435b

Authored by liquanyu
1 parent 936654b2ed

update

Showing 1 changed file with 1 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyNutritionFacade.java View file @ ebd5b7a
... ... @@ -1504,7 +1504,7 @@
1504 1504 }
1505 1505  
1506 1506 //6-12月龄膳食建议 其中可能包括医生建议和不爱吃某类食物建议
1507   - if (month > 5 && month <= 12) {
  1507 + if (month > 5 && month <= 12 && CollectionUtils.isNotEmpty(model.getDiets())) {
1508 1508 List<Map<String,Integer>> list = model.getDiets();
1509 1509 Collections.sort(list, new Comparator<Map<String, Integer>>() {
1510 1510 @Override