...
|
...
|
@@ -105,7 +105,8 @@ func (c *OrderController) addOrderPurpose(param orderDetail) error { |
|
|
//业务员分红百分比
|
|
|
SalesmanBonusPercent: param.SalesmanRatio,
|
|
|
//订单类型
|
|
|
OrderType: domain.OrderIntention,
|
|
|
OrderType: domain.OrderIntention,
|
|
|
OrderStatus: domain.OrderStatusReserve,
|
|
|
}
|
|
|
err := orderSrv.CreateOrder(Createcmd)
|
|
|
return err
|
...
|
...
|
@@ -415,7 +416,7 @@ func (c *OrderController) UpdateOrderReal() { |
|
|
if param.Id == 0 {
|
|
|
err = c.addOrderReal(param)
|
|
|
} else {
|
|
|
err = c.editOrderPurpose(param)
|
|
|
err = c.editOrderReal(param)
|
|
|
}
|
|
|
if err != nil {
|
|
|
c.ResponseError(err)
|
...
|
...
|
@@ -454,6 +455,8 @@ func (c *OrderController) addOrderReal(param orderDetail) error { |
|
|
SalesmanBonusPercent: param.SalesmanRatio,
|
|
|
//订单类型
|
|
|
OrderType: domain.OrderReal,
|
|
|
//状态
|
|
|
OrderStatus: param.OrderStatue,
|
|
|
}
|
|
|
err := orderSrv.CreateOrder(Createcmd)
|
|
|
return err
|
...
|
...
|
@@ -481,6 +484,8 @@ func (c *OrderController) editOrderReal(param orderDetail) error { |
|
|
PartnerBonusPercent: param.PartnerRatio,
|
|
|
//业务员分红百分比
|
|
|
SalesmanBonusPercent: param.SalesmanRatio,
|
|
|
//状态
|
|
|
OrderStatus: param.OrderStatue,
|
|
|
}
|
|
|
orderSrv := orderService.NewOrderService(nil)
|
|
|
err := orderSrv.UpdateOrderReal(updateCmd)
|
...
|
...
|
|