Commit d202bfd7251cb91a05dba0b9c8047a0bb8a1d102
1 parent
4697edc660
Exists in
master
and in
6 other branches
修改体重营养报告
Showing 1 changed file with 11 additions and 13 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
d202bfd
| ... | ... | @@ -448,21 +448,19 @@ |
| 448 | 448 | double bmi = Double.parseDouble(patientWeight.getBmi()); |
| 449 | 449 | Map<String, String> kmap = getComputeKul(Double.parseDouble(patientWeight.getBeforeWeight()), |
| 450 | 450 | Double.parseDouble(patientWeight.getNowWeight()), week, bmi, patientWeight.getBregmatic()); |
| 451 | - if (map == null || map.size() == 0) { | |
| 452 | - return null; | |
| 453 | - } | |
| 451 | + | |
| 454 | 452 | if (1 == type) { |
| 455 | 453 | setGuide(week, map); // 设置指南 |
| 456 | - } | |
| 457 | - | |
| 458 | - WeightConfigModel configModel = getWeightConfigBykcal(kmap, ReportConfig.getNSArea(basicConfig.getName())); | |
| 459 | - if (configModel != null) { | |
| 460 | - if (2 == type) { | |
| 461 | - setRecipe(map, configModel, week, kmap); // 设置食谱 | |
| 462 | - } else if (3 == type) { | |
| 463 | - setSuggest(map, configModel, week); // 设置建议 | |
| 464 | - } else if (4 == type) { | |
| 465 | - setCookbook(map, configModel); // 设置菜谱 | |
| 454 | + }else { | |
| 455 | + WeightConfigModel configModel = getWeightConfigBykcal(kmap, ReportConfig.getNSArea(basicConfig.getName())); | |
| 456 | + if (configModel != null) { | |
| 457 | + if (2 == type) { | |
| 458 | + setRecipe(map, configModel, week, kmap); // 设置食谱 | |
| 459 | + } else if (3 == type) { | |
| 460 | + setSuggest(map, configModel, week); // 设置建议 | |
| 461 | + } else if (4 == type) { | |
| 462 | + setCookbook(map, configModel); // 设置菜谱 | |
| 463 | + } | |
| 466 | 464 | } |
| 467 | 465 | } |
| 468 | 466 | } |