From 999dedf5c59292ec9207bccbaefbf955fe86714e Mon Sep 17 00:00:00 2001 From: Leo Date: Mon, 31 Jul 2023 18:20:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E4=BF=AE=E6=94=B9=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=89=A9=E6=96=99=E5=8F=B7=E6=A3=80=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FactorySystemBll/MaterialTeamworkBll.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FactorySystemBll/MaterialTeamworkBll.cs b/FactorySystemBll/MaterialTeamworkBll.cs index e462150..1496c03 100644 --- a/FactorySystemBll/MaterialTeamworkBll.cs +++ b/FactorySystemBll/MaterialTeamworkBll.cs @@ -493,7 +493,7 @@ namespace FactorySystemBll totalNumber = 0; List materialList = db.Queryable() - .WhereIF(!string.IsNullOrEmpty(materialName.Trim()), a => a.FName.Contains(materialName)) + .WhereIF(!string.IsNullOrEmpty(materialName.Trim()), a => a.FName.Contains(materialName) || a.FCode.Contains(materialName)) .OrderBy((a) => a.FID, OrderByType.Desc) .ToPageList(pageNumber, pageSize, ref totalNumber);