Commit 2fa57b17348010b49fea42534660575ce9638426

Authored by liquanyu
1 parent 46c103b6d5

体重管理

Showing 1 changed file with 0 additions and 5 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java View file @ 2fa57b1
... ... @@ -406,11 +406,9 @@
406 406 map.put("pregnancy", pregnancy);
407 407 if(week != null && StringUtils.isNotEmpty(patientWeight.getBmi())) {
408 408 String weightType = "";
409   -
410 409 //体重正常 过轻 过重 是依据孕妇BMI指数来的。
411 410 //BMI计算方式:BMI=孕前体重(kg)/【身高(m)×身高(m)】
412 411 //对应范围:BMI<18.5对应体重过轻 BMI=18.5-24.9对应正常体重 BMI>25对应体重过重
413   -
414 412 double bmi = Double.parseDouble(patientWeight.getBmi());
415 413 if (bmi < 18.5)
416 414 {
... ... @@ -424,9 +422,6 @@
424 422 {
425 423 weightType = "过重";
426 424 }
427   - week = 12;
428   - weightType = "正常";
429   -
430 425 WeightManageConfigModel configModel = getWeightConfig(String.valueOf(week),weightType);
431 426 setInfo(week, map); // 设置孕期相关营养信息
432 427 setRecipe(map, configModel); // 设置食谱