Commit 5bf26b9a authored by suhuiguang's avatar suhuiguang

refactor(大编辑):代码重构

1.基本信息、设计信息、使用信息、检验信息、制造信息增加枚举处理逻辑 2.技术参数增加枚举
parent d77dea59
...@@ -27,7 +27,7 @@ public class CbDataDictTypeHandler implements DictTypeHandler { ...@@ -27,7 +27,7 @@ public class CbDataDictTypeHandler implements DictTypeHandler {
public String handle(String dictType, String dictCode) { public String handle(String dictType, String dictCode) {
String key = dictType + "_" + dictCode; String key = dictType + "_" + dictCode;
return cache.computeIfAbsent(key, (k) -> { return cache.computeIfAbsent(key, (k) -> {
DataDictionary dataDictionary = dataDictionaryService.getByCode(k, dictType); DataDictionary dataDictionary = dataDictionaryService.getByCode(dictCode, dictType);
return Optional.ofNullable(dataDictionary).map(DataDictionary::getName).orElse(null); return Optional.ofNullable(dataDictionary).map(DataDictionary::getName).orElse(null);
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment