From cd013169c0e20c8cf3651d9c378934b1e5f601a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 9 Jun 2020 10:03:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E5=95=86=E5=9F=8E=E5=95=86?= =?UTF-8?q?=E5=93=81=E8=A7=84=E6=A0=BC=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/orderman/order.go | 3 --- business/partner/purchase/jdshop/store_sku.go | 2 +- main.go | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index 030095ca1..eba84c152 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -434,9 +434,6 @@ func updateSingleOrderEarningPrice(order *model.GoodsOrder, db *dao.DaoDB) { } } if len(skuIDMap) > 0 { - if order.VendorOrderID == "5000356075877900459" { - fmt.Println("testupdateSingleOrderEarningPrice", order.VendorOrderID) - } actStoreSkuList, err := dao.GetEffectiveActStoreSkuInfo(db, 0, []int{order.VendorID}, model.ActTypeAll, []int{jxStoreID}, jxutils.IntMap2List(skuIDMap), order.OrderCreatedAt, order.OrderCreatedAt) if err != nil { globals.SugarLogger.Errorf("updateOrderSkuOtherInfo can not get sku promotion info for error:%v", err) diff --git a/business/partner/purchase/jdshop/store_sku.go b/business/partner/purchase/jdshop/store_sku.go index c824cb56d..2978c7500 100644 --- a/business/partner/purchase/jdshop/store_sku.go +++ b/business/partner/purchase/jdshop/store_sku.go @@ -773,7 +773,7 @@ func buildUpdateSkusParam(storeSku *dao.StoreSkuSyncInfo, v *dao.StoreSkuSyncInf multiPropSku []*jdshopapi.CreateSkuParamAttrs ) valuesSku, maxNo, _ := api.JdShopAPI.FindValuesByAttrId(attrIDs["规格"]) - specQuality := utils.Float64ToStr(float64(v.SpecQuality)) + v.SpecUnit + specQuality := strings.TrimRight(fmt.Sprintf("%.2f", float64(v.SpecQuality)), "0.") + v.SpecUnit for _, v := range valuesSku { if v.Name == specQuality { ggValueID = v.ID diff --git a/main.go b/main.go index 59532647a..88dbd1969 100644 --- a/main.go +++ b/main.go @@ -146,6 +146,7 @@ func main() { } orderman.LoadPendingOrders() + orderman.SaveJdsOrders(nil, time.Now().Add(-2*time.Hour), time.Now()) // 延时的原因是等回调准备好 if globals.IsProductEnv() || beego.BConfig.RunMode == "beta" {