|
@@ -72,20 +72,17 @@ public class StoreDictServiceImpl extends ServiceImpl<StoreDictionaryMapper, Sto
|
|
|
/**
|
|
|
* 根据typeName查询字典
|
|
|
*
|
|
|
- * @param typeNameList 字典名称列表
|
|
|
* @return Map
|
|
|
*/
|
|
|
@Override
|
|
|
- public Map<String, List<StoreDictionary>> getDictList(List<String> typeNameList) {
|
|
|
+ public Map<String, List<StoreDictionary>> getDictList() {
|
|
|
|
|
|
// typeNameList为空,则使用默认的typeName列表
|
|
|
- if (CollectionUtils.isEmpty(typeNameList)){
|
|
|
- String typeName = CommonConstant.STORE_DICT_TYPENAME;
|
|
|
- typeNameList = Arrays.stream(typeName.split(","))
|
|
|
+ String typeName = CommonConstant.STORE_DICT_TYPENAME;
|
|
|
+ List<String> typeNameList = Arrays.stream(typeName.split(","))
|
|
|
.map(String::trim)
|
|
|
.filter(s -> !s.isEmpty())
|
|
|
.collect(Collectors.toList());
|
|
|
- }
|
|
|
|
|
|
// 查询字典列表
|
|
|
List<StoreDictionary> storeDictionaryList = storeDictionaryMapper.selectList(
|