Explorar o código

修改lis数值转换代码

hujing %!s(int64=5) %!d(string=hai) anos
pai
achega
5f5e440283
Modificáronse 1 ficheiros con 12 adicións e 12 borrados
  1. 12 12
      rule/src/main/java/org/diagbot/rule/lis/LisApplication.java

+ 12 - 12
rule/src/main/java/org/diagbot/rule/lis/LisApplication.java

@@ -20,7 +20,7 @@ public class LisApplication {
     private static String down = "降低";
     private static String normal = "正常";
 
-    public void lisConvert(List<PreResult> preResultList, SearchData searchData) {
+    public void lisConvertToInputs(List<PreResult> preResultList, SearchData searchData) {
         if (preResultList != null) {
             for (PreResult result : preResultList) {
                 String covertValue = "";
@@ -37,21 +37,21 @@ public class LisApplication {
                                 && compareMin(result.getValue(), result.getMinValue())) {
                             covertValue = result.getUniqueName() + down;
                         }
-                    } else if (!StringUtils.isEmpty(result.getOtherValue())){
+                    } else if (!StringUtils.isEmpty(result.getOtherValue())) {
                         //otherValue是文本类型则直接与UniqueName拼接
                         covertValue = result.getUniqueName() + result.getOtherValue();
                     }
-                }
 
-                Map<String, String> map = new HashMap<>();
-                map.put("featureType", Constants.feature_type_lis);
-                map.put("featureName", covertValue);
-                map.put("property", Constants.word_property_LIS_Result);
-                map.put("concept", covertValue);
-                //全是有
-                map.put("negative", Constants.default_negative);
-                if (searchData.getInputs().get(map.get("featureName")) == null) {
-                    searchData.getInputs().put(map.get("featureName"), map);
+                    Map<String, String> map = new HashMap<>();
+                    map.put("featureType", Constants.feature_type_lis);
+                    map.put("featureName", covertValue);
+                    map.put("property", Constants.word_property_LIS_Result);
+                    map.put("concept", covertValue);
+                    //全是有
+                    map.put("negative", Constants.default_negative);
+                    if (searchData.getInputs().get(map.get("featureName")) == null) {
+                        searchData.getInputs().put(map.get("featureName"), map);
+                    }
                 }
             }
         }