diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/RemoteFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/RemoteFacade.java index 57577b2..9f306d5 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/RemoteFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/RemoteFacade.java @@ -159,21 +159,24 @@ public class RemoteFacade { * 超高热:41.0℃以上; * 低于36°C 体温过低" */ - private String getTempDesc(Double d) { - if (d != null) { - if (d >= 41D) { - return "超高热"; - } else if (d >= 39D && d <= 40.9D) { - return "高热"; - } else if (d >= 38D && d <= 38.9D) { - return "中等度热"; - } else if (d >= 37.5D && d <= 37.9D) { - return "低热"; - } else if (d <= 36D) { - return "体温过低"; + private String getTempDesc(Double temp) { + String str = ""; + if (temp != null) { + if (37.5 <= temp && 37.9 >= temp) { + str = "低热"; + } else if (38.0 <= temp && 38.9 >= temp) { + str = "中等度热"; + } else if (39.0 <= temp && 40.9 >= temp) { + str = "高热"; + } else if (temp >= 41) { + str = "超高热"; + } else if (36 <= temp && 37.4 >= temp) { + str = "标准"; + } else if (36 > temp) { + str = "体温过低"; } } - return ""; + return str; } private void setTempInfo(String id, Map temp, Patients patients, String value, String desc, String ckz, ErrorPatientEnums errorPatientEnums, Date modified) {