lzh
74f6207843
fix(ops): XML 手写 SQL 添加 tenant_id 预编译参数过滤
yudao 官方明确 MyBatis Plus 拦截器不处理 XML 手写 SQL,需手动过滤。
将 ${} OGNL 表达式改为 #{tenantId} 预编译参数,避免 NPE 和
@TenantIgnore 不兼容问题。
- OpsOrderMapper: 8 条统计 SQL 添加 AND tenant_id = #{tenantId}
- OpsTrafficStatisticsMapper: deleteByStatHourBefore 补上 tenant_id
- OpsStatisticsServiceImpl: 10 处调用传入 tenantId 参数
- TrafficStatisticsCleanupJob: executeIgnore → @TenantJob + 显式传参
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 11:40:39 +08:00
..
2026-03-30 11:36:18 +08:00
2025-12-31 16:49:44 +08:00
2026-03-30 11:36:18 +08:00
2026-03-30 11:40:39 +08:00
2026-03-27 16:09:07 +08:00
2026-03-27 16:37:30 +08:00
2025-12-31 16:49:44 +08:00
2025-12-31 16:49:44 +08:00