From 92f86a586f272009018b3bd6f740968fa372ba02 Mon Sep 17 00:00:00 2001 From: 10191 <506754232@qq.com> Date: Wed, 29 Apr 2026 21:59:26 +0800 Subject: [PATCH] 11 --- SGGL/BLL/HSSE/SitePerson/PersonInOutService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SGGL/BLL/HSSE/SitePerson/PersonInOutService.cs b/SGGL/BLL/HSSE/SitePerson/PersonInOutService.cs index 7c8e0d29..ab60031d 100644 --- a/SGGL/BLL/HSSE/SitePerson/PersonInOutService.cs +++ b/SGGL/BLL/HSSE/SitePerson/PersonInOutService.cs @@ -398,7 +398,7 @@ namespace BLL foreach (var newPersonInOut in newPersonInOutList) { var getPUnit = getPUnitS.FirstOrDefault(x => x.UnitId == newPersonInOut.UnitId); - if (getPUnit.UnitType != Const.ProjectUnitType_3 && getPUnit.UnitType != Const.ProjectUnitType_4 && getPUnit.IsSynchro == true) + if (getPUnit!=null&&getPUnit.UnitType != Const.ProjectUnitType_3 && getPUnit.UnitType != Const.ProjectUnitType_4 && getPUnit.IsSynchro == true) { if (getRealNameP != null && newPersonInOut.ChangeTime.HasValue) {