1
This commit is contained in:
@@ -750,7 +750,16 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if storeID == 668428 {
|
||||||
|
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))
|
||||||
|
}
|
||||||
task := tasksch.NewParallelTask("syncStoreSkuNew", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(isContinueWhenError2), ctx,
|
task := tasksch.NewParallelTask("syncStoreSkuNew", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(isContinueWhenError2), ctx,
|
||||||
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
|
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
|
||||||
step := batchItemList[0].(int)
|
step := batchItemList[0].(int)
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(foodNameList) > 0 {
|
if len(foodNameList) > 0 {
|
||||||
vendorOrderID, _ := dao.GetBadCommentOrderId(storeDetail.ID, utils.Str2Time(startDateStr), utils.Str2Time(endDateStr), nameList)
|
vendorOrderID, _ := dao.GetBadCommentOrderId(storeDetail.ID, time.Now().Add(-RefreshCommentTime), startTime, nameList)
|
||||||
if vendorOrderID != "" {
|
if vendorOrderID != "" {
|
||||||
orderComment.VendorOrderID2 = vendorOrderID
|
orderComment.VendorOrderID2 = vendorOrderID
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -588,14 +588,7 @@ func (p *PurchaseHandler) UpdateStoreSkusStatus(ctx *jxcontext.Context, vendorOr
|
|||||||
}
|
}
|
||||||
|
|
||||||
param.ParamList = &updateSkuList
|
param.ParamList = &updateSkuList
|
||||||
if vendorStoreID == "JX668428" {
|
|
||||||
globals.SugarLogger.Debugf("============UpdateStoreSkusStatus := %s", utils.Format4Output(param, false))
|
|
||||||
}
|
|
||||||
result, err := api.UpdateStoreSku(param)
|
result, err := api.UpdateStoreSku(param)
|
||||||
if vendorStoreID == "JX668428" {
|
|
||||||
globals.SugarLogger.Debugf("============result := %s", utils.Format4Output(result, false))
|
|
||||||
globals.SugarLogger.Debugf("============result := %v", err)
|
|
||||||
}
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
globals.SugarLogger.Debugf("UpdateStoreSku Tao Vegetable err : %s", err.Error())
|
globals.SugarLogger.Debugf("UpdateStoreSku Tao Vegetable err : %s", err.Error())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user