作者 tangxvhui

bug 修复

... ... @@ -263,6 +263,7 @@ func (service OrderService) UpdateOrderPurpose(command command.UpdateOrderComman
"partnerBonusPercent": command.PartnerBonusPercent,
"salesmanBonusPercent": command.SalesmanBonusPercent,
"orderStatus": command.OrderStatus,
"orderType": command.OrderType,
}
err = orderData.Update(updateMap)
... ...
... ... @@ -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)
... ...