|
@@ -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);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|