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

This commit is contained in:
zhaokaiyao@91isoft.com
2021-12-29 18:03:40 +08:00
parent 0245b04807
commit 7b8ebde570
@@ -244,11 +244,14 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
public List<Map<String, String>> getFileType(String standId){
List<String> fileType = dao.getFileType(standId);
List<Map<String, String>> collect = InitStandAttrUtil.standInlandAttrFieldList.stream()
Map<String, String> typeNameMap = InitStandAttrUtil.standInlandAttrFieldList.stream()
.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", item.getAttrName());
map.put("value", item.getAttrField());
map.put("label", typeNameMap.get(item));
map.put("value", item);
return map;
}).collect(Collectors.toList());