根据标准id查询分解单的文本类型返回结构修改0.1.1
This commit is contained in:
+6
-3
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user