删除日志
This commit is contained in:
@@ -746,18 +746,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
||||
|
||||
}
|
||||
|
||||
if storeID == 668545 {
|
||||
globals.SugarLogger.Debugf("============len := %d", len(skus))
|
||||
globals.SugarLogger.Debugf("createList===========%s", utils.Format4Output(createList, false))
|
||||
globals.SugarLogger.Debugf("updateList===========%s", utils.Format4Output(updateList, false))
|
||||
globals.SugarLogger.Debugf("deleteList===========%s", utils.Format4Output(deleteList, false))
|
||||
globals.SugarLogger.Debugf("stockList===========%s", utils.Format4Output(stockList, false))
|
||||
globals.SugarLogger.Debugf("onlineList===========%s", utils.Format4Output(onlineList, false))
|
||||
globals.SugarLogger.Debugf("offlineList===========%s", utils.Format4Output(offlineList, false))
|
||||
globals.SugarLogger.Debugf("priceList===========%s", utils.Format4Output(priceList, false))
|
||||
globals.SugarLogger.Debugf("updateItems===========%s", utils.Format4Output(updateItems, false))
|
||||
globals.SugarLogger.Debugf("reorderSkuMap===========%s", utils.Format4Output(reorderSkuMap, false))
|
||||
}
|
||||
task := tasksch.NewParallelTask("syncStoreSkuNew", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(isContinueWhenError2), ctx,
|
||||
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
|
||||
step := batchItemList[0].(int)
|
||||
@@ -833,10 +821,6 @@ 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) {
|
||||
if storeID == 668545 {
|
||||
globals.SugarLogger.Debugf("===============lenupdateList %d : %s", len(updateList), vendorStoreID)
|
||||
globals.SugarLogger.Debugf("===============batchedStoreSkuList %d : %s ", len(batchedStoreSkuList), vendorStoreID)
|
||||
}
|
||||
var failedList []*partner.StoreSkuInfoWithErr
|
||||
failedList, err = singleStoreHandler.UpdateStoreSkus(ctx, storeID, vendorStoreID, batchedStoreSkuList)
|
||||
failedList, err = buildFailedListAndErr(failedList, err, nil, batchedStoreSkuList, storeID, vendorID, "更新门店商品基础信息")
|
||||
|
||||
@@ -324,9 +324,6 @@ 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) {
|
||||
if storeID == 668545 {
|
||||
globals.SugarLogger.Debugf("================storeSkuList %d : %s", len(storeSkuList), vendorStoreID)
|
||||
}
|
||||
var syncType string
|
||||
foodDataList := make([]map[string]interface{}, len(storeSkuList))
|
||||
if isCreate {
|
||||
@@ -444,10 +441,6 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
}
|
||||
|
||||
}
|
||||
if storeID == 668545 {
|
||||
globals.SugarLogger.Debugf("================lenfoodDataList %d", len(foodDataList))
|
||||
globals.SugarLogger.Debugf("================lenfoodDataList %s", utils.Format4Output(foodDataList, false))
|
||||
}
|
||||
if globals.EnableMtwmStoreWrite {
|
||||
if len(foodDataList) == 1 {
|
||||
foodDataList[0]["skus"] = string(utils.MustMarshal(foodDataList[0]["skus"]))
|
||||
|
||||
Reference in New Issue
Block a user