dy-dashboard/vault/知识库/工作指南/训练记录/2026-08-03-库存导入字段映射修复.md
2026-10-28 11:14:17 +08:00

9 lines
866 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:**
> 发现几个异常:1、数据概览下卡片3 卡片4里面数据全部显示为0了;2、成品库存、包材库存菜单全部显示暂无数据了,数据丢失
**OpenClaw 响应:**
根因:上午导入 8/3 库存数据时用了英文字段名,但钉盘 CSV 表头是中文(商家编码/货品编号/货品名称/品牌/成本价/库存/生产在途量/采购在途/类目等),导致 product_name、available_qty、cost_price 等字段全部取空——库存页面"暂无数据"、成本卡片全为 0。
修复:按正确中文字段映射重新导入 8/3 库存(23 个仓库共 20348 条),验证 stats 接口成本非 0(总成本 6832 万、成品成本 4272 万、包材成本 2560 万),成品库存 12534 条、包材库存 6524 条正常返回;服务平滑重载后验证通过。