加日志头
This commit is contained in:
@@ -79,7 +79,7 @@ func StartOrEndOpStore(isStart bool, startTime, endTime int16) {
|
||||
storeInfo, err := cms.GetStores(ctx, "", map[string]interface{}{}, 0, -1, utils.DefaultTimeValue, utils.DefaultTimeValue, 0, 0)
|
||||
|
||||
if err != nil {
|
||||
baseapi.SugarLogger.Errorf("storeInfo error:%v", err)
|
||||
baseapi.SugarLogger.Errorf("StartOrEndOpStore cms.GetStores error:%v", err)
|
||||
} else {
|
||||
taskFunc := func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
|
||||
storeListValue := batchItemList[0].(*cms.StoreExt)
|
||||
@@ -92,14 +92,14 @@ func StartOrEndOpStore(isStart bool, startTime, endTime int16) {
|
||||
if startTime != 0 && endTime != 0 {
|
||||
startOpStoreTime = startTime
|
||||
endOpStoreTime = endTime
|
||||
baseapi.SugarLogger.Debugf("SetStoreOptime:%d do:%d", startTime, endTime)
|
||||
baseapi.SugarLogger.Debugf("StartOrEndOpStore SetStoreOptime:%d do:%d", startTime, endTime)
|
||||
}
|
||||
vendorStoreID := utils.Interface2String(vendorListValue["vendorStoreID"])
|
||||
baseapi.SugarLogger.Debugf("storeID:%d vendorID:%d vendorStoreID:%s", storeID, vendorID, vendorStoreID)
|
||||
baseapi.SugarLogger.Debugf("StartOrEndOpStore storeID:%d vendorID:%d vendorStoreID:%s", storeID, vendorID, vendorStoreID)
|
||||
singleStoreHandler := partner.GetPurchasePlatformFromVendorID(vendorID).(partner.ISingleStoreStoreSkuHandler)
|
||||
storeSkuNameList, err := singleStoreHandler.GetStoreSkusFullInfo(ctx, nil, storeID, vendorStoreID, nil)
|
||||
if err != nil {
|
||||
baseapi.SugarLogger.Errorf("storeSkuNameList error:%v storeID:%d vendorID:%d vendorStoreID:%s", err, storeID, vendorID, vendorStoreID)
|
||||
baseapi.SugarLogger.Errorf("StartOrEndOpStore GetStoreSkusFullInfo error:%v storeID:%d vendorID:%d vendorStoreID:%s", err, storeID, vendorID, vendorStoreID)
|
||||
} else {
|
||||
filterStoreSkuNameList := FilterSkuNameList(storeSkuNameList)
|
||||
storeSkuList := putils.StoreSkuFullList2Bare(filterStoreSkuNameList)
|
||||
@@ -115,7 +115,7 @@ func StartOrEndOpStore(isStart bool, startTime, endTime int16) {
|
||||
//var successList []*partner.StoreSkuInfo
|
||||
if _, err = singleStoreHandler.UpdateStoreSkusStock(ctx, storeID, vendorStoreID, batchedStoreSkuList); err == nil {
|
||||
//successList = batchedStoreSkuList
|
||||
//baseapi.SugarLogger.Debugf("successList:%v error:%v", successList, err)
|
||||
//baseapi.SugarLogger.Debugf("StartOrEndOpStore successList:%v error:%v", successList, err)
|
||||
}
|
||||
return nil, err
|
||||
}, ctx, task, storeSkuList, singleStoreHandler.GetStoreSkusBatchSize(partner.FuncUpdateStoreSkusStock), true)
|
||||
@@ -134,7 +134,7 @@ func StartOrEndOpStore(isStart bool, startTime, endTime int16) {
|
||||
tasksch.HandleTask(task, nil, true).Run()
|
||||
_, err = task.GetResult(0)
|
||||
if err != nil {
|
||||
baseapi.SugarLogger.Errorf("tasksch error:%v", err)
|
||||
baseapi.SugarLogger.Debugf("StartOrEndOpStore tasksch error:%v", err)
|
||||
}
|
||||
}
|
||||
endProcessTime := time.Now().Unix()
|
||||
|
||||
Reference in New Issue
Block a user