feat(async): 添加异步任务执行配置及异步关注消息推送
- 新增AsyncConfig配置类,定义线程池taskExecutor - 在MerchantBiFollowService中引入异步推送方法triggerFollowPush - 使用@Async注解实现triggerFollowPush异步执行 - 在事务提交后调用异步推送,保证数据一致性 - 通过TransactionSynchronizationManager绑定事务提交后回调触发推送任务
Showing
2 changed files
with
45 additions
and
2 deletions
-
Please register or sign in to post a comment