XingQue
|
6443336bd9
|
fix: 俱乐部超级管理000001可添加/管理本店后台用户,无需集团权限
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-26 02:14:33 +08:00 |
|
XingQue
|
c870e7e6e9
|
fix: 单俱乐部视图下角色/用户/会员严格隔离,禁止泄露其他俱乐部
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-26 01:48:51 +08:00 |
|
XingQue
|
2248a61936
|
fix: 添加后台用户不再硬编码绑定客服角色,按所选俱乐部角色分配
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-08 21:47:50 +08:00 |
|
XingQue
|
a14cba63e6
|
fix: 集团可给各俱乐部分配不同功能角色,按俱乐部隔离权限校验
|
2026-07-06 19:14:00 +08:00 |
|
XingQue
|
1c6607fa6e
|
fix: 角色分配按俱乐部超管权限隔离
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-06 18:23:29 +08:00 |
|
XingQue
|
2bbe166d63
|
fix: 角色操作按俱乐部解析避免同名Role冲突
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-06 18:17:37 +08:00 |
|
XingQue
|
2573db1bbf
|
fix: 俱乐部分配任职仅集团高层可操作
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-06 18:06:37 +08:00 |
|
XingQue
|
1dfb46c38c
|
feat: 多俱乐部后台权限与管理员用户俱乐部分配
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-06 17:59:59 +08:00 |
|
|
|
f1c8633345
|
perf: P1 性能优化批量修复 + kefu 视图拆分
P1 性能优化(避免循环内 N+1 / N 次 DB 查询):
- shop_order_views._batch_images: 移除 ThreadPoolExecutor 掩盖的 N 次查询,改单次批量 + Python 侧分组
- product_query.DashouHuiyuanList: 5N 查询 -> 3 次批量预取 + 本地闭包判断
- roles.GetRolePermissionView / 用户列表: 循环内 RolePermission/Permission/UserRole/Role -> 批量 __in 预取
- guanli / zuzhang 杜次分红 4.2/4.3: 循环内 update_or_create + 单条 delete -> bulk_create + bulk_update + 批量 delete
- admin_config QQ 群配置: 循环内 exists/first/save/create -> 批量预取 + bulk_create + bulk_update
- jituan 服务层多处合并统计查询、批量预取 map
- rank 多处循环 N+1 改批量预取
- backend 多处循环内 count/create 改批量
- config/orders/merchant_ops 多处循环 N+1 改批量预取
其他改动:
- users/views/kefu.py 拆分为 kefu_base/kefu_dashou/kefu_orders/kefu_punishment/kefu_withdraw 5 个文件
- 删除遗留脚本 check_prod_uid.py / create_rbac_tables.sql
|
2026-07-05 23:17:38 +08:00 |
|
|
|
63cb8e9ee9
|
尝试将 backend 做了视图拆分,来保证可维护性,若此版本存在生产环境问题应该回退
|
2026-07-04 18:52:00 +08:00 |
|