1、优化考勤记录导入,优化出入记录写实名制推送记录表。2、优化考试答题,交卷接口方法。3、优化写入培训记录。

This commit is contained in:
2022-06-16 17:34:24 +08:00
parent b913f49cd8
commit 85a8b510ac
29 changed files with 488 additions and 534 deletions
+13 -18
View File
@@ -27,7 +27,7 @@ namespace BLL
/// <summary>
/// 根据出入记录 写入考勤记录
/// </summary>
public static void InsertEmployInOutRecord(Model.t_d_facerecordItem drecord)
public static void InsertEmployInOutRecord(Model.t_d_facerecordItem drecord,Model.SitePerson_Person getPerson)
{
if (drecord.DateTimeRecord.HasValue)
{
@@ -41,24 +41,19 @@ namespace BLL
RecordDate = drecord.DateTimeRecord.Value.Date,
IDCardNo = drecord.IDCardNo,
};
////获取人员
var getPserson = PersonService.GetPersonByIdentityCard(drecord.ProjectId, drecord.IDCardNo);
if (getPserson == null)
////获取人员
if (getPerson != null)
{
getPserson = PersonService.GetPersonByName(drecord.ProjectId, drecord.EmployName);
}
if (getPserson != null)
{
newInOutRecord.UnitId = getPserson.UnitId;
newInOutRecord.UnitName = UnitService.GetUnitNameByUnitId(getPserson.UnitId);
newInOutRecord.DepartmentID = getPserson.TeamGroupId;
newInOutRecord.DepartName = TeamGroupService.GetTeamGroupNameByTeamGroupId(getPserson.TeamGroupId);
newInOutRecord.EmployNO = getPserson.CardNo;
newInOutRecord.EmployName = getPserson.PersonName;
newInOutRecord.Nation = getPserson.Nation;
newInOutRecord.NationName = BasicDataService.GetDictNameByDictCode(getPserson.Nation);
newInOutRecord.PostId = getPserson.WorkPostId;
newInOutRecord.PostName = WorkPostService.getWorkPostNameById(getPserson.WorkPostId);
newInOutRecord.UnitId = getPerson.UnitId;
newInOutRecord.UnitName = UnitService.GetUnitNameByUnitId(getPerson.UnitId);
newInOutRecord.DepartmentID = getPerson.TeamGroupId;
newInOutRecord.DepartName = TeamGroupService.GetTeamGroupNameByTeamGroupId(getPerson.TeamGroupId);
newInOutRecord.EmployNO = getPerson.CardNo;
newInOutRecord.EmployName = getPerson.PersonName;
newInOutRecord.Nation = getPerson.Nation;
newInOutRecord.NationName = BasicDataService.GetDictNameByDictCode(getPerson.Nation);
newInOutRecord.PostId = getPerson.WorkPostId;
newInOutRecord.PostName = WorkPostService.getWorkPostNameById(getPerson.WorkPostId);
}
else
{