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"]) }