From e7ce6fc40f5bfe448d51227420b260c86f9b84cd Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 7 Aug 2024 17:43:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/db/db_guide_order.go | 3 +++ app/db/db_hw_order.go | 4 +++- app/db/db_life_order.go | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/db/db_guide_order.go b/app/db/db_guide_order.go index 3172919..6581ef1 100644 --- a/app/db/db_guide_order.go +++ b/app/db/db_guide_order.go @@ -93,6 +93,9 @@ func GetGuideOrderListTotal(args map[string]string) ([]model.GuideOrder, int64) if args["zuid"] != "" { sess = sess.And("station_uid=?", args["zuid"]) } + if args["oid"] != "" { + sess = sess.And("pvd_oid like ?", "%"+args["oid"]+"%") + } if args["status"] != "" { sess = sess.And("status=?", args["status"]) } diff --git a/app/db/db_hw_order.go b/app/db/db_hw_order.go index d16fdda..d9bc13a 100644 --- a/app/db/db_hw_order.go +++ b/app/db/db_hw_order.go @@ -96,7 +96,9 @@ func GetHwOrderListTotal(args map[string]string) ([]model.HwOrder, int64) { if args["status"] != "" { sess = sess.And("status=?", args["status"]) } - + if args["oid"] != "" { + sess = sess.And("pvd_oid like ?", "%"+args["oid"]+"%") + } sort := "create_time desc,id desc" if args["sort"] != "" { sort = args["sort"] diff --git a/app/db/db_life_order.go b/app/db/db_life_order.go index 03d0792..88ad814 100644 --- a/app/db/db_life_order.go +++ b/app/db/db_life_order.go @@ -99,6 +99,9 @@ func GetLifeOrderListTotal(args map[string]string) ([]model.LifeOrder, int64) { if args["uid"] != "" { sess = sess.And("uid=?", args["uid"]) } + if args["oid"] != "" { + sess = sess.And("pvd_oid like ?", "%"+args["oid"]+"%") + } if args["zuid"] != "" { sess = sess.And("station_uid=?", args["zuid"]) }