刷新京东订单平台结算价
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user