This commit is contained in:
2026-01-15 13:18:03 +08:00
parent 4cf26d85e9
commit a5a8b130e5
+15 -1
View File
@@ -197,6 +197,8 @@ namespace BLL
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
for (int i = 0; i < j2.data.Count; i++)
{
try
{
var msg = JsonConvert.DeserializeObject(j2.data[i]["content"].ToString());
if (!string.IsNullOrEmpty(Convert.ToString(msg.employeeNo)))
@@ -215,6 +217,11 @@ namespace BLL
};
InsertInOut(newInOut);
}
}
catch (Exception e)
{
ErrLogInfo.WriteLog(e.StackTrace);
}
}
}
@@ -234,6 +241,8 @@ namespace BLL
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
for (int i = 0; i < j2.data.Count; i++)
{
try
{
var msg = JsonConvert.DeserializeObject(j2.data[i]["content"].ToString());
if (!string.IsNullOrEmpty(Convert.ToString(msg.employeeNo)))
@@ -244,7 +253,7 @@ namespace BLL
var devices = Funs.DB.Project_Devices.FirstOrDefault(x => x.DeviceSerial == deviceSerial);
//身份证号时
if (employeeNo.Length == 18)
// if (employeeNo.Length == 18)
{
Model.SitePerson_PersonInOut newInOut = new Model.SitePerson_PersonInOut
{
@@ -258,6 +267,11 @@ namespace BLL
}
}
}
catch (Exception e)
{
ErrLogInfo.WriteLog(e.StackTrace);
}
}
//提交偏移量