Commit a5918624201a0d9ef85a227dd8bd0630623803d8
1 parent
cf68ee3134
Exists in
master
and in
6 other branches
儿童报告
Showing 2 changed files with 3 additions and 2 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/BasicConfigServiceTest.java
View file @
a591862
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyNutritionFacade.java
View file @
a591862
... | ... | @@ -523,10 +523,11 @@ |
523 | 523 | |
524 | 524 | if (elements.size() > 0) |
525 | 525 | { |
526 | + int tempMonth = month < 6 ? 0 : (month < 12 ? 6 : 12); | |
526 | 527 | for (String key : elements.keySet()) |
527 | 528 | { |
528 | 529 | BabyNutritionConfigModel babyNutritionConfig1 = mongoTemplate.findOne( |
529 | - Query.query(Criteria.where("type").is(5).and("monthAge").is(month).and("title").is(key)), BabyNutritionConfigModel.class); | |
530 | + Query.query(Criteria.where("type").is(5).and("monthAge").is(tempMonth).and("title").is(key)), BabyNutritionConfigModel.class); | |
530 | 531 | if (babyNutritionConfig1 == null) |
531 | 532 | { |
532 | 533 | continue; |