...
|
...
|
@@ -139,6 +139,8 @@ func (c *OrderController) editOrderPurpose(param orderDetail) error { |
|
|
PartnerBonusPercent: param.PartnerRatio,
|
|
|
//业务员分红百分比
|
|
|
SalesmanBonusPercent: param.SalesmanRatio,
|
|
|
|
|
|
OrderStatus: domain.OrderStatusReserve,
|
|
|
}
|
|
|
orderSrv := orderService.NewOrderService(nil)
|
|
|
err := orderSrv.UpdateOrderPurpose(updateCmd)
|
...
|
...
|
@@ -343,12 +345,12 @@ func (c *OrderController) OrderPurposeToReal() { |
|
|
}
|
|
|
orderSrv := orderService.NewOrderService(nil)
|
|
|
if param.Id > 0 {
|
|
|
err = orderSrv.UpdateOrderReal(orderCmd.UpdateOrderRealCommand{
|
|
|
err = orderSrv.UpdateOrderPurpose(orderCmd.UpdateOrderCommand{
|
|
|
Id: param.Id,
|
|
|
OrderCode: param.OrderId,
|
|
|
OrderName: param.OrderName,
|
|
|
OrderActualCount: param.OrderNum,
|
|
|
OrderActualAmount: param.OrderPrice,
|
|
|
OrderCount: param.OrderNum,
|
|
|
OrderAmount: param.OrderPrice,
|
|
|
BuyerPhone: param.BuyerPhone,
|
|
|
BuyerAddress: param.Address,
|
|
|
OrderRegion: param.OrderDist,
|
...
|
...
|
|