根据标准id查询分解单的文本类型返回结构修改0.1.2

This commit is contained in:
zhaokaiyao@91isoft.com
2021-12-29 19:15:41 +08:00
parent 7b8ebde570
commit 84ca72d640
@@ -248,12 +248,8 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
.collect(Collectors.toMap(SarStandAttrDetails::getAttrField, SarStandAttrDetails::getAttrName));
List<Map<String, String>> collect = fileType.stream()
.map(item -> {
Map<String, String> map = new HashMap<>();
map.put("label", typeNameMap.get(item));
map.put("value", item);
return map;
}).collect(Collectors.toList());
.map(item -> new HashMap<String, String>(){ { put("label", typeNameMap.get(item));put("value", item);} }
).collect(Collectors.toList());
return collect;