This commit is contained in:
2022-09-26 18:41:24 +08:00
parent 8b9e98193a
commit 579af300d3
105 changed files with 102 additions and 28599 deletions
+3 -3
View File
@@ -22,18 +22,18 @@ namespace BLL
string name = string.Empty;
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
getPerson = db.SitePerson_Person.Where(x => x.IdentityCard == idCard).OrderByDescending(x => x.InTime).FirstOrDefault();
getPerson = db.SitePerson_Person.FirstOrDefault(x => x.IdentityCard == idCard && x.ProjectId == projectId);
if (getPerson != null)
{
name = getPerson.PersonName;
projectId = getPerson.ProjectId;
}
else
{
getPerson = db.SitePerson_Person.FirstOrDefault(x => x.IdentityCard == idCard && x.ProjectId == projectId);
getPerson = db.SitePerson_Person.Where(x => x.IdentityCard == idCard).OrderByDescending(x => x.InTime).FirstOrDefault();
if (getPerson != null)
{
name = getPerson.PersonName;
projectId = getPerson.ProjectId;
}
}