Commit 8f96c40036cf740234b8da7276c390e71e4db191

Authored by litao@lymsh.com
1 parent 7f2742fb91

改血压的判断规则

Showing 2 changed files with 9 additions and 6 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/RemoteFacade.java View file @ 8f96c40
... ... @@ -157,12 +157,14 @@
157 157 temp.put("modified", modified);
158 158 }
159 159  
  160 +
  161 + /** 产品改了 说以收缩压为主 */
160 162 private String getBpStatus(String ssy, String szy) {
161 163 String status = null;
162   - if(StringUtils.isNotEmpty(ssy) && StringUtils.isNotEmpty(szy)) {
163   - if(Double.parseDouble(ssy) < 90 || Double.parseDouble(szy) < 60) {
  164 + if(StringUtils.isNotEmpty(ssy)) {
  165 + if(Double.parseDouble(ssy) < 90) {
164 166 status = "低血压";
165   - } else if(Double.parseDouble(ssy) > 140 || Double.parseDouble(szy) < 90) {
  167 + } else if(Double.parseDouble(ssy) > 140) {
166 168 status = "高血压";
167 169 } else {
168 170 status = "正常";
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodPressureServiceImpl.java View file @ 8f96c40
... ... @@ -229,12 +229,13 @@
229 229 return RespBuilder.buildSuccess();
230 230 }
231 231  
  232 + /** 产品改了 说以收缩压为主 */
232 233 private String getPulseStatus(String ssy, String szy) {
233 234 String status = "";
234   - if(StringUtils.isNotEmpty(ssy) && StringUtils.isNotEmpty(szy)) {
235   - if(Double.parseDouble(ssy) < 90 || Double.parseDouble(szy) < 60) {
  235 + if(StringUtils.isNotEmpty(ssy)) {
  236 + if(Double.parseDouble(ssy) < 90) {
236 237 status = "低血压";
237   - } else if(Double.parseDouble(ssy) > 140 || Double.parseDouble(szy) < 90) {
  238 + } else if(Double.parseDouble(ssy) > 140) {
238 239 status = "高血压";
239 240 } else {
240 241 status = "正常";