Commit 07b53e1a authored by 赵啸非's avatar 赵啸非

修改版本

parent 6246dc14
...@@ -41,6 +41,8 @@ public class DemoStartedService implements IApplicationStartedService { ...@@ -41,6 +41,8 @@ public class DemoStartedService implements IApplicationStartedService {
private static Log logger = LogFactory.getLog(DemoStartedService.class); private static Log logger = LogFactory.getLog(DemoStartedService.class);
@Autowired @Autowired
private IUserFeign userFeign; private IUserFeign userFeign;
@Autowired
private UserService userService;
@Override @Override
public void start() { public void start() {
...@@ -54,7 +56,13 @@ public class DemoStartedService implements IApplicationStartedService { ...@@ -54,7 +56,13 @@ public class DemoStartedService implements IApplicationStartedService {
ThreadPool.getInstance().execute(syncTreeSiteThread); ThreadPool.getInstance().execute(syncTreeSiteThread);
if(ObjectUtils.isEmpty(userFeign)){ if(ObjectUtils.isEmpty(userFeign)){
logger.info("userFeign未加载"); logger.info("userFeign未加载,加载本地用户");
userService.find(new UserQuery()).forEach(user->{
Context context = new Context();
context.setUser(user);
ThreadPool.getInstance().execute(new SyncTreeSiteThread(context));
});
return; return;
} }
......
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