修改焊工接口

This commit is contained in:
2023-02-03 10:57:52 +08:00
parent 2b93bbd98d
commit 61c788d93c
@@ -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;