正在显示
2 个修改的文件
包含
4 行增加
和
0 行删除
@@ -263,6 +263,7 @@ func (service OrderService) UpdateOrderPurpose(command command.UpdateOrderComman | @@ -263,6 +263,7 @@ func (service OrderService) UpdateOrderPurpose(command command.UpdateOrderComman | ||
263 | "partnerBonusPercent": command.PartnerBonusPercent, | 263 | "partnerBonusPercent": command.PartnerBonusPercent, |
264 | "salesmanBonusPercent": command.SalesmanBonusPercent, | 264 | "salesmanBonusPercent": command.SalesmanBonusPercent, |
265 | "orderStatus": command.OrderStatus, | 265 | "orderStatus": command.OrderStatus, |
266 | + "orderType": command.OrderType, | ||
266 | } | 267 | } |
267 | 268 | ||
268 | err = orderData.Update(updateMap) | 269 | err = orderData.Update(updateMap) |
@@ -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) |
-
请 注册 或 登录 后发表评论