diff --git a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs index 1b2d4513..51465b94 100644 --- a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs +++ b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs @@ -1135,7 +1135,7 @@ namespace BLL join w in db.Base_WorkPost on x.WorkPostId equals w.WorkPostId where x.IdentityCard == identityCard && y.JTProjectCode == proCode && v.TeamId.HasValue && z.JTproCode != null - && ((type == Const.BtnAdd && x.HeadImage != null && x.HeadImage.Length > 0) || type == Const.BtnModify) + && ((type == Const.BtnAdd && x.HeadImage != null && x.HeadImage.Length > 0) || type == Const.BtnModify && x.RealNameAddTime.HasValue) select new { name = x.PersonName, @@ -1201,7 +1201,7 @@ namespace BLL code = obj["code"].ToString(); sucess = obj["success"].ToString(); data = obj["data"].ToString(); - if (obj["success"] != null && Convert.ToBoolean(obj["success"].ToString()) && code == "200") + if (obj["success"] != null && Convert.ToBoolean(obj["success"].ToString())) { foreach (var item in getData) {