作者 tangxvhui

更新

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