feat(core): 增加租户提成计算功能并升级Quartz版本

- 新增KeyboardTenantCommissionDO、KeyboardTenantCommissionMapper及TenantCommissionCalculateJob,实现租户提成定时计算
- 升级Quartz至2.5.2,开启acquireTriggersWithinLock防并发
- 精简BannerApplicationRunner,移除模块启用提示
- 调整IDEA HTTP客户端端口至48081
This commit is contained in:
2025-12-30 14:15:17 +08:00
parent 2ed121926b
commit eb4b615ed6
10 changed files with 374 additions and 50 deletions

View File

@@ -87,6 +87,7 @@ spring:
isClustered: true # 是集群模式
clusterCheckinInterval: 15000 # 集群检查频率,单位:毫秒。默认为 15000即 15 秒
misfireThreshold: 60000 # misfire 阀值,单位:毫秒。
acquireTriggersWithinLock: true # 获取触发器时加锁,防止并发问题
# 线程池相关配置
threadPool:
threadCount: 25 # 线程池大小。默认为 10 。

View File

@@ -6,7 +6,7 @@ spring:
autoconfigure:
# noinspection SpringBootApplicationYaml
exclude:
- org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration # 默认 local 环境,不开启 Quartz 的自动配置
# - org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration # 默认 local 环境,不开启 Quartz 的自动配置
- org.springframework.ai.vectorstore.qdrant.autoconfigure.QdrantVectorStoreAutoConfiguration # 禁用 AI 模块的 Qdrant手动创建
- org.springframework.ai.vectorstore.milvus.autoconfigure.MilvusVectorStoreAutoConfiguration # 禁用 AI 模块的 Milvus手动创建
# 数据源配置项
@@ -97,9 +97,11 @@ spring:
jobStore:
# JobStore 实现类。可见博客https://blog.csdn.net/weixin_42458219/article/details/122247162
class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
driverDelegateClass: org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
isClustered: true # 是集群模式
clusterCheckinInterval: 15000 # 集群检查频率,单位:毫秒。默认为 15000即 15 秒
misfireThreshold: 60000 # misfire 阀值,单位:毫秒。
acquireTriggersWithinLock: true # 获取触发器时加锁,防止并发问题
# 线程池相关配置
threadPool:
threadCount: 25 # 线程池大小。默认为 10 。