This commit is contained in:
2022-09-26 18:41:24 +08:00
parent 8b9e98193a
commit 579af300d3
105 changed files with 102 additions and 28599 deletions
+18 -9
View File
@@ -3,6 +3,7 @@ using Newtonsoft.Json.Linq;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
@@ -1404,6 +1405,12 @@ namespace BLL
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
int count = 200;
if (ConfigurationManager.AppSettings["EnableRealName"] != "True")
{
count = 100;
}
try
{
string mess = string.Empty;
@@ -1444,7 +1451,7 @@ namespace BLL
x.RealNamePushTime,
x.PersonInOutId,
v.TeamGroupId,
}).Take(200).ToList();
}).Take(count).ToList();
if (getData.Count() > 0)
{
var listObject = new
@@ -1455,15 +1462,17 @@ namespace BLL
{
{ "token", getaccess_token(proCode) }
};
addTeam(getData.Select(x => x.TeamGroupId).Distinct().ToList(), newToken);
getTeam(proCode, newToken);
var getPersonS = getData.Select(x => x.idcardNumber).Distinct().ToList();
foreach (var pitem in getPersonS)
if (count == 200)
{
PushPersonsByIdentityCard(Const.BtnAdd, proCode, pitem, false);
PushPersonsByIdentityCard(Const.BtnModify, proCode, pitem, false);
addTeam(getData.Select(x => x.TeamGroupId).Distinct().ToList(), newToken);
getTeam(proCode, newToken);
var getPersonS = getData.Select(x => x.idcardNumber).Distinct().ToList();
foreach (var pitem in getPersonS)
{
PushPersonsByIdentityCard(Const.BtnAdd, proCode, pitem, false);
PushPersonsByIdentityCard(Const.BtnModify, proCode, pitem, false);
}
}
pushContent = JsonConvert.SerializeObject(listObject);