feat: 复用颜色映射生成完整采购规格 (#295)

This commit is contained in:
chengma
2026-08-24 00:12:36 +08:00
parent 3f17bedf6a
commit 486a374869
10 changed files with 545 additions and 6 deletions
+3
View File
@@ -402,6 +402,9 @@ func SaveProductColorMappings(db *sql.DB, actor *model.User, goodsID, expectedCo
}
changed++
}
if _, err := DeriveProductColorSpecMappings(tx, context.ShopeeGoodsID); err != nil {
return 0, fmt.Errorf("颜色映射已校验但派生完整规格失败,整批未保存: %w", err)
}
if err := tx.Commit(); err != nil {
return 0, fmt.Errorf("提交颜色映射事务失败: %w", err)
}