1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| package com.dsh.account.util;
|
|
| public class BMIBodyUtil {
|
| public static String getBodyStatus(double bmi) {
| if (bmi < 18.5) {
| return "偏瘦";
| } else if (bmi >= 18.5 && bmi < 24) {
| return "正常";
| } else if (bmi >= 24 && bmi < 28) {
| return "偏胖";
| } else if (bmi >= 28 && bmi < 32) {
| return "肥胖";
| } else {
| return "非常肥胖";
| }
| }
|
| }
|
|