dy-dashboard/vault/知识库/工作指南/训练记录/2026-08-25-新品包材导出百分号参数异常修复.md
2026-10-28 11:14:17 +08:00

14 lines
826 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### 1. 修复新品包材管理导出异常
**旭东 → OpenClaw:**
> 还是有异常,新品下单下的新品包材管理导、出之后,表里只显示{"code":500,"msg":"not enough arguments for format string"}
**OpenClaw 响应:**
已定位并修复新品包材管理导出接口的参数格式化异常。原因是“是否含税”导出字段的 SQL 中包含字面量百分号,PyMySQL 会将其误识别为格式化占位符,导致参数数量异常并返回 500。已将 SQL 字面量百分号正确转义,导出接口已恢复。
验证结果:Python 语法检查、直接 SQL 查询、Excel 导出回归验证通过(HTTP 200,返回有效 xlsx 文件);测试服务已热加载并检查 HTTP 200。
Git 提交:`99a100a`(修复新品包材导出税点百分号参数异常)
已记录