diff --git a/app/admin/svc/order/svc_order_list.go b/app/admin/svc/order/svc_order_list.go index 1c961f1..4359851 100644 --- a/app/admin/svc/order/svc_order_list.go +++ b/app/admin/svc/order/svc_order_list.go @@ -447,6 +447,7 @@ func OrderDetail(c *gin.Context) { } var res = map[string]interface{}{ + "ord_no": order.OrdNo, "buy_phone": order.BuyPhone, "oid": utils.Int64ToStr(order.Oid), "id": utils.IntToStr(order.Id), diff --git a/app/db/db_order_list.go b/app/db/db_order_list.go index 11c63c4..5f847bb 100644 --- a/app/db/db_order_list.go +++ b/app/db/db_order_list.go @@ -51,6 +51,9 @@ func GetOrderList(eg *xorm.Engine, param map[string]string) (*[]model.Order, int if param["oid"] != "" { sess.And("oid like ?", "%"+param["oid"]+"%") } + if param["ord_no"] != "" { + sess.And("ord_no like ?", "%"+param["ord_no"]+"%") + } if param["state"] != "" { sess.And("state =?", param["state"]) }