Commit 1301c9d5a0f022ea9d87aa4076c1006704c02457

Authored by liquanyu
1 parent e48099bfd3

威海体重

Showing 1 changed file with 8 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java View file @ 1301c9d
... ... @@ -1011,6 +1011,10 @@
1011 1011 {
1012 1012 level = 1;
1013 1013 }
  1014 + else if ((Double.parseDouble(array[0])-cz) >= add && Double.parseDouble(array[0])/cz > prcent)
  1015 + {
  1016 + level = -1;
  1017 + }
1014 1018 }
1015 1019 return level;
1016 1020 }
... ... @@ -1032,6 +1036,10 @@
1032 1036 if ((cz-Double.parseDouble(array[1])) >= add && cz/Double.parseDouble(array[1]) > prcent)
1033 1037 {
1034 1038 level = 1;
  1039 + }
  1040 + else if ((Double.parseDouble(array[0])-cz) >= add && Double.parseDouble(array[0])/cz > prcent)
  1041 + {
  1042 + level = -1;
1035 1043 }
1036 1044 }
1037 1045 return level;