20220216 人员照片保存时加判断
This commit is contained in:
parent
74f7cd5c17
commit
e2e11493d9
|
@ -1037,7 +1037,7 @@ namespace BLL
|
|||
}
|
||||
#endregion
|
||||
|
||||
#region 人员出入场
|
||||
#region 人员出入场记录
|
||||
/// <summary>
|
||||
/// 人员出入场
|
||||
/// </summary>
|
||||
|
|
|
@ -69,7 +69,10 @@ namespace BLL
|
|||
newWelder.IsUsed = welder.IsUsed;
|
||||
newWelder.QualificationCertificateUrl = welder.QualificationCertificateUrl;
|
||||
newWelder.Remark = welder.Remark;
|
||||
newWelder.PhotoUrl = welder.PhotoUrl;
|
||||
if (!string.IsNullOrEmpty(welder.PhotoUrl))
|
||||
{
|
||||
newWelder.PhotoUrl = welder.PhotoUrl;
|
||||
}
|
||||
newWelder.WorkPostId = welder.WorkPostId;
|
||||
newWelder.Isprint = welder.Isprint;
|
||||
Funs.DB.SubmitChanges();
|
||||
|
|
|
@ -462,7 +462,7 @@ namespace BLL
|
|||
newPerson.Telephone = person.Telephone;
|
||||
newPerson.PositionId = person.PositionId;
|
||||
newPerson.PostTitleId = person.PostTitleId;
|
||||
if (newPerson.PhotoUrl != person.PhotoUrl)
|
||||
if (newPerson.PhotoUrl != person.PhotoUrl && !string.IsNullOrEmpty(person.PhotoUrl))
|
||||
{
|
||||
newPerson.PhotoUrl = person.PhotoUrl;
|
||||
newPerson.ExchangeTime = null;
|
||||
|
|
Loading…
Reference in New Issue