소스 검색

修复BMI计算公式有误的问题

DESKTOP-G6NQ3SI\dante 7 년 전
부모
커밋
d4e9715aa3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/util/CommonUtil.java

+ 1 - 1
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/util/CommonUtil.java

@ -368,7 +368,7 @@ public class CommonUtil {
        heightStr = df2.format(heightCM/100d);
        double height = Double.parseDouble(heightStr);
        double bmi = weight / height * 2;
        double bmi = weight / (height * height);
        return bmi;
    }