更新人员信息

This commit is contained in:
李超 2025-03-02 11:57:59 +08:00
parent 995df9b9e3
commit 90d91d30da
1 changed files with 14 additions and 1 deletions

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