...
|
...
|
@@ -71,6 +71,7 @@ func (repository OrderRepository) Save(orderInfo *domain.Order) error { |
|
|
PartnerBonusPercent: orderInfo.PartnerBonusPercent,
|
|
|
SalesmanBonusPercent: orderInfo.SalesmanBonusPercent,
|
|
|
BonusStatus: 1,
|
|
|
Reason: orderInfo.Reason,
|
|
|
}
|
|
|
if m.Id == 0 {
|
|
|
err = tx.Insert(m)
|
...
|
...
|
@@ -80,7 +81,7 @@ func (repository OrderRepository) Save(orderInfo *domain.Order) error { |
|
|
Column("order_type", "order_code", "order_name", "order_status", "order_count",
|
|
|
"order_actual_count", "order_amount", "order_actual_amount", "order_payment_amount",
|
|
|
"order_region_info", "buyer", "partner_id", "partner_bonus_percent", "salesman_bonus_percent",
|
|
|
"update_at").
|
|
|
"update_at", "reason").
|
|
|
Update()
|
|
|
}
|
|
|
return err
|
...
|
...
|
|