This commit is contained in:
杨红卫 2023-12-25 14:15:35 +08:00
parent 1f08356eb1
commit 13aff7f29c
3 changed files with 15 additions and 3461 deletions

View File

@ -672,6 +672,20 @@ namespace BLL
}
}
public static void UpdatePhotoUrl(string personId, string photoUrl, System.Data.Linq.Binary headImage )
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
var person = db.SitePerson_Person.FirstOrDefault(x => x.PersonId == personId);
if (person != null)
{
person.PhotoUrl = photoUrl;
person.HeadImage = headImage;
db.SubmitChanges();
}
}
}
/// <summary>
/// 根据人员Id删除一个人员信息
/// </summary>

File diff suppressed because it is too large Load Diff

View File

@ -281,7 +281,7 @@ namespace WebAPI.Controllers
getPerson.PhotoUrl = path + flieName;
System.IO.File.WriteAllBytes((fileUrl + flieName), image);
//AttachFileService.Base64ToImage(person.headImage, path, person.PersonName);
db.SubmitChanges();
PersonService.UpdatePhotoUrl(getPerson.PersonId, getPerson.PhotoUrl,getPerson.HeadImage);
responeData.message = "更新照片!";
}
else