feat: 复用颜色映射生成完整采购规格 (#295)
This commit is contained in:
@@ -911,6 +911,9 @@ func writeStockDetail(db *sql.DB, baseURL, shopID string, stockRow syb.StockRow,
|
||||
if _, err := repository.UpsertSybShopeeSKU(tx, order.ShopeeGoodsID, order.ProductSpec, model.NowISO()); err != nil {
|
||||
return fmt.Errorf("写入顺运宝规格观测失败: %w", err)
|
||||
}
|
||||
if _, err := DeriveSybSpecMappingFromProductColor(tx, sybID); err != nil {
|
||||
return fmt.Errorf("根据商品颜色映射派生顺运宝完整规格失败: %w", err)
|
||||
}
|
||||
if created {
|
||||
report.Created++
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user