feat: There is no way the,not null
This commit is contained in:
+3
-3
@@ -139,7 +139,7 @@ public class StandLawsSearchServiceImpl implements StandLawsSearchService {
|
||||
}
|
||||
if("stand".equals(attrInfoMap.get("type"))){
|
||||
// 标准全文
|
||||
fullTextSearchEO.put("title",attrInfoMap.get("numbershow")+" "+attrInfoMap.get("nameshow"));
|
||||
fullTextSearchEO.put("title",attrInfoMap.get("numbershow")+" "+attrInfoMap.getOrDefault("nameshow",""));
|
||||
|
||||
for (String key : attrInfoMap.keySet()) {
|
||||
if (null == attrInfoMap.get(key) || "".equals(attrInfoMap.get(key))){
|
||||
@@ -253,7 +253,7 @@ public class StandLawsSearchServiceImpl implements StandLawsSearchService {
|
||||
attrInfoMap.put(key, "null");
|
||||
}
|
||||
}
|
||||
fullTextSearchEO.put("title",attrInfoMap.get("lawsTypeName")+" "+attrInfoMap.get("lawsNumber")+" "+attrInfoMap.get("lawsName"));
|
||||
fullTextSearchEO.put("title",attrInfoMap.get("lawsTypeName")+" "+attrInfoMap.getOrDefault("lawsNumber","")+" "+attrInfoMap.getOrDefault("lawsName",""));
|
||||
StringBuilder contentBuilder = new StringBuilder();
|
||||
contentBuilder.append("政策分类: ").append(attrInfoMap.get("lawsTypeName")).append(" ");
|
||||
contentBuilder.append("政策编号: ").append(attrInfoMap.get("lawsNumber")).append(" ");
|
||||
@@ -321,7 +321,7 @@ public class StandLawsSearchServiceImpl implements StandLawsSearchService {
|
||||
attrInfoMap.put(key, "null");
|
||||
}
|
||||
}
|
||||
fullTextSearchEO.put("title",attrInfoMap.get("stand_code")+" "+attrInfoMap.get("stand_name"));
|
||||
fullTextSearchEO.put("title",attrInfoMap.get("stand_code")+" "+attrInfoMap.getOrDefault("stand_name",""));
|
||||
StringBuilder contentBuilder = new StringBuilder();
|
||||
contentBuilder.append("企标类别:").append(attrInfoMap.get("standSort")).append(" ");
|
||||
contentBuilder.append("标准年份:").append(attrInfoMap.get("standYear")).append(" ");
|
||||
|
||||
Reference in New Issue
Block a user