Commit Graph

105 Commits

Author SHA1 Message Date
848778b8b5 fix: 修复规格模板查询并发DbContext异常
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 44s
2026-02-21 07:42:02 +08:00
392d9f03a1 feat: 新增规格做法模板管理接口与数据模型
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 45s
2026-02-20 20:08:34 +08:00
1b3525862a feat: implement tenant product category management APIs
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 44s
2026-02-20 18:45:48 +08:00
8a6fc867c2 refactor(store): remove fallback config behavior and expose isConfigured
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 43s
2026-02-20 09:55:11 +08:00
145be01bfc fix(store-fees): 保留包装费配置避免阶梯刷新丢失
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 45s
2026-02-20 08:28:41 +08:00
53f7c54c82 feat(geo): add tenant/merchant/store geocode fallback and retry workflow
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 43s
2026-02-19 17:13:00 +08:00
ad245078a2 feat: 提交配送中心点与门店地址映射全量变更
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 42s
2026-02-19 16:12:36 +08:00
dfa2b3ee52 feat(store): add quick business toggle endpoint and auto-approve creation
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 42s
2026-02-18 10:03:27 +08:00
be701d8cf6 fix(store): default new store business status to resting
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 42s
2026-02-18 08:44:14 +08:00
b3429e2a0d feat(store): auto-generate store code on create and make update code optional
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 44s
2026-02-18 08:27:37 +08:00
1b185af718 feat: 完成门店管理剩余接口并补齐文档注释
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 46s
2026-02-17 14:54:35 +08:00
c032608a57 Revert "refactor: 清理租户API旧模块代码"
This reverts commit 992930a821.
2026-02-17 12:12:01 +08:00
654b1ae3f7 feat: tenant门店管理首批接口落地
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 30s
2026-02-17 11:10:06 +08:00
992930a821 refactor: 清理租户API旧模块代码 2026-02-17 09:57:26 +08:00
2711893474 feat: 完成租户个人中心 API 首版实现 2026-02-09 20:01:11 +08:00
f61554fc08 fix: 移除商户中心租户信息兜底返回
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 38s
2026-02-06 14:01:05 +08:00
76ba5a4748 fix: 移除商户中心商户查询兜底逻辑
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 38s
2026-02-06 13:59:40 +08:00
b02950e465 fix: 修复商户中心查询 RowVersion 列不存在问题
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 38s
2026-02-06 13:56:08 +08:00
5f2064324d feat: 新增租户端商户中心聚合接口
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 40s
提供 /merchant/info 聚合查询,返回商户主体、资质、合同、员工与日志信息,满足租户端商户中心页面一次加载全部相关数据。
2026-02-06 13:45:20 +08:00
root
cf697b3889 fix: 统一逐租户上下文执行 2026-01-30 01:04:51 +00:00
root
41cfd2e2e8 refactor: 收紧角色与商户跨租户能力 2026-01-29 14:52:25 +00:00
root
a0b77d4847 fix: 禁止账单跨租户查询 2026-01-29 14:51:56 +00:00
root
1622c38043 refactor: 订阅任务按租户上下文执行 2026-01-29 14:51:21 +00:00
root
f9053356c2 refactor: 移除门店跨租户访问入口 2026-01-29 14:50:49 +00:00
root
52fb4fde72 refactor: 清理平台表述并统一为系统 2026-01-29 13:49:03 +00:00
root
77836e270f refactor: 移除平台公告与跨租户目标 2026-01-29 13:15:53 +00:00
root
3297ff26ab refactor: 移除平台侧能力并收紧租户隔离 2026-01-29 12:06:52 +00:00
root
86ef0d6033 feat: 新增租户管理端 TenantApi 并移除旧 API 2026-01-29 11:39:57 +00:00
725f89ae24 feat: Add tiered packaging fee support for stores
Introduces tiered packaging fee configuration for stores by adding OrderPackagingFeeMode and PackagingFeeTiers fields to StoreFee. Updates DTOs, validators, handlers, and mapping logic to support both fixed and tiered packaging fee modes. Adds StoreFeeTierHelper for tier normalization and serialization, and includes a database migration to persist the new fields.
2026-01-26 09:26:49 +08:00
187534ecca fix: 允许平台账号跨租户更新门店 2026-01-21 17:21:30 +08:00
36abd83e83 chore: update store delivery zone handlers 2026-01-21 11:27:13 +08:00
8bde1a6440 fix: 门店时段与临时调整跨租户处理 2026-01-20 20:38:05 +08:00
32f5bbbd43 feat(store): 扩展临时时段配置 2026-01-20 18:41:34 +08:00
3385674490 fix: 门店资质日期字段改为date 2026-01-20 13:09:06 +08:00
30e54e2bea fix: 修复门店租户写入与跨租户查看 2026-01-19 20:43:27 +08:00
a042c7ef82 Merge branch 'dev' of https://github.com/msumshk/TakeoutAPI into dev 2026-01-05 19:11:16 +08:00
6eea61264b refactor: 重命名商户门店DTO 2026-01-05 10:43:04 +08:00
398c716734 fix:修复注释错误 2026-01-04 21:22:26 +08:00
fc55003d3d 完成门店管理后端接口与任务 2026-01-01 07:26:14 +08:00
b9dc49b7a9 feat:修复商户审核校验 2025-12-29 22:10:23 +08:00
7cb5e9a805 feat:补齐商户版本号 2025-12-29 21:55:05 +08:00
febef6caaf feat:修复商户审核日志 2025-12-29 21:16:09 +08:00
dd91c1010a feat:商户管理 2025-12-29 16:40:27 +08:00
57f4c2d394 fix: 公告模块第一次修复 2025-12-27 18:22:30 +08:00
b75f4bca54 fix: 移除AutoMapper依赖 2025-12-27 12:32:54 +08:00
04444c6554 fix: 修复公告过时警告并补齐用户权限 2025-12-27 12:32:52 +08:00
b2a90cf8af feat: 用户管理后端与日志库迁移 2025-12-27 06:23:03 +08:00
755b61a044 fix: 修复公告模块核心问题并完善功能
主要修复内容:
1. 修复 RowVersion 并发控制
   - 配置 EF Core RowVersion 映射为 bytea 类型
   - 添加 PostgreSQL 触发器自动生成 RowVersion
   - 在更新/发布/撤销操作中添加 RowVersion 校验
   - 移除 Application 层对 EF Core 的直接依赖

2. 修复 API 路由和校验问题
   - 添加平台公告列表路由的版本化别名
   - 租户公告接口添加 X-Tenant-Id 必填校验,返回 400
   - 生效时间校验返回 422 而非 500
   - 修复 FluentValidation 异常命名冲突

3. 实现关键词搜索功能
   - 在查询参数中添加 keyword 字段
   - 使用 PostgreSQL ILIKE 实现大小写不敏感搜索
   - 支持标题和内容字段的模糊匹配

4. 数据库迁移
   - 新增 RowVersion 触发器迁移文件
   - 回填现有公告记录的 RowVersion
2025-12-26 09:16:07 +08:00
857f776447 feat: 实现完整的多租户公告管理系统
核心功能:
- 公告状态机(草稿/已发布/已撤销)支持发布、撤销和重新发布
- 发布者范围区分平台级和租户级公告
- 目标受众定向推送(全部租户/指定角色/指定用户)
- 平台管理、租户管理和应用端查询API
- 已读/未读管理和未读统计

技术实现:
- CQRS+DDD架构,清晰的领域边界和事件驱动
- 查询性能优化:数据库端排序和限制,估算策略减少内存占用
- 并发控制:修复RowVersion配置(IsRowVersion→IsConcurrencyToken)
- 完整的FluentValidation验证器和输入保护

测试验证:
- 36个测试全部通过(27单元+9集成)
- 性能测试达标(1000条数据<5秒)
- 代码质量评级A(优秀)

文档:
- 完整的ADR、API文档和迁移指南
- 交付报告和技术债务记录
2025-12-20 19:57:09 +08:00
00eb357e6e fix: 平台订阅管理支持跨租户查询 2025-12-18 23:58:24 +08:00