Commit 2cb46e2807cb8ca2c646acc59b252e7cc2298911

Authored by yangfei
1 parent 55d4611f4f

同步计算BIM值

Showing 1 changed file with 2 additions and 13 deletions

platform-job-index/src/main/java/com/lyms/platform/job/index/restore/data/ConvertHelper.java View file @ 2cb46e2
... ... @@ -1069,19 +1069,8 @@
1069 1069 antChuJson.put("hivkt", FunvCommonUtil.checkYiGan(antExChuModel.getHivkt()));
1070 1070 antChuJson.put("bChao", antExChuModel.getbChao());
1071 1071  
1072   -
1073   - if (com.lyms.platform.common.utils.StringUtils.isNotEmpty(antExChuModel.getYqWeight()) && com.lyms.platform.common.utils.StringUtils.isNotEmpty(antExChuModel.getHeight())) {
1074   - try {
1075   - //体重指数计算规则:孕前体重/身高(单位米)的平方
1076   - java.text.DecimalFormat df = new java.text.DecimalFormat("#.#");
1077   - double tzzs = Double.parseDouble(antExChuModel.getYqWeight()) / Math.pow(Double.parseDouble(antExChuModel.getHeight()) / 100, 2);
1078   - //孕前体重指数 yqWeight
1079   - antChuJson.put("tzzs", df.format(tzzs));
1080   - } catch (Exception e) {
1081   - ExceptionUtils.catchException(e, "体重指数计算错误");
1082   - }
1083   - }
1084   -
  1072 + //孕前体重指数 yqWeight
  1073 + antChuJson.put("tzzs", antExChuModel.getBaricIndex());
1085 1074  
1086 1075 /* 诊断指导 */
1087 1076 String diagnosis = "";