From bbc9d030ba737a2dc9e636f42298094142162e43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 18 May 2020 10:49:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=88=B7=E6=96=B0=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E7=BB=93=E7=AE=97=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/orderman/order.go | 3 +++ business/model/dao/act.go | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index 6848b520c..cc21f5a4c 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -434,6 +434,9 @@ func updateSingleOrderEarningPrice(order *model.GoodsOrder, db *dao.DaoDB) { for _, v := range order.Skus { if skuID := jxutils.GetSkuIDFromOrderSku(v); skuID > 0 { if actStoreSku := actStoreSkuMap.GetActStoreSku(jxStoreID, skuID, order.VendorID); actStoreSku != nil { + if skuID == 30611 { + fmt.Println("testGetActStoreSku", utils.Format4Output(actStoreSku, false)) + } v.EarningPrice = actStoreSku.EarningPrice if true { //v.StoreSubName != "" { // 之前这里为什么要加判断? v.StoreSubID = actStoreSku.ActID diff --git a/business/model/dao/act.go b/business/model/dao/act.go index 313e6eae2..3ed92ef4c 100644 --- a/business/model/dao/act.go +++ b/business/model/dao/act.go @@ -413,8 +413,6 @@ func GetEffectiveActStoreSkuInfo(db *DaoDB, actID int, vendorIDs []int, actType if globals.IsStoreSkuAct { sql += " AND t1.is_special = 0" } - fmt.Println(sql) - fmt.Println(sqlParams) err = GetRows(db, &actStoreSkuList, sql, sqlParams...) return actStoreSkuList, err }