|
@@ -527,12 +527,13 @@ public class CommonFacade {
|
|
for (String s : wordList) {
|
|
for (String s : wordList) {
|
|
String value = redisUtil.get(type + "Conv:" + s);
|
|
String value = redisUtil.get(type + "Conv:" + s);
|
|
if (value == null) {
|
|
if (value == null) {
|
|
- StandConvertCrfVO standConvertCrfVO = new StandConvertCrfVO();
|
|
|
|
- standConvertCrfVO.setWord_type(type);
|
|
|
|
- standConvertCrfVO.setWord(s);
|
|
|
|
- standConvertCrfVOList.add(standConvertCrfVO);
|
|
|
|
|
|
+ // 去重添加
|
|
if (!convertList.contains(s)) {
|
|
if (!convertList.contains(s)) {
|
|
convertList.add(s);
|
|
convertList.add(s);
|
|
|
|
+ StandConvertCrfVO standConvertCrfVO = new StandConvertCrfVO();
|
|
|
|
+ standConvertCrfVO.setWord_type(type);
|
|
|
|
+ standConvertCrfVO.setWord(s);
|
|
|
|
+ standConvertCrfVOList.add(standConvertCrfVO);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|