From 35acfcf795468fdf36204942ba5153af062e4a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 5 Aug 2024 13:42:45 +0800 Subject: [PATCH] 1 --- business/model/dao/dao_order_sku_financial.go | 14 ++++++-------- business/partner/purchase/mtwm/order_comment.go | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/business/model/dao/dao_order_sku_financial.go b/business/model/dao/dao_order_sku_financial.go index fd3038006..228acf9c4 100644 --- a/business/model/dao/dao_order_sku_financial.go +++ b/business/model/dao/dao_order_sku_financial.go @@ -38,14 +38,12 @@ func GetBadCommentOrderId(jxStoreId int, startTime, endTime time.Time, foodNameL vendorOrderIdList = append(vendorOrderIdList, v.VendorOrderId) } } - if jxStoreId == 669201 { - globals.SugarLogger.Debugf("commentOrder name list := %s", utils.Format4Output(commentOrder, false)) - globals.SugarLogger.Debugf("foodNameList name list := %s", utils.Format4Output(foodNameList, false)) - globals.SugarLogger.Debugf("jxStoreId name list := %s", utils.Format4Output(jxStoreId, false)) - globals.SugarLogger.Debugf("jxStoreId name list start := %s", utils.Format4Output(startTime, false)) - globals.SugarLogger.Debugf("jxStoreId name list endTime:= %s", utils.Format4Output(endTime, false)) - globals.SugarLogger.Debugf("--------------------------------------") - } + globals.SugarLogger.Debugf("commentOrder name list := %s", utils.Format4Output(commentOrder, false)) + globals.SugarLogger.Debugf("foodNameList name list := %s", utils.Format4Output(foodNameList, false)) + globals.SugarLogger.Debugf("jxStoreId name list := %s", utils.Format4Output(jxStoreId, false)) + globals.SugarLogger.Debugf("jxStoreId name list start := %s", utils.Format4Output(startTime, false)) + globals.SugarLogger.Debugf("jxStoreId name list endTime:= %s", utils.Format4Output(endTime, false)) + globals.SugarLogger.Debugf("--------------------------------------") sql2 := `SELECT * FROM order_sku_financial WHERE vendor_order_id = ? AND is_afs_order = 0 AND vendor_id = 1 ` mathProbability := make(map[string]float64, 0) diff --git a/business/partner/purchase/mtwm/order_comment.go b/business/partner/purchase/mtwm/order_comment.go index 1439efb92..b7e41803d 100644 --- a/business/partner/purchase/mtwm/order_comment.go +++ b/business/partner/purchase/mtwm/order_comment.go @@ -235,7 +235,7 @@ func CommentListData(db *dao.DaoDB, skuList []*mtwmapi.CommentsList, startTime, store, err := dao.GetStoreDetailByVendorStoreID(db, orderComment.VendorStoreID, orderComment.VendorID, "") if err != nil { - globals.SugarLogger.Debugf("获取美团外卖差评列表,失败:%v", err) + globals.SugarLogger.Debugf("获取美团外卖差评列表,失败:%s,%v", orderComment.VendorStoreID, err) continue } orderComment.StoreID = store.ID