作者 tangxvhui

bug修复

@@ -336,7 +336,7 @@ func (c *OrderController) OrderPurposeToReal() { @@ -336,7 +336,7 @@ func (c *OrderController) OrderPurposeToReal() {
336 return 336 return
337 } 337 }
338 orderSrv := orderService.NewOrderService(nil) 338 orderSrv := orderService.NewOrderService(nil)
339 - if param.Id == 0 { 339 + if param.Id > 0 {
340 err = orderSrv.UpdateOrderReal(orderCmd.UpdateOrderRealCommand{ 340 err = orderSrv.UpdateOrderReal(orderCmd.UpdateOrderRealCommand{
341 Id: param.Id, 341 Id: param.Id,
342 OrderCode: param.OrderId, 342 OrderCode: param.OrderId,