更新人员信息
This commit is contained in:
parent
995df9b9e3
commit
90d91d30da
|
|
@ -800,7 +800,7 @@ namespace BLL
|
||||||
{
|
{
|
||||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
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 (getPerson != null && !string.IsNullOrEmpty(type))
|
||||||
{
|
{
|
||||||
if (type == "1")
|
if (type == "1")
|
||||||
|
|
@ -813,6 +813,19 @@ namespace BLL
|
||||||
}
|
}
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (type == "1")
|
||||||
|
{
|
||||||
|
getPerson.ExchangeTime2 = DateTime.Now;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
getPerson.ExchangeTime = DateTime.Now;
|
||||||
|
}
|
||||||
|
db.SubmitChanges();
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue