更新人员信息
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user