This commit is contained in:
2025-12-12 10:16:32 +08:00
parent 5c6ba467f2
commit ea67b3a5b9
4 changed files with 62 additions and 55 deletions
+8 -1
View File
@@ -427,7 +427,14 @@ namespace WebAPI.Controllers
{
person.PersonId = getPerson.PersonId;
}
if (!string.IsNullOrEmpty(person.UnitId))
{
var unit = db.Base_Unit.FirstOrDefault(x => x.UnitCode == person.UnitId|| x.UnitName == person.UnitId);
if (unit != null)
{
person.UnitId = unit.UnitId;
}
}
person.PersonId = APIPersonService.SaveSitePerson(person);
var getProject = ProjectService.GetProjectByProjectId(person.ProjectId);
if (!string.IsNullOrEmpty(photourl) && getProject != null && getProject.IsFace == true)