20220614 修复自动交卷未计算最后一个答题

This commit is contained in:
2022-06-14 09:40:17 +08:00
parent 4b19955e26
commit b913f49cd8
4 changed files with 14 additions and 6 deletions
+2 -1
View File
@@ -470,7 +470,8 @@ namespace BLL
List<string> unitIdList = Funs.GetStrListByStr(unitIds, ',');
var getPersons = from x in db.View_SitePerson_Person
where x.ProjectId == projectId && unitIdList.Contains(x.UnitId) && x.IsUsed == true
&& x.InTime <= DateTime.Now && (!x.OutTime.HasValue || x.OutTime >= DateTime.Now)
//&& x.InTime <= DateTime.Now
&& (!x.OutTime.HasValue || x.OutTime >= DateTime.Now)
select new Model.PersonItem
{
PersonId = x.PersonId,