20230630人员自定义卡号验证

This commit is contained in:
2023-06-30 16:24:19 +08:00
parent 5d70c6f745
commit f20df61fe5
12 changed files with 343 additions and 4049 deletions
+4 -2
View File
@@ -642,7 +642,9 @@ namespace BLL
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
List<Model.Person_Persons> list = new List<Model.Person_Persons>();
var getPersons = from x in db.Person_Persons select x;
var getPersons = from x in db.Person_Persons
where x.IsPost == true
select x;
if (!string.IsNullOrEmpty(unitId))
{
getPersons = getPersons.Where(x => x.UnitId == unitId);
@@ -651,7 +653,7 @@ namespace BLL
{
getPersons = getPersons.Where(x => x.DepartId == DepartId);
}
list = getPersons.OrderBy(x=>x.UnitId).OrderBy(x=>x.PersonName).ToList();
list = getPersons.OrderBy(x => x.UnitId).OrderBy(x => x.PersonName).ToList();
return list;
}
}