手动打卡
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using BLL.Common;
|
||||
using Model;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Linq;
|
||||
@@ -322,7 +323,16 @@ namespace BLL
|
||||
AmEndTime1 = AmEndTime1.Add(-time1);
|
||||
PmEndTime1 = PmEndTime1.Add(-time1);
|
||||
|
||||
var personModel = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.IdentityCard == model.IdentityCard && x.ProjectId == model.ProjectId);
|
||||
SitePerson_Person personModel = null;
|
||||
if (!string.IsNullOrEmpty(model.PersonId))
|
||||
{
|
||||
personModel = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.SitePersonId == model.PersonId && x.ProjectId == model.ProjectId);
|
||||
model.IdentityCard = personModel.IdentityCard;
|
||||
}
|
||||
else
|
||||
{
|
||||
personModel = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.IdentityCard == model.IdentityCard && x.ProjectId == model.ProjectId);
|
||||
}
|
||||
if (personModel != null)
|
||||
{
|
||||
//状态:0上午上班 1上午下班 2下午上班 3下午下班
|
||||
|
||||
Reference in New Issue
Block a user