订单结算价刷新

This commit is contained in:
苏尹岚
2019-11-06 09:19:33 +08:00
parent 5c94299f6c
commit 42db76c4ea
3 changed files with 45 additions and 56 deletions

View File

@@ -748,13 +748,13 @@ func (c *OrderController) AmendMissingOrders() {
// @Param toDate formData string true "订单结束日期"
// @Param isAsync formData bool true "是否异步操作"
// @Param isContinueWhenError formData bool false "单个失败是否继续缺省true"
// @Param vendorOrderId formData string false "订单号(测试用)"
// @Param vendorOrderId formData int false "订单号(测试用)"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /RefreshHistoryOrdersEarningPrice [post]
func (c *OrderController) RefreshHistoryOrdersEarningPrice() {
c.callRefreshHistoryOrdersEarningPrice(func(params *tOrderRefreshHistoryOrdersEarningPriceParams) (retVal interface{}, errCode string, err error) {
err = orderman.RefreshHistoryOrdersEarningPrice(params.Ctx, params.FromDate, params.ToDate, params.IsAsync, params.IsContinueWhenError, params.VendorOrderId)
err = orderman.FixedOrderManager.RefreshHistoryOrdersEarningPrice(params.Ctx, params.FromDate, params.ToDate, params.IsAsync, params.IsContinueWhenError, params.VendorOrderId)
return retVal, "", err
})
}