WrBug
deea59fdbf
fix: 修复 OrderStatusUpdateService 的事务和并发问题
1. 解决 @Transactional 自调用问题
- 实现 ApplicationContextAware 接口
- 通过代理对象调用 @Transactional 方法,确保事务生效
2. 防止定时任务并发执行
- 添加 updateJob 跟踪上一次任务状态
- 如果上一次任务还在执行,跳过本次执行
- 避免多个更新任务同时运行导致的数据竞争
修改的方法:
- updateOrderStatus(): 添加并发控制
- cleanupDeletedAccountOrders(): 通过代理对象调用
- checkAndDeleteUnfilledOrders(): 通过代理对象调用
- updatePendingSellOrderPrices(): 通过代理对象调用
- updatePendingBuyOrders(): 通过代理对象调用
2026-01-15 15:21:29 +08:00
..
2026-01-08 17:47:00 +08:00
2026-01-13 16:07:19 +08:00
2026-01-13 16:07:19 +08:00
2026-01-08 13:19:52 +08:00
2026-01-12 14:29:12 +08:00
2026-01-15 04:33:55 +08:00
2025-12-06 23:10:26 +08:00
2026-01-10 03:39:06 +08:00
2026-01-15 15:21:29 +08:00
2026-01-13 16:07:19 +08:00
2026-01-13 16:07:19 +08:00
2025-12-26 02:20:48 +08:00