CaculateSkuEarningPrice中调用ConstrainPayPercentage

+RefreshOrdersPriceInfo
This commit is contained in:
gazebo
2020-01-03 15:56:02 +08:00
parent d7aa244528
commit e89af0849e
5 changed files with 83 additions and 1 deletions

View File

@@ -925,3 +925,23 @@ func (c *OrderController) ComplaintRider() {
return retVal, "", err
})
}
// @Title 重新计算订单结算信息
// @Description 重新计算订单结算信息
// @Param token header string true "认证token"
// @Param fromTime formData string true "订单起始时间"
// @Param toTime formData string false "订单结束时间"
// @Param isAsync formData bool false "是否异步操作"
// @Param isContinueWhenError formData bool false "单个同步失败是否继续缺省false"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /RefreshOrdersPriceInfo [post]
func (c *OrderController) RefreshOrdersPriceInfo() {
c.callRefreshOrdersPriceInfo(func(params *tOrderRefreshOrdersPriceInfoParams) (retVal interface{}, errCode string, err error) {
timeList, err := jxutils.BatchStr2Time(params.FromTime, params.ToTime)
if err == nil {
retVal, err = orderman.RefreshOrdersPriceInfo(params.Ctx, timeList[0], timeList[1], params.IsAsync, params.IsContinueWhenError)
}
return retVal, "", err
})
}