Commit d050624ceb9af39bf8583876445190d24886cb4c

Authored by jiangjiazhi
1 parent 74f6ed3e1d

1

Showing 1 changed file with 16 additions and 13 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/RemoteFacade.java View file @ d050624
... ... @@ -159,21 +159,24 @@
159 159 * 超高热:41.0℃以上;
160 160 * 低于36°C 体温过低"
161 161 */
162   - private String getTempDesc(Double d) {
163   - if (d != null) {
164   - if (d >= 41D) {
165   - return "超高热";
166   - } else if (d >= 39D && d <= 40.9D) {
167   - return "高热";
168   - } else if (d >= 38D && d <= 38.9D) {
169   - return "中等度热";
170   - } else if (d >= 37.5D && d <= 37.9D) {
171   - return "低热";
172   - } else if (d <= 36D) {
173   - return "体温过低";
  162 + private String getTempDesc(Double temp) {
  163 + String str = "";
  164 + if (temp != null) {
  165 + if (37.5 <= temp && 37.9 >= temp) {
  166 + str = "低热";
  167 + } else if (38.0 <= temp && 38.9 >= temp) {
  168 + str = "中等度热";
  169 + } else if (39.0 <= temp && 40.9 >= temp) {
  170 + str = "高热";
  171 + } else if (temp >= 41) {
  172 + str = "超高热";
  173 + } else if (36 <= temp && 37.4 >= temp) {
  174 + str = "标准";
  175 + } else if (36 > temp) {
  176 + str = "体温过低";
174 177 }
175 178 }
176   - return "";
  179 + return str;
177 180 }
178 181  
179 182 private void setTempInfo(String id, Map<String, Object> temp, Patients patients, String value, String desc, String ckz, ErrorPatientEnums errorPatientEnums, Date modified) {