23cf3b62b23e17c20e65eb21d74760e7a62733f0
Code review 发现两个关键缺陷: 1. @Async 自调用:triggerAttributionAsync() 在同一类内调用, Spring AOP 代理不生效,实际同步执行 2. 事务可见性:异步任务可能在事务提交前读取未持久化数据 修复方案: - 提取 InspectionAsyncHandler(独立 @Component),@Async 通过代理生效 - 使用 TransactionSynchronizationManager.afterCommit() 确保事务提交后触发 - 修复 InspectionRectificationServiceImpl 的 null 安全问题 - 修复 InspectionTemplateServiceImpl 更新路径缺少 id 空校验 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Description
Languages
Java
79.7%
PLpgSQL
13.1%
TSQL
6.9%
Python
0.2%