From 7851532fd1071c01b047abd5fbcdcc523f543bbe Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Thu, 17 Jul 2025 10:49:44 +0800 Subject: [PATCH] 1 --- SGGL/BLL/Person/Person_PersonTrainService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SGGL/BLL/Person/Person_PersonTrainService.cs b/SGGL/BLL/Person/Person_PersonTrainService.cs index 0273e636..f7da6fab 100644 --- a/SGGL/BLL/Person/Person_PersonTrainService.cs +++ b/SGGL/BLL/Person/Person_PersonTrainService.cs @@ -32,6 +32,9 @@ namespace BLL /// public static IEnumerable getListData(string personId, Grid Grid1) { + Model.SGGLDB db = Funs.DB; + IQueryable getDataLists = from x in Funs.DB.Person_PersonTrain + select x; IQueryable getDataList = getDataLists.Where(x => x.PersonId == personId); count = getDataList.Count(); if (count == 0) @@ -45,7 +48,7 @@ namespace BLL x.PersonTrainId, x.PersonId, x.TrainTypeId, - Funs.DB.Base_TrainType.First(u => u.TrainTypeId == x.TrainTypeId).TrainTypeName, + db.Base_TrainType.First(u => u.TrainTypeId == x.TrainTypeId).TrainTypeName, x.TrainDate, x.TrainPlace, x.TrainResult,