1
This commit is contained in:
@@ -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, "更新门店商品基础信息")
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user