|
@@ -196,20 +196,12 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
|
|
|
private void addOrUpdateIcons(String num, List<String> icons) throws Exception{
|
|
|
-
|
|
|
+ if(CollUtil.isEmpty(icons)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.syncIconsFromFileToRedis(num);
|
|
|
-
|
|
|
String key = String.format(RedisKey.SCENE_HOT_ICONS, num);
|
|
|
redisUtil.sSet(key, icons.toArray());
|
|
|
-
|
|
|
-
|
|
|
-// Map<String, String> addOrUpdateMap = new HashMap<>();
|
|
|
-// hotDataList.stream().forEach(hotData -> {
|
|
|
-// addOrUpdateMap.put(hotData.getSid(), hotData.getHotData());
|
|
|
-// });
|
|
|
-
|
|
|
- //处理新增和修改数据
|
|
|
-// this.addOrUpdateHotData(num, addOrUpdateMap);
|
|
|
}
|
|
|
|
|
|
@Override
|