|
@@ -1365,7 +1365,7 @@ public class NeoFacade {
|
|
|
if (ListUtil.isNotEmpty(wordList)) {
|
|
|
for (String s : wordList) {
|
|
|
String value = redisUtil.getWithString(type + "Conv:" + s);
|
|
|
- if (StringUtil.isBlank(value)) {
|
|
|
+ if (value == null) {
|
|
|
StandConvertCrfVO standConvertCrfVO = new StandConvertCrfVO();
|
|
|
standConvertCrfVO.setWord_type(type);
|
|
|
standConvertCrfVO.setWord(s);
|
|
@@ -1431,7 +1431,8 @@ public class NeoFacade {
|
|
|
// 将所有的词放入typeMap中
|
|
|
for (String s : originList) {
|
|
|
if (!typeMap.containsKey(s)) {
|
|
|
- typeMap.put(s, s);
|
|
|
+ String value = redisUtil.getWithString(type + "Conv:" + s);
|
|
|
+ typeMap.put(s, value);
|
|
|
}
|
|
|
}
|
|
|
map.put(type, typeMap);
|
|
@@ -1496,7 +1497,8 @@ public class NeoFacade {
|
|
|
// 将所有的词放入typeMap中
|
|
|
for (String s : originList) {
|
|
|
if (!typeMap.containsKey(s)) {
|
|
|
- typeMap.put(s, s);
|
|
|
+ String value = redisUtil.getWithString(type + "Conv:" + s);
|
|
|
+ typeMap.put(s, value);
|
|
|
}
|
|
|
}
|
|
|
map.put(type, typeMap);
|