This commit is contained in:
邹宗楠
2023-12-22 18:37:51 +08:00
parent 926faeb685
commit 1ed397bdd7
2 changed files with 4 additions and 0 deletions

View File

@@ -540,6 +540,7 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
}
skus = skus2
}
globals.SugarLogger.Debugf("============len := %d", len(skus))
formalizeStoreSkuList(skus)
//京东商城的商品名规则不同
// name空格comment约xxg
@@ -820,6 +821,8 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
case 2:
if len(updateList) > 0 {
_, err = putils.FreeBatchStoreSkuSyncInfo("更新门店商品基础信息", func(task tasksch.ITask, batchedStoreSkuList []*dao.StoreSkuSyncInfo) (result interface{}, successCount int, err error) {
globals.SugarLogger.Debugf("===============lenupdateList %d ", len(updateList))
globals.SugarLogger.Debugf("===============batchedStoreSkuList %d ", len(batchedStoreSkuList))
var failedList []*partner.StoreSkuInfoWithErr
failedList, err = singleStoreHandler.UpdateStoreSkus(ctx, storeID, vendorStoreID, batchedStoreSkuList)
failedList, err = buildFailedListAndErr(failedList, err, nil, batchedStoreSkuList, storeID, vendorID, "更新门店商品基础信息")

View File

@@ -324,6 +324,7 @@ func (p *PurchaseHandler) CreateStoreSkus(ctx *jxcontext.Context, storeID int, v
// 对于多门店平台来说storeSkuList中只有SkuID与VendorSkuID有意义
func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeID int, vendorStoreID string, storeSkuList []*dao.StoreSkuSyncInfo, isCreate bool) (failedList []*partner.StoreSkuInfoWithErr, err error) {
globals.SugarLogger.Debugf("================storeSkuList %d", len(storeSkuList))
var syncType string
foodDataList := make([]map[string]interface{}, len(storeSkuList))
if isCreate {