|
@@ -141,6 +141,8 @@ func (c *OrderController) editOrderPurpose(param orderDetail) error { |
|
@@ -141,6 +141,8 @@ func (c *OrderController) editOrderPurpose(param orderDetail) error { |
141
|
SalesmanBonusPercent: param.SalesmanRatio,
|
141
|
SalesmanBonusPercent: param.SalesmanRatio,
|
142
|
|
142
|
|
143
|
OrderStatus: domain.OrderStatusReserve,
|
143
|
OrderStatus: domain.OrderStatusReserve,
|
|
|
144
|
+
|
|
|
145
|
+ OrderType: domain.OrderIntention,
|
144
|
}
|
146
|
}
|
145
|
orderSrv := orderService.NewOrderService(nil)
|
147
|
orderSrv := orderService.NewOrderService(nil)
|
146
|
err := orderSrv.UpdateOrderPurpose(updateCmd)
|
148
|
err := orderSrv.UpdateOrderPurpose(updateCmd)
|
|
@@ -357,6 +359,7 @@ func (c *OrderController) OrderPurposeToReal() { |
|
@@ -357,6 +359,7 @@ func (c *OrderController) OrderPurposeToReal() { |
357
|
PartnerBonusPercent: param.PartnerRatio,
|
359
|
PartnerBonusPercent: param.PartnerRatio,
|
358
|
SalesmanBonusPercent: param.SalesmanRatio,
|
360
|
SalesmanBonusPercent: param.SalesmanRatio,
|
359
|
OrderStatus: param.OrderStatue,
|
361
|
OrderStatus: param.OrderStatue,
|
|
|
362
|
+ OrderType: domain.OrderReal,
|
360
|
})
|
363
|
})
|
361
|
} else {
|
364
|
} else {
|
362
|
err = c.addOrderReal(param)
|
365
|
err = c.addOrderReal(param)
|