|
@ -743,16 +743,21 @@ public class PatientHealthIndexService extends BaseService {
|
|
DecimalFormat df1 = new DecimalFormat("###.00");
|
|
DecimalFormat df1 = new DecimalFormat("###.00");
|
|
obj.setValue3(df1.format(bmi));
|
|
obj.setValue3(df1.format(bmi));
|
|
|
|
|
|
|
|
double bmiMin = new Double("18.5");
|
|
|
|
double bmiMax = new Double("23.9");
|
|
|
|
|
|
if(patientAimSports != null && StringUtils.isNoneEmpty(patientAimSports.getCode())){
|
|
if(patientAimSports != null && StringUtils.isNoneEmpty(patientAimSports.getCode())){
|
|
|
|
bmiMin = Double.parseDouble(patientAimSports.getBmiMin());
|
|
|
|
bmiMax = Double.parseDouble(patientAimSports.getBmiMax());
|
|
|
|
}
|
|
|
|
|
|
//设置BMI值
|
|
|
|
if(bmi < Double.parseDouble(patientAimSports.getBmiMin())){
|
|
|
|
obj.setValue4("1");
|
|
|
|
}else if(bmi > Double.parseDouble(patientAimSports.getBmiMax())){
|
|
|
|
obj.setValue4("-1");
|
|
|
|
}else{
|
|
|
|
obj.setValue4("0");
|
|
|
|
}
|
|
|
|
|
|
//设置BMI值
|
|
|
|
if(bmi < bmiMin){
|
|
|
|
obj.setValue4("1");
|
|
|
|
}else if(bmi > bmiMax){
|
|
|
|
obj.setValue4("-1");
|
|
|
|
}else{
|
|
|
|
obj.setValue4("0");
|
|
}
|
|
}
|
|
|
|
|
|
break;
|
|
break;
|