20211125人员照片更改时 置空同步时间
This commit is contained in:
@@ -856,9 +856,10 @@ namespace BLL
|
||||
getPerson.MainCNProfessionalId = newPerson.MainCNProfessionalId;
|
||||
getPerson.ViceCNProfessionalId = newPerson.ViceCNProfessionalId;
|
||||
|
||||
if (!string.IsNullOrEmpty(person.PhotoUrl))
|
||||
if (!string.IsNullOrEmpty(person.PhotoUrl) && getPerson.PhotoUrl != person.PhotoUrl)
|
||||
{
|
||||
getPerson.PhotoUrl = person.PhotoUrl;
|
||||
getPerson.ExchangeTime = null;
|
||||
getPerson.HeadImage = newPerson.HeadImage;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(person.AttachUrl1))
|
||||
@@ -989,9 +990,10 @@ namespace BLL
|
||||
var getPerson = db.SitePerson_Person.FirstOrDefault(x => x.IdentityCard == person.IdentityCard || x.PersonId == person.PersonId);
|
||||
if (getPerson != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(person.PhotoUrl))
|
||||
if (!string.IsNullOrEmpty(person.PhotoUrl) && getPerson.PhotoUrl != person.PhotoUrl)
|
||||
{
|
||||
getPerson.PhotoUrl = person.PhotoUrl;
|
||||
getPerson.ExchangeTime = null;
|
||||
string rootUrl = ConfigurationManager.AppSettings["localRoot"];
|
||||
if (!string.IsNullOrEmpty(rootUrl) && !string.IsNullOrEmpty(person.PhotoUrl))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user