作者 tangxvhui

添加依赖

@@ -473,6 +473,7 @@ func (service OrderInfoService) Delivery(cmd command.OrderDeliveryCommand) error @@ -473,6 +473,7 @@ func (service OrderInfoService) Delivery(cmd command.OrderDeliveryCommand) error
473 } 473 }
474 oldOrderData.DeliveryCode = cmd.DeliveryCode 474 oldOrderData.DeliveryCode = cmd.DeliveryCode
475 oldOrderData.DeliveryTime = time.Now() 475 oldOrderData.DeliveryTime = time.Now()
  476 + oldOrderData.OrderType = domain.OrderReal
476 err = oldOrderData.Compute() 477 err = oldOrderData.Compute()
477 if err != nil { 478 if err != nil {
478 return lib.ThrowError(lib.INTERNAL_SERVER_ERROR, fmt.Sprintf("核算订单中合计的数值失败:%s", err)) 479 return lib.ThrowError(lib.INTERNAL_SERVER_ERROR, fmt.Sprintf("核算订单中合计的数值失败:%s", err))
@@ -23,7 +23,6 @@ require ( @@ -23,7 +23,6 @@ require (
23 github.com/mattn/go-sqlite3 v1.10.0 23 github.com/mattn/go-sqlite3 v1.10.0
24 github.com/pelletier/go-toml v1.2.0 // indirect 24 github.com/pelletier/go-toml v1.2.0 // indirect
25 github.com/pkg/errors v0.8.0 // indirect 25 github.com/pkg/errors v0.8.0 // indirect
26 - github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644  
27 github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726 // indirect 26 github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726 // indirect
28 github.com/siddontang/ledisdb v0.0.0-20181029004158-becf5f38d373 27 github.com/siddontang/ledisdb v0.0.0-20181029004158-becf5f38d373
29 github.com/siddontang/rdb v0.0.0-20150307021120-fc89ed2e418d // indirect 28 github.com/siddontang/rdb v0.0.0-20150307021120-fc89ed2e418d // indirect