From 706002f629821c1732ded0bd2a2061fd488e7a8a Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 3 Jun 2024 18:36:33 +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_order_list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/db/db_order_list.go b/app/db/db_order_list.go index 02ccbc3..609332f 100644 --- a/app/db/db_order_list.go +++ b/app/db/db_order_list.go @@ -100,7 +100,7 @@ func GetOrderList(eg *xorm.Engine, param map[string]string) (*[]model.Order, int func GetOrderListExport(eg *xorm.Engine, param map[string]string) (*[]model.Order, int64) { var order []model.Order - sess := eg.Where("1=1") + sess := eg.Where("state!=5") if param["phone"] != "" { sess.And("buy_phone like ?", "%"+param["phone"]+"%") } @@ -143,7 +143,7 @@ func GetOrderListExport(eg *xorm.Engine, param map[string]string) (*[]model.Orde func GetOrderListOutput(eg *xorm.Engine, param map[string]string) *[]model.Order { var order []model.Order - sess := eg.Where("1=1") + sess := eg.Where("state!=5") if param["phone"] != "" { sess.And("buy_phone like ?", "%"+param["phone"]+"%") }