diff --git a/SGGL/BLL/DoorServer/DoorServerService.cs b/SGGL/BLL/DoorServer/DoorServerService.cs index 5b6b47d0..88fa4768 100644 --- a/SGGL/BLL/DoorServer/DoorServerService.cs +++ b/SGGL/BLL/DoorServer/DoorServerService.cs @@ -29,7 +29,7 @@ namespace BLL /// public static void InsertEmployInOutRecord(Model.t_d_facerecordItem drecord,Model.SitePerson_Person getPerson) { - if (drecord.DateTimeRecord.HasValue) + if (drecord.DateTimeRecord.HasValue && !string.IsNullOrEmpty(getPerson.PersonName)) { using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) {