XingQue
|
9c029288ba
|
feat(merchant): 订单操作流水表与按真实操作人统计
新增 merchant_order_action_log,在结算/撤单/退款/罚单/派单/换打手成功路径写入真实操作人;提供 action-stats / action-operators 接口供经营数据页筛选统计。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-15 23:42:39 +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 |
|
XingQue
|
e2e568bcda
|
fix: 子客服派单未设置佣金时 final_yongjin 未初始化
|
2026-06-27 11:19:37 +08:00 |
|
XingQue
|
d68a1da2c2
|
第二轮:客服额度资金闭环与收回额度
- 划额度扣商家余额,客服派单/链接只扣个人额度
- 新增 wallet/revoke 收回未使用额度,权限 wallet_revoke
- 客服额度单撤销/退款只释放额度,不再误退商家余额
- 链接待填单(13)可撤销;总管/财务可划收额度
|
2026-06-20 04:59:29 +08:00 |
|
XingQue
|
c70b2ee7be
|
修复了客服日统计时机,展示更加全面的数据
|
2026-06-20 04:23:31 +08:00 |
|
XingQue
|
0cf5341d73
|
feat: 商家子客服 merchant_ops 模块与专用 API
|
2026-06-20 02:19:39 +08:00 |
|