From e2e11493d95d8719c89dac33026d0fe09d57d8ee Mon Sep 17 00:00:00 2001 From: Frane Date: Wed, 16 Feb 2022 10:18:27 +0800 Subject: [PATCH] =?UTF-8?q?20220216=20=E4=BA=BA=E5=91=98=E7=85=A7=E7=89=87?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=97=B6=E5=8A=A0=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/API/APIPersonService.cs | 2 +- SGGL/BLL/HJGL/PersonManage/WelderService.cs | 5 ++++- SGGL/BLL/HSSE/SitePerson/PersonService.cs | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/SGGL/BLL/API/APIPersonService.cs b/SGGL/BLL/API/APIPersonService.cs index b5859cb1..58c9aba8 100644 --- a/SGGL/BLL/API/APIPersonService.cs +++ b/SGGL/BLL/API/APIPersonService.cs @@ -1037,7 +1037,7 @@ namespace BLL } #endregion - #region 人员出入场 + #region 人员出入场记录 /// /// 人员出入场 /// diff --git a/SGGL/BLL/HJGL/PersonManage/WelderService.cs b/SGGL/BLL/HJGL/PersonManage/WelderService.cs index 9236abf5..91e006ad 100644 --- a/SGGL/BLL/HJGL/PersonManage/WelderService.cs +++ b/SGGL/BLL/HJGL/PersonManage/WelderService.cs @@ -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(); diff --git a/SGGL/BLL/HSSE/SitePerson/PersonService.cs b/SGGL/BLL/HSSE/SitePerson/PersonService.cs index 9eee4ee5..a5a0b2c1 100644 --- a/SGGL/BLL/HSSE/SitePerson/PersonService.cs +++ b/SGGL/BLL/HSSE/SitePerson/PersonService.cs @@ -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;