feat(data-align): 实现笔记点赞增量数据处理与布隆过滤器校验

- 新增 Redis 布隆过滤器 Lua 脚本,用于校验日增量变更数据- 创建 InsertRecordMapper 及 XML 映射文件,支持笔记和用户点赞数落库
- 定义 LikeUnlikeNoteMqDTO用于 MQ 消息传输
- 配置 RedisTemplate 支持 JSON 序列化
- 修改 TableConstants 中 buildTableNameSuffix 方法参数类型为 long
- 实现 TodayNoteLikeIncrementData2DBConsumer 消费者逻辑:
  - 使用布隆过滤器去重判断 - 数据库写入操作使用事务保证原子性
  - 写入成功后更新布隆过滤器
- 更新 IntelliJ IDEA 数据源映射与 SQL 检查配置
This commit is contained in:
2025-10-21 19:45:43 +08:00
parent 8a1681e590
commit c1c0590cce
10 changed files with 225 additions and 1 deletions

View File

@@ -24,5 +24,8 @@
</option>
</inspection_tool>
<inspection_tool class="SqlNoDataSourceInspection" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="SqlResolveInspection" enabled="true" level="ERROR" enabled_by_default="true">
<option name="suppressForPossibleStringLiterals" value="true" />
</inspection_tool>
</profile>
</component>