From ce8165d70384e41b5f030ddc02c0758c08029214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 16 Aug 2024 15:16:54 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/sync_store_sku.go | 11 ++++++++++- business/partner/purchase/mtwm/order_comment.go | 2 +- business/partner/purchase/tao_vegetable/store_sku2.go | 7 ------- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index 70ccb5b6a..d72cf1666 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -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, func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) { step := batchItemList[0].(int) diff --git a/business/partner/purchase/mtwm/order_comment.go b/business/partner/purchase/mtwm/order_comment.go index f3ea9ce85..99ecf9a33 100644 --- a/business/partner/purchase/mtwm/order_comment.go +++ b/business/partner/purchase/mtwm/order_comment.go @@ -113,7 +113,7 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error) } 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 != "" { orderComment.VendorOrderID2 = vendorOrderID } diff --git a/business/partner/purchase/tao_vegetable/store_sku2.go b/business/partner/purchase/tao_vegetable/store_sku2.go index 6dd655e95..b8d54e6c0 100644 --- a/business/partner/purchase/tao_vegetable/store_sku2.go +++ b/business/partner/purchase/tao_vegetable/store_sku2.go @@ -588,14 +588,7 @@ func (p *PurchaseHandler) UpdateStoreSkusStatus(ctx *jxcontext.Context, vendorOr } param.ParamList = &updateSkuList - if vendorStoreID == "JX668428" { - globals.SugarLogger.Debugf("============UpdateStoreSkusStatus := %s", utils.Format4Output(param, false)) - } 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 { globals.SugarLogger.Debugf("UpdateStoreSku Tao Vegetable err : %s", err.Error()) }