刷新京东订单平台结算价

This commit is contained in:
苏尹岚
2020-05-08 11:11:23 +08:00
parent 29065aa419
commit bb5a49293f
2 changed files with 4 additions and 5 deletions

View File

@@ -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

View File

@@ -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]