From 07e6aef8e864171778345df3574cf163a0c6bef5 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期二, 21 十一月 2023 17:27:49 +0800
Subject: [PATCH] bug修改

---
 service/test/product.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/service/test/product.go b/service/test/product.go
index 8ad82b5..f73d77e 100644
--- a/service/test/product.go
+++ b/service/test/product.go
@@ -115,7 +115,7 @@
 	db := global.GVA_DB.Model(&test.Material{})
 	var ps []test.Material
 	if info.Keyword != "" {
-		db = db.Where("name LIKE ? or number LIKE ?", "%"+info.Name+"%", "%"+info.Number+"%")
+		db = db.Where("name LIKE ? or id LIKE ?", "%"+info.Keyword+"%", "%"+info.Keyword+"%")
 	}
 
 	db = db.Where("purchase_type = ?", test.PurchaseTypeOutSource)

--
Gitblit v1.8.0