This commit is contained in:
2025-03-07 11:02:09 +08:00
5 changed files with 265 additions and 5 deletions
+14 -1
View File
@@ -800,7 +800,7 @@ namespace BLL
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
var getPerson = db.SitePerson_Person.FirstOrDefault(e => e.SitePersonId == sitePersonId);
var getPerson = db.SitePerson_Person.FirstOrDefault(e => e.SitePersonId == sitePersonId || e.PersonId == sitePersonId);
if (getPerson != null && !string.IsNullOrEmpty(type))
{
if (type == "1")
@@ -813,6 +813,19 @@ namespace BLL
}
db.SubmitChanges();
}
else
{
if (type == "1")
{
getPerson.ExchangeTime2 = DateTime.Now;
}
else
{
getPerson.ExchangeTime = DateTime.Now;
}
db.SubmitChanges();
}
}
}
#endregion