From 213c53839c1ce301e54007dfc79aadd606f7a169 Mon Sep 17 00:00:00 2001 From: cheche <717840555@qq.com> Date: Tue, 20 Feb 2024 11:15:23 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=83=A8=E9=97=A8=E6=A0=91=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E6=B7=BB=E5=8A=A0no=E6=9D=A1=E4=BB=B6=E6=90=9C?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Organization/Services/Implements/DepartmentService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/DepartmentService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/DepartmentService.cs index a39166e4..779d7de9 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/DepartmentService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/DepartmentService.cs @@ -35,7 +35,7 @@ public class DepartmentService : IDepartmentService { var departments = await _dbContext .Queryable() - .WhereIF(!request.Search.IsEmpty(),x => x.Name.Contains(request.Search)).ToListAsync(); + .WhereIF(!request.Search.IsEmpty(),x => x.Name.Contains(request.Search) || x.No.Contains(request.Search)).ToListAsync(); var tops = departments.Where(x => x.PNo.IsEmpty()).Adapt>();