Преглед изворни кода

浙江医院化验<10特殊值处理

zhoutg пре 4 година
родитељ
комит
6e785b7a5a

+ 5 - 1
src/main/java/com/diagbot/process/OtherTipProcess.java

@@ -73,7 +73,11 @@ public class OtherTipProcess {
                         if (StringUtil.isNotBlank(otherTipNeoDTO.getOtherValue())) {
                             content += otherTipNeoDTO.getOtherValue();
                         } else {
-                            content += CoreUtil.subZeroAndDot(otherTipNeoDTO.getValue().toString());
+                            if (StringUtil.isNotBlank(otherTipNeoDTO.getResult())) {
+                                content += otherTipNeoDTO.getResult();
+                            } else {
+                                content += CoreUtil.subZeroAndDot(otherTipNeoDTO.getValue().toString());
+                            }
                         }
                         List<String> msgList = (List<String>)map.get("msg");
                         if (ListUtil.isNotEmpty(msgList)) {

+ 13 - 2
src/main/java/com/diagbot/util/CoreUtil.java

@@ -325,9 +325,17 @@ public class CoreUtil {
             if (flag) {
                 if (lis.getName() == null || lis.getDetailName() == null
                         || !lis.getName().equals(lis.getDetailName())) {
-                    map.put("msg", lis.getName() + lis.getDetailName() + subZeroAndDot(String.valueOf(lis.getValue())));
+                    if (StringUtil.isNotBlank(lis.getResult())) {
+                        map.put("msg", lis.getName() + lis.getDetailName() + lis.getResult());
+                    } else {
+                        map.put("msg", lis.getName() + lis.getDetailName() + subZeroAndDot(String.valueOf(lis.getValue())));
+                    }
                 } else {
-                    map.put("msg", lis.getDetailName() + subZeroAndDot(String.valueOf(lis.getValue())));
+                    if (StringUtil.isNotBlank(lis.getResult())) {
+                        map.put("msg", lis.getDetailName() + lis.getResult());
+                    } else {
+                        map.put("msg", lis.getDetailName() + subZeroAndDot(String.valueOf(lis.getValue())));
+                    }
                 }
             }
         }
@@ -641,6 +649,9 @@ public class CoreUtil {
         if (lis == null) {
             return "";
         }
+        if (StringUtil.isNotBlank(lis.getResult())) {
+            return lis.getResult();
+        }
         return StringUtil.isNotBlank(lis.getOtherValue()) ? lis.getOtherValue() : subZeroAndDot(lis.getValue().toString());
     }