|
@@ -67,12 +67,12 @@ public class Scene3dNumServiceImpl extends ServiceImpl<IScene3dNumMapper, Scene3
|
|
|
try {
|
|
|
log.info("开始加载场景码缓存");
|
|
|
List<String> nums = this.findSceneNum(cachePageSize);
|
|
|
- if(CollectionUtils.isEmpty(nums)){
|
|
|
- batchCreateSceneNum(true);
|
|
|
- nums = this.findSceneNum(cachePageSize);
|
|
|
- }else{
|
|
|
- CompletableFuture.runAsync(() -> batchCreateSceneNum(false));
|
|
|
- }
|
|
|
+// if(CollectionUtils.isEmpty(nums)){
|
|
|
+ batchCreateSceneNum(true);
|
|
|
+ nums = this.findSceneNum(cachePageSize);
|
|
|
+// }else{
|
|
|
+// CompletableFuture.runAsync(() -> batchCreateSceneNum(false));
|
|
|
+// }
|
|
|
redisUtil.lRightPushAll(RedisKey.FDKANKAN_SCENE_NUMS, nums);
|
|
|
this.updateUsedStatus(nums);
|
|
|
log.info("场景码加载缓存完成");
|