作者 tangxvhui

更新:bug 修复

@@ -182,7 +182,7 @@ func (service OrderInfoService) CreateNewOrder(cmd command.CreateOrderCommand) ( @@ -182,7 +182,7 @@ func (service OrderInfoService) CreateNewOrder(cmd command.CreateOrderCommand) (
182 } 182 }
183 newOrder := &domain.OrderBase{ 183 newOrder := &domain.OrderBase{
184 OrderType: cmd.OrderType, OrderCode: cmd.OrderCode, 184 OrderType: cmd.OrderType, OrderCode: cmd.OrderCode,
185 - DeliveryCode: "", 185 + DeliveryCode: cmd.DeliveryCode,
186 Buyer: &domain.Buyer{ 186 Buyer: &domain.Buyer{
187 BuyerName: cmd.BuyerName, 187 BuyerName: cmd.BuyerName,
188 }, 188 },
@@ -59,7 +59,7 @@ type OrderBase struct { @@ -59,7 +59,7 @@ type OrderBase struct {
59 //上一次查看时间 已读情况 59 //上一次查看时间 已读情况
60 LastViewTime time.Time 60 LastViewTime time.Time
61 //是否关闭订单 61 //是否关闭订单
62 - IsDisable int 62 + IsDisable int `pg:",use_zero"`
63 } 63 }
64 64
65 var _ pg.BeforeUpdateHook = (*OrderBase)(nil) 65 var _ pg.BeforeUpdateHook = (*OrderBase)(nil)
@@ -502,7 +502,7 @@ func (c *OrderInfoController) GetOrderReal() { @@ -502,7 +502,7 @@ func (c *OrderInfoController) GetOrderReal() {
502 //实际订单 502 //实际订单
503 type postRealOrderDetail struct { 503 type postRealOrderDetail struct {
504 postPurposeOrderDetail 504 postPurposeOrderDetail
505 - ShipmentsId string //发货单号 505 + ShipmentsId string `json:"shipmentsId"` //发货单号
506 } 506 }
507 507
508 func (postData postRealOrderDetail) Valid() error { 508 func (postData postRealOrderDetail) Valid() error {
@@ -33,12 +33,6 @@ func init() { @@ -33,12 +33,6 @@ func init() {
33 beego.NSRouter("/list", &controllers.DividendsController{}, "POST:List"), 33 beego.NSRouter("/list", &controllers.DividendsController{}, "POST:List"),
34 ), 34 ),
35 beego.NSNamespace("/order", 35 beego.NSNamespace("/order",
36 - // beego.NSRouter("/purpose/list", &controllers.OrderController{}, "POST:PageListOrderPurpose"),  
37 - // beego.NSRouter("/purpose/update", &controllers.OrderController{}, "POST:UpdateOrderPurpose"),  
38 - // beego.NSRouter("/purpose/detail", &controllers.OrderController{}, "POST:GetOrderPurpose"),  
39 - // beego.NSRouter("/purpose/del", &controllers.OrderController{}, "POST:RemoveOrderPurpose"),  
40 - //beego.NSRouter("/purpose/convert", &controllers.OrderController{}, "POST:OrderPurposeToReal"),  
41 - // beego.NSRouter("/actual/list", &controllers.OrderController{}, "POST:PageListOrderReal"),  
42 beego.NSRouter("/purpose/list", &controllers.OrderInfoController{}, "POST:PageListOrderPurpose"), 36 beego.NSRouter("/purpose/list", &controllers.OrderInfoController{}, "POST:PageListOrderPurpose"),
43 beego.NSRouter("/purpose/update", &controllers.OrderInfoController{}, "POST:UpdateOrderPurpose"), 37 beego.NSRouter("/purpose/update", &controllers.OrderInfoController{}, "POST:UpdateOrderPurpose"),
44 beego.NSRouter("/purpose/detail", &controllers.OrderInfoController{}, "POST:GetOrderPurpose"), 38 beego.NSRouter("/purpose/detail", &controllers.OrderInfoController{}, "POST:GetOrderPurpose"),