Browse Source

部门关键字检索

应县
ndbs 7 months ago
parent
commit
7688e36199
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Organization/Department/DepartmentBLL.cs

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Organization/Department/DepartmentBLL.cs View File

@@ -68,7 +68,8 @@ namespace Learun.Application.Organization
List<DepartmentEntity> list = GetList(companyId);
if (!string.IsNullOrEmpty(keyWord))
{
list = list.FindAll(t => t.F_FullName.Contains(keyWord) || t.F_EnCode.Contains(keyWord) || t.F_ShortName.Contains(keyWord));
//list = list.FindAll(t => t.F_FullName.Contains(keyWord) || t.F_EnCode.Contains(keyWord) || t.F_ShortName.Contains(keyWord));
list = list.FindAll(t => (!string.IsNullOrEmpty(t.F_FullName) && t.F_FullName.Contains(keyWord)) || (!string.IsNullOrEmpty(t.F_EnCode) && t.F_EnCode.Contains(keyWord)) || (!string.IsNullOrEmpty(t.F_ShortName) && t.F_ShortName.Contains(keyWord)));
}
return list;
}


Loading…
Cancel
Save