This commit is contained in:
邹宗楠
2025-02-19 14:23:48 +08:00
parent 902ce6e150
commit 276932f44d

View File

@@ -569,6 +569,9 @@ func ModifyPetOrderSkusStock(db *dao.DaoDB, order *model.GoodsOrder, isAdd bool)
}
skuIDList = append(skuIDList, sku.SkuID)
dao.ExecuteSQL(db, `UPDATE thing_map SET sync_status = 1 WHERE vendor_thing_id = ?`, sku.SkuID)
for _, ss := range storeSkus {
dao.UpdateEntity(db, ss, "Stock")
}
}
_, err = cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, db, nil, storeIdList, false, skuIDList, nil, model.SyncFlagStoreSkuModifiedMask, true, true)
_, err = cms.SyncSkus(jxcontext.AdminCtx, nil, nil, []string{"309558"}, nil, skuIDList, true)