20220926
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user