diff --git a/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs b/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs index 1994fb5e..79ec6c3c 100644 --- a/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs +++ b/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs @@ -1100,10 +1100,7 @@ namespace BLL Model.SitePerson_Person x = db.SitePerson_Person.FirstOrDefault(e => e.ProjectId == projectId && e.PersonId == personId); Model.Person_Persons getPerson = db.Person_Persons.FirstOrDefault(e => e.PersonId == personId); getPerson.Sex = getPerson.Sex == "1" ? "男" : "女"; - if (getPerson.Birthday != null) - { - getPerson.Birthday = getPerson.Birthday.Value.Date; - } + getPerson.Birthday = getPerson.Birthday; getPerson.PhotoUrl = getPerson.PhotoUrl; getPerson.QRCodeAttachUrl = getPerson.QRCodeAttachUrl; getPerson.IdentityCard = x.IdentityCard;