update 法规字典翻译
This commit is contained in:
+2
-10
@@ -163,12 +163,11 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
if (!Objects.isNull(entryMap.getValue())) {
|
||||
value = (String) entryMap.getValue();
|
||||
}
|
||||
resultMap.put(key, value);
|
||||
// 如果value不为null和"",对返回结果做处理
|
||||
if (StringUtils.isNotBlank(value)) {
|
||||
// 对返回的字段值做处理
|
||||
processResultFieldValue(key, value, fieldList, resultMap, dictItemList);
|
||||
} else {
|
||||
resultMap.put(key, value);
|
||||
}
|
||||
}
|
||||
return resultMap;
|
||||
@@ -200,12 +199,11 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
if (!Objects.isNull(entryMap.getValue())) {
|
||||
value = (String) entryMap.getValue();
|
||||
}
|
||||
resultMap.put(key, value);
|
||||
// 如果value不为null和"",对返回结果做处理
|
||||
if (StringUtils.isNotBlank(value)) {
|
||||
// 对返回的字段值做处理
|
||||
processResultFieldValue(key, value, fieldList, resultMap, dictItemList);
|
||||
} else {
|
||||
resultMap.put(key, value);
|
||||
}
|
||||
}
|
||||
resultMapList.add(resultMap);
|
||||
@@ -220,10 +218,6 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
**/
|
||||
private void processResultFieldValue(String key, String value, List<LawsTag> fieldList,
|
||||
Map<String, Object> resultMap, List<SysDictItem> dictItemList) {
|
||||
if ("id".equals(key)) {
|
||||
resultMap.put(key, value);
|
||||
return;
|
||||
}
|
||||
for (LawsTag lawsTag : fieldList) {
|
||||
if (key.equals(lawsTag.getDbFieldName())) {
|
||||
List<String> valueList = Arrays.asList(value.split(","));
|
||||
@@ -260,8 +254,6 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
&& valueList.contains(dictItem.getItemValue()))
|
||||
.map(SysDictItem::getItemText).collect(Collectors.toList());
|
||||
resultMap.put(key + FieldCommon._DICT_TEXT, StringUtils.join(nameList, ","));
|
||||
} else {
|
||||
resultMap.put(key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user