- update_receipt 取 _ensure_shipment_of_business 返回值组装出参 (shipment_id 已赋为 payload 新值,与 get_with_refs 重查同源), 省一次三表 join;update_shipment 同理取锁定行的 business_no - 删 business_repository.count_items(无任何调用的死代码,删除保护 实际走 has_docs) - submit_change 校验段定义与岗位各一条 IN 批量预载(逐条查询在批次 扩大时是写侧 N+1);岗位字典键 casefold 归一保持与单条版 ci 校对 等价的命中语义;旧值留痕保持逐条(窗口函数优化留待 M3 一并设计) Co-Authored-By: Claude Code <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| business_repository.py | ||
| business_role_repository.py | ||
| customer_repository.py | ||
| login_log_repository.py | ||
| operation_log_repository.py | ||
| param_repository.py | ||
| personnel_repository.py | ||
| product_repository.py | ||
| query_utils.py | ||
| rating_repository.py | ||
| receipt_repository.py | ||
| role_repository.py | ||
| shipment_repository.py | ||
| user_repository.py | ||