刷新订单历史结算价修改

This commit is contained in:
苏尹岚
2019-11-05 18:17:08 +08:00
parent 53a194a135
commit cf85ed0dd2
3 changed files with 44 additions and 11 deletions

View File

@@ -748,12 +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 "订单号(测试用)"
// @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)
err = orderman.RefreshHistoryOrdersEarningPrice(params.Ctx, params.FromDate, params.ToDate, params.IsAsync, params.IsContinueWhenError, params.VendorOrderId)
return retVal, "", err
})
}