From bb5a49293fdc550b7f1e2da84436afbac957516c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 8 May 2020 11:11:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B7=E6=96=B0=E4=BA=AC=E4=B8=9C=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=B9=B3=E5=8F=B0=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/orderman_ext.go | 5 ++--- controllers/jx_order.go | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index 7fe6e6c67..cac845506 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -1360,9 +1360,8 @@ func RefreshJdShopOrdersEarningPrice(ctx *jxcontext.Context, orderStartTime, ord if v.DueAmount != 0 { order := &model.GoodsOrder{} order.VendorOrderID = utils.Int64ToStr(v.OrderID) - order.EarningPrice = utils.Float64TwoInt64(v.DueAmount * 100) - order.NewEarningPrice = utils.Float64TwoInt64(v.DueAmount * 100) - dao.UpdateEntity(db, order, "EarningPrice", "NewEarningPrice") + order.TotalShopMoney = utils.Float64TwoInt64(v.DueAmount * 100) + dao.UpdateEntity(db, order, "TotalShopMoney") } } return err diff --git a/controllers/jx_order.go b/controllers/jx_order.go index 28c1cc51b..bb01fc5cd 100644 --- a/controllers/jx_order.go +++ b/controllers/jx_order.go @@ -1019,9 +1019,9 @@ func (c *OrderController) GetMatterStoreOrderCount() { // @Title 刷新京东商城订单结算价 // @Description 刷新京东商城订单结算价 -// @Param token header string true "认证token" +// @Param token header string true "认证token" // @Param fromTime formData string true "订单起始时间 格式:20060102" -// @Param toTime formData string false "订单结束时间" +// @Param toTime formData string true "订单结束时间" // @Success 200 {object} controllers.CallResult // @Failure 200 {object} controllers.CallResult // @router /RefreshJdShopOrdersEarningPrice [put]