20220601 修改Global调用定时器、修改考勤导入列表及导入方法
This commit is contained in:
@@ -213,7 +213,7 @@ namespace BLL
|
||||
{
|
||||
access_token = obj["data"].ToString();
|
||||
SynchroSet.Token = access_token;
|
||||
SynchroSet.Tokenendtime = DateTime.Now.AddHours(23);
|
||||
SynchroSet.Tokenendtime = DateTime.Now.AddHours(12);
|
||||
SynchroSet.Timestamp = Funs.GetNewDateTime(timestamp);
|
||||
SaveSynchroSet(SynchroSet);
|
||||
InsertRealNamePushLog(null, SynchroSet.ProCode, "获取凭证", obj["success"].ToString(), obj["code"].ToString(), obj["message"].ToString(),access_token, pushContent);
|
||||
@@ -809,7 +809,8 @@ namespace BLL
|
||||
}
|
||||
}
|
||||
}
|
||||
InsertRealNamePushLog(null, proCode, "推送项目参建企业数据", sucess, code, mess, data, pushContent);
|
||||
|
||||
InsertRealNamePushLog(null, proCode, "推送项目参建企业数据", sucess, code, mess, data, pushContent);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1087,10 +1088,14 @@ namespace BLL
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 推送人员数据
|
||||
/// 推送人员数据
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <param name="proCode"></param>
|
||||
/// <param name="identityCard"></param>
|
||||
/// <param name="isLog">是否写日志</param>
|
||||
/// <returns></returns>
|
||||
public static string PushPersonsByIdentityCard(string type, string proCode, string identityCard)
|
||||
public static string PushPersonsByIdentityCard(string type, string proCode, string identityCard,bool isLog)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -1220,17 +1225,23 @@ namespace BLL
|
||||
}
|
||||
else if (data.Contains("人员不存在"))
|
||||
{
|
||||
SynchroSetService.PushPersonsByIdentityCard(Const.BtnAdd, proCode, identityCard);
|
||||
SynchroSetService.PushPersonsByIdentityCard(Const.BtnAdd, proCode, identityCard, isLog);
|
||||
}
|
||||
else
|
||||
{
|
||||
InsertRealNamePushLog(null, proCode, "推送人员数据", sucess, code, mess, data, pushContent);
|
||||
if (isLog)
|
||||
{
|
||||
InsertRealNamePushLog(null, proCode, "推送人员数据", sucess, code, mess, data, pushContent);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
InsertRealNamePushLog(null, proCode, "推送人员数据", sucess, code, mess, data, pushContent);
|
||||
if (isLog)
|
||||
{
|
||||
InsertRealNamePushLog(null, proCode, "推送人员数据", sucess, code, mess, data, pushContent);
|
||||
}
|
||||
}
|
||||
|
||||
if (data.Contains("已存在") || mess.Contains("已存在"))
|
||||
@@ -1435,8 +1446,8 @@ namespace BLL
|
||||
var getPersonS = getData.Select(x => x.idcardNumber).Distinct().ToList();
|
||||
foreach (var pitem in getPersonS)
|
||||
{
|
||||
PushPersonsByIdentityCard(Const.BtnAdd, proCode, pitem);
|
||||
PushPersonsByIdentityCard(Const.BtnModify, proCode, pitem);
|
||||
PushPersonsByIdentityCard(Const.BtnAdd, proCode, pitem, false);
|
||||
PushPersonsByIdentityCard(Const.BtnModify, proCode, pitem, false);
|
||||
}
|
||||
|
||||
pushContent = JsonConvert.SerializeObject(listObject);
|
||||
|
||||
Reference in New Issue
Block a user