20230704卡号空判断加空字符串判断

This commit is contained in:
杨红卫 2023-07-04 18:15:19 +08:00
parent 9e33e4d6d3
commit b68d5e0937
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{