yueli
3290f206c6
perf: 导出OOM修复(yield_per流式) + 采购模糊匹配安全防护
## base_service.py export_excel
- query.all()全量→yield_per(2000)分块流式读取
- all_rows[]内存收集→write_only=True直写Excel
- all_rows.sort()→ORDER BY数据库排序
- 删除~160行旧Excel样式/脱敏死代码
- 内存: 全量→2000行分块+输出流
## purchase_service.py
- 模糊匹配安全防护:
len(n.strip())>=2 过滤空格/单字符
.limit(500) 防全表返回
2026-07-16 13:08:45 +08:00
..
2026-07-16 13:08:37 +08:00
2026-05-25 11:11:10 +08:00
2026-07-15 16:07:59 +08:00
2026-02-09 11:29:37 +08:00
2026-07-16 13:08:45 +08:00
2026-07-16 13:08:37 +08:00
2026-07-16 11:25:41 +08:00
2026-05-18 16:16:50 +08:00