This commit is contained in:
2021-09-06 12:27:07 +08:00
parent 8ce6070be5
commit 4955bbcba0
7 changed files with 42 additions and 26 deletions
@@ -395,15 +395,17 @@ namespace FineUIPro.Web.ZHGL.RealName
{
var getIdentityCards = (from x in Funs.DB.SitePerson_Person
join v in Funs.DB.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId
join p in Funs.DB.Project_ProjectUnit on new { x.UnitId, x.ProjectId } equals new { p.UnitId, p.ProjectId }
where x.ProjectId == projectId
&& x.IdentityCard != null && (x.IdentityCard.Length == 15 || x.IdentityCard.Length == 18)
&& v.TeamId.HasValue && x.HeadImage != null && x.HeadImage.Length > 0
&& !x.RealNameAddTime.HasValue
select x.IdentityCard).Take(100);
&& p.UnitType != Const.ProjectUnitType_3 && p.UnitType != Const.ProjectUnitType_4
select x.IdentityCard).Take(500);
foreach (var item in getIdentityCards)
{
string mes = BLL.SynchroSetService.PushPersonsByIdentityCard(Const.BtnAdd, getRProjects.ProCode, item) ?? "";
if (mes != "请求成功")
if (mes.Contains("不合法"))
{
message += ("身份证号码" + item + "新增失败" + mes);
}
@@ -444,11 +446,11 @@ namespace FineUIPro.Web.ZHGL.RealName
&& x.IdentityCard != null && (x.IdentityCard.Length == 15 || x.IdentityCard.Length == 18)
&& v.TeamId.HasValue && x.HeadImage != null && x.HeadImage.Length > 0
&& !x.RealNameUpdateTime.HasValue
select x.IdentityCard).Take(100);
select x.IdentityCard).Take(500);
foreach (var item in getIdentityCards)
{
string mes = BLL.SynchroSetService.PushPersonsByIdentityCard(Const.BtnModify, getRProjects.ProCode, item) ?? "";
if (mes != "请求成功")
if (mes.Contains("不合法"))
{
message += ("身份证号码" + item + "更新失败" + mes);
}