Commit Graph

69 Commits

Author SHA1 Message Date
98f49ea7ad feat: 实现订阅自动化定时任务系统
新增定时任务 (Scheduler Module):
- SubscriptionAutoRenewalJob: 自动续费账单生成
- SubscriptionRenewalReminderJob: 续费提醒发送 (7/3/1天)
- SubscriptionExpiryCheckJob: 到期检查与宽限期处理

新增 Command/Handler:
- ProcessAutoRenewalCommand: 处理自动续费逻辑
- ProcessRenewalRemindersCommand: 处理续费提醒逻辑
- ProcessSubscriptionExpiryCommand: 处理订阅到期逻辑

配置项 (SubscriptionAutomationOptions):
- AutoRenewalDaysBeforeExpiry: 到期前N天生成续费账单
- ReminderDaysBeforeExpiry: 提醒天数数组
- GracePeriodDays: 宽限期天数
- 各任务执行小时配置

Repository 增强:
- ISubscriptionRepository: 新增自动化查询方法
- ITenantBillingRepository: 新增账单创建方法
- ITenantNotificationRepository: 新增通知创建方法

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 21:06:01 +08:00
ab59e2e3e2 feat: 新增配额包/支付相关实体与迁移
App:新增 operation_logs/quota_packages/tenant_payments/tenant_quota_package_purchases 表

Identity:修正 Avatar 字段类型(varchar(256)->text),保持现有数据不变
2025-12-17 17:27:45 +08:00
9c28790f5e feat: 套餐增加推荐标识与标签 2025-12-15 22:32:02 +08:00
e39a42b74c fix: 修复套餐草稿默认值哨兵问题 2025-12-15 21:09:28 +08:00
fd377624d8 fix: 修复套餐新增草稿默认值与开关落库 2025-12-15 21:06:23 +08:00
2778a4ebdf feat: 套餐发布状态与可见/可购开关 2025-12-15 17:29:41 +08:00
2150ae8f8c fix: 重置密码忽略租户过滤 2025-12-15 15:27:32 +08:00
2249588e07 feat: 支持租户伪装登录与管理员重置链接 2025-12-15 14:43:50 +08:00
9192ef3021 fix: 用户头像URL支持长链接 2025-12-15 12:55:58 +08:00
fca8bd989c fix: 租户LogoUrl支持长链接 2025-12-15 12:53:38 +08:00
2339775fcb feat: 租户审核领单与强制接管 2025-12-15 10:40:50 +08:00
f54d4cf405 fix: 平台端查询租户订阅与套餐不再受租户过滤影响 2025-12-15 10:00:31 +08:00
f6e7fa2f4a fix: 平台租户未解析时不应用租户过滤 2025-12-15 09:45:08 +08:00
c5a3243bd8 feat: tenants 列表支持名称/联系人/电话/认证状态过滤 2025-12-14 16:23:32 +08:00
8b18d0cb96 feat: admin simple 登录支持 账号@手机号 2025-12-12 22:06:37 +08:00
624a7bc04d fix: tenants 联系电话唯一索引 2025-12-12 22:06:24 +08:00
715cbb3d36 docs: add xml comments and update ignore rules 2025-12-12 10:39:51 +08:00
c7df64f2e1 feat: add public tenant packages listing and sort order 2025-12-11 23:57:04 +08:00
cf9927c078 fix: de-dup role permission binding and use raw sql replace 2025-12-06 22:52:02 +08:00
33a3b349c4 fix: filter soft-deleted roles and soft delete on remove 2025-12-06 15:40:57 +08:00
7ed133509e fix: use raw sql delete+insert with execution strategy for role template permissions 2025-12-06 14:40:49 +08:00
ab4e407f9c fix: wrap identity permission bindings with execution strategy transactions 2025-12-06 14:35:06 +08:00
4120aec055 fix: wrap role/user permission replacements in transactions 2025-12-06 14:27:23 +08:00
3b68b62bb6 fix: wrap role template permission replace in transaction 2025-12-06 14:20:46 +08:00
f0f04e89a0 fix: avoid role template permission duplicate when replacing 2025-12-06 14:18:51 +08:00
37dc23f0c1 feat: add permission hierarchy tree 2025-12-06 11:53:14 +08:00
a1499fc1a1 feat: add admin menu management crud 2025-12-05 21:16:07 +08:00
3a38ade302 feat: add role template and tenant role apis 2025-12-05 20:55:56 +08:00
1d7836a173 chore: 升级依赖并优化种子 2025-12-04 17:30:09 +08:00
670f19831e feat: add identity role template migrations 2025-12-04 15:11:41 +08:00
29a46dfc17 Merge branch 'chore/comment-fix' into dev 2025-12-04 14:43:02 +08:00
37e7d721f3 docs: 完善参数注释与StyleCop配置 2025-12-04 12:45:26 +08:00
7d6b7d8760 docs: 标记自提档期完成 2025-12-04 11:51:09 +08:00
7e6125c687 feat: 完善库存锁定幂等与批次扣减策略 2025-12-04 11:31:26 +08:00
8e4c2b0e45 chore: add documentation comments and stylecop rules 2025-12-04 11:25:01 +08:00
b8d93337f2 feat: 菜品菜单查询与子资源替换完善 2025-12-04 10:42:58 +08:00
de5f13ec83 feat: 商品上架/下架与全量详情支持 2025-12-04 10:03:42 +08:00
9220e0ca36 feat: Mini 桌码扫码上下文接口 2025-12-04 09:37:05 +08:00
19422df0f1 feat: 门店员工与排班管理上线 2025-12-04 09:32:03 +08:00
1a5209a8b1 feat: 桌码管理支持区域、批量生成与二维码导出 2025-12-04 09:10:00 +08:00
9051a024ea feat: 完成门店子资源管理与文档同步 2025-12-04 08:38:31 +08:00
bf88f0e041 docs: add xml comments for tenant modules 2025-12-03 22:56:35 +08:00
a3dc5f54e5 chore: 优化公告已读批量与用户维度 2025-12-03 21:13:52 +08:00
9fe7d9606d feat: 租户账单公告通知接口 2025-12-03 21:08:28 +08:00
6a84141799 feat: 角色模板改为数据库管理支持前端自定义 2025-12-03 20:38:26 +08:00
19137f3cf7 feat: 套餐管理与配额校验能力 2025-12-03 20:17:55 +08:00
ea33e6fefe feat: 新增RBAC角色模板复制与初始化 2025-12-03 19:55:25 +08:00
0c329669a9 feat: 商户类目数据库化并增加权限种子 2025-12-03 19:01:53 +08:00
a536a554c2 feat: 实现租户管理及套餐流程 2025-12-03 16:37:50 +08:00
3252b2a8a0 feat: 添加 RBAC1 迁移并更新上下文 2025-12-02 16:50:05 +08:00