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]