作者 tangxvhui

更新:bug 修复

... ... @@ -182,7 +182,7 @@ func (service OrderInfoService) CreateNewOrder(cmd command.CreateOrderCommand) (
}
newOrder := &domain.OrderBase{
OrderType: cmd.OrderType, OrderCode: cmd.OrderCode,
DeliveryCode: "",
DeliveryCode: cmd.DeliveryCode,
Buyer: &domain.Buyer{
BuyerName: cmd.BuyerName,
},
... ...
... ... @@ -59,7 +59,7 @@ type OrderBase struct {
//上一次查看时间 已读情况
LastViewTime time.Time
//是否关闭订单
IsDisable int
IsDisable int `pg:",use_zero"`
}
var _ pg.BeforeUpdateHook = (*OrderBase)(nil)
... ...
... ... @@ -502,7 +502,7 @@ func (c *OrderInfoController) GetOrderReal() {
//实际订单
type postRealOrderDetail struct {
postPurposeOrderDetail
ShipmentsId string //发货单号
ShipmentsId string `json:"shipmentsId"` //发货单号
}
func (postData postRealOrderDetail) Valid() error {
... ...
... ... @@ -33,12 +33,6 @@ func init() {
beego.NSRouter("/list", &controllers.DividendsController{}, "POST:List"),
),
beego.NSNamespace("/order",
// beego.NSRouter("/purpose/list", &controllers.OrderController{}, "POST:PageListOrderPurpose"),
// beego.NSRouter("/purpose/update", &controllers.OrderController{}, "POST:UpdateOrderPurpose"),
// beego.NSRouter("/purpose/detail", &controllers.OrderController{}, "POST:GetOrderPurpose"),
// beego.NSRouter("/purpose/del", &controllers.OrderController{}, "POST:RemoveOrderPurpose"),
//beego.NSRouter("/purpose/convert", &controllers.OrderController{}, "POST:OrderPurposeToReal"),
// beego.NSRouter("/actual/list", &controllers.OrderController{}, "POST:PageListOrderReal"),
beego.NSRouter("/purpose/list", &controllers.OrderInfoController{}, "POST:PageListOrderPurpose"),
beego.NSRouter("/purpose/update", &controllers.OrderInfoController{}, "POST:UpdateOrderPurpose"),
beego.NSRouter("/purpose/detail", &controllers.OrderInfoController{}, "POST:GetOrderPurpose"),
... ...