Commit b2d6800dcbf7a41d2f1cd4d61731a32f9815003f

Authored by liquanyu
1 parent 1dbdf9551a

儿童报告

Showing 1 changed file with 8 additions and 5 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyNutritionFacade.java View file @ b2d6800
... ... @@ -326,14 +326,17 @@
326 326 {
327 327 return new BaseObjectResponse().setData(data).setErrorcode(ErrorCodeConstants.NO_DATA).setErrormsg("月龄范围没有报告");
328 328 }
  329 + String bmi = patientWeightService.getBmi(String.valueOf(model.getWeight()),String.valueOf(model.getHeight()));
  330 + String kaupEvaluate = getBabyStatus(month,baby.getSex(),model.getHeight(),model.getWeight(),bmi);
329 331  
330   - String kaupEvaluate = getBabyStatus(month,baby.getSex(),model.getHeight(),model.getWeight());
  332 + double kaul = getKal(month,model.getHeight(),model.getWeight(), baby.getSex(), kaupEvaluate);
  333 +
331 334 map.put("kaupEvaluate", kaupEvaluate);
332 335 map.put("month", month);
  336 + map.put("bmi", bmi);
  337 + map.put("kaul", kaul);
333 338 data.put("baseInfo", map);
334 339  
335   - double kaul = getKal(month,model.getHeight(),model.getWeight(), baby.getSex(), kaupEvaluate);
336   -
337 340 if (month < 12)
338 341 {
339 342 //根据喂养方式获取 合理喂养
340 343  
... ... @@ -796,12 +799,12 @@
796 799 * 12-26分为正常、消瘦、超重及以上三种情况:-2SD ≤ BMI ≤ 1SD正常;BMI<-2SD消瘦;BMI>+1SD超重
797 800 * @return
798 801 */
799   - private String getBabyStatus(int month,int sex,Double weight,Double hegiht)
  802 + private String getBabyStatus(int month,int sex,Double weight,Double hegiht,String bmi)
800 803 {
801 804 String kaupEvaluate = "";
802 805 if (weight != null && hegiht != null)
803 806 {
804   - String bmi = patientWeightService.getBmi(String.valueOf(weight),String.valueOf(hegiht));
  807 +
805 808 if (StringUtils.isNotEmpty(bmi))
806 809 {
807 810 Double bbmi = Double.parseDouble(bmi);