Commit 89487df76a0a0dcffebf7de32e277a4679329c62
1 parent
4de2f86e47
Exists in
master
and in
6 other branches
体重管理
Showing 1 changed file with 10 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
89487df
| ... | ... | @@ -453,7 +453,7 @@ |
| 453 | 453 | if (week > 5 && week < 41) |
| 454 | 454 | { |
| 455 | 455 | double bmi = Double.parseDouble(patientWeight.getBmi()); |
| 456 | - Map<String,String> kmap = getComputeKul(Double.parseDouble(patientWeight.getBeforeHeight()), | |
| 456 | + Map<String,String> kmap = getComputeKul(Double.parseDouble(patientWeight.getBeforeWeight()), | |
| 457 | 457 | Double.parseDouble(patientWeight.getNowWeight()), week, bmi); |
| 458 | 458 | if (map == null || map.size() == 0) |
| 459 | 459 | { |
| ... | ... | @@ -1305,6 +1305,15 @@ |
| 1305 | 1305 | if (k2 > 50) |
| 1306 | 1306 | { |
| 1307 | 1307 | k1+=100; |
| 1308 | + } | |
| 1309 | + | |
| 1310 | + if (k1 < 1000) | |
| 1311 | + { | |
| 1312 | + k1 = 1000; | |
| 1313 | + } | |
| 1314 | + else if (k1 > 3300) | |
| 1315 | + { | |
| 1316 | + k1 = 3300; | |
| 1308 | 1317 | } |
| 1309 | 1318 | WeightConfigModel weightConfigModel = mongoTemplate.findOne(Query.query(Criteria.where("northSouth").is(northSouth).and("kcal").is(k1)), |
| 1310 | 1319 | WeightConfigModel.class); |