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-05-21 14:09:57 +08:00
2026-07-16 13:08:45 +08:00
2026-05-27 09:57:01 +08:00
2026-07-15 09:22:58 +08:00
2026-06-10 11:30:07 +08:00
2026-07-15 17:37:57 +08:00
2026-07-15 11:49:53 +08:00
2026-07-13 15:12:22 +08:00
2026-07-16 11:26:12 +08:00
2026-07-15 17:37:57 +08:00
2026-07-16 11:25:41 +08:00
2026-07-16 13:08:45 +08:00
2026-07-15 17:37:57 +08:00