This commit is contained in:
geh
2026-07-09 16:32:57 +08:00
parent f9d6a03933
commit cfb60fd1d6
2 changed files with 5 additions and 3 deletions
@@ -123,7 +123,8 @@ namespace FineUIPro.Web.HSSE.SitePerson
{
foreach (var item in this.drpPerson.Values)
{
var person = BLL.PersonService.GetPersonById(item);
Model.SitePerson_Person person = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.PersonId == item);
// var person = BLL.PersonService.GetPersonById(item);
if (person != null)
{
if (this.drpToUnit.SelectedValue == "0")//如果新单位选择其他,则置空该人员单位
@@ -142,7 +143,8 @@ namespace FineUIPro.Web.HSSE.SitePerson
{
person.TeamGroupId = null;
}
BLL.PersonService.UpdatePerson(person);
Funs.DB.SubmitChanges();
// BLL.PersonService.UpdatePerson(person);
}
}