diff --git a/SGGL/BLL/OpenService/GetDataService.cs b/SGGL/BLL/OpenService/GetDataService.cs index 92605ba5..660eb57f 100644 --- a/SGGL/BLL/OpenService/GetDataService.cs +++ b/SGGL/BLL/OpenService/GetDataService.cs @@ -518,7 +518,7 @@ namespace BLL { int count = 0; var getPersons = from x in db.SitePerson_Person - where x.States == Const.State_1 && x.CardNo == null && x.ProjectId == projectId + where x.States == Const.State_1 && (x.CardNo == null || x.CardNo =="" || x.CardNo.Length==0) && x.ProjectId == projectId select x; foreach (var item in getPersons) {