From d9ea27252ce4bd955cb137d58394de75cf61106c Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 30 Apr 2024 21:49:30 +0800 Subject: [PATCH] =?UTF-8?q?1=E5=90=8E=E5=8F=B0=20=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/db/db_order_goods_doing.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/db/db_order_goods_doing.go b/app/db/db_order_goods_doing.go index fe01d43..904d0f2 100644 --- a/app/db/db_order_goods_doing.go +++ b/app/db/db_order_goods_doing.go @@ -10,11 +10,11 @@ func GetOrderGoodsDoingList(eg *xorm.Engine, param map[string]string) (*[]model. var order []model.OrderGoodsDoingFlow sess := eg.Where("1=1") if param["admin_name"] != "" { - var data []model.Admin - eg.Where("memo like ?", "%"+param["admin_name"]+"%").Find(&data) + var data []model.Staff + eg.Where("name like ?", "%"+param["admin_name"]+"%").Find(&data) ids := []int{-1} for _, v := range data { - ids = append(ids, v.AdmId) + ids = append(ids, v.Id) } sess.In("admin_id", ids) }