冲突处理

This commit is contained in:
苏尹岚
2020-01-06 08:54:48 +08:00
10 changed files with 173 additions and 66 deletions

View File

@@ -968,3 +968,23 @@ func (c *OrderController) AddUpdateOrdersSupplement() {
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
})
}