From 68e35a52ad3157cba713993cb1f9df7a3346e10a Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 14 May 2024 17:34:12 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=B8=8B=E5=8D=95=E8=A7=84=E5=88=99=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/svc/order/svc_order_list.go | 1 + app/db/db_order_list.go | 3 +++ 2 files changed, 4 insertions(+) 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"]) }