...
|
...
|
@@ -141,6 +141,8 @@ func (c *OrderController) editOrderPurpose(param orderDetail) error { |
|
|
SalesmanBonusPercent: param.SalesmanRatio,
|
|
|
|
|
|
OrderStatus: domain.OrderStatusReserve,
|
|
|
|
|
|
OrderType: domain.OrderIntention,
|
|
|
}
|
|
|
orderSrv := orderService.NewOrderService(nil)
|
|
|
err := orderSrv.UpdateOrderPurpose(updateCmd)
|
...
|
...
|
@@ -357,6 +359,7 @@ func (c *OrderController) OrderPurposeToReal() { |
|
|
PartnerBonusPercent: param.PartnerRatio,
|
|
|
SalesmanBonusPercent: param.SalesmanRatio,
|
|
|
OrderStatus: param.OrderStatue,
|
|
|
OrderType: domain.OrderReal,
|
|
|
})
|
|
|
} else {
|
|
|
err = c.addOrderReal(param)
|
...
|
...
|
|