diff --git a/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs b/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs index 79ec6c3c..1994fb5e 100644 --- a/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs +++ b/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs @@ -1100,7 +1100,10 @@ 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" ? "男" : "女"; - getPerson.Birthday = getPerson.Birthday; + if (getPerson.Birthday != null) + { + getPerson.Birthday = getPerson.Birthday.Value.Date; + } getPerson.PhotoUrl = getPerson.PhotoUrl; getPerson.QRCodeAttachUrl = getPerson.QRCodeAttachUrl; getPerson.IdentityCard = x.IdentityCard;