fix(export): 生成的 AI 穿搭 Excel 字段名对齐标题生成产品图.xlsx

B 列从「货号」改为「商品id」,C 列从「衣服图路径」改为「原始图片路径」,
补第 7 列「货憨憨上传状态」留空,与用户实际模板文件完全一致。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-23 09:44:35 +08:00
co-authored by Claude Sonnet 4.6
parent 0362c7db89
commit 313e71b774
3 changed files with 12 additions and 8 deletions
+2 -2
View File
@@ -156,8 +156,8 @@ class TestOutfitExcelService(unittest.TestCase):
ws = wb.active
try:
self.assertEqual(
[ws.cell(1, c).value for c in range(1, 7)],
["标题", "货号", "衣服图路径", "生成结果图片路径", "完成状态", "失败原因"],
[ws.cell(1, c).value for c in range(1, 8)],
["标题", "商品id", "原始图片路径", "生成结果图片路径", "完成状态", "失败原因", "货憨憨上传状态"],
)
self.assertEqual(ws.max_row, 3) # 1 header + 2 data
self.assertEqual(ws.cell(2, 1).value, "floral")