作者 tangxvhui

更新

... ... @@ -375,6 +375,7 @@ func (service OrderService) UpdateOrderReal(command command.UpdateOrderRealComma
"salesmanBonusPercent": command.SalesmanBonusPercent,
"orderStatus": command.OrderStatus,
"orderType": domain.OrderReal,
"reason": command.Reason,
})
if err != nil {
return lib.ThrowError(lib.BUSINESS_ERROR, err.Error())
... ...
... ... @@ -111,6 +111,9 @@ func (order *Order) Update(data map[string]interface{}) error {
if v, ok := data["salesmanBonusPercent"]; ok {
order.SalesmanBonusPercent = v.(float64)
}
if v, ok := data["reason"]; ok {
order.Reason = v.(string)
}
return nil
}
... ...