diff --git a/SGGL/BLL/HSSE/EduTrain/TestRecordService.cs b/SGGL/BLL/HSSE/EduTrain/TestRecordService.cs index 32f7241d..5e1d7713 100644 --- a/SGGL/BLL/HSSE/EduTrain/TestRecordService.cs +++ b/SGGL/BLL/HSSE/EduTrain/TestRecordService.cs @@ -36,14 +36,16 @@ namespace BLL /// public static IEnumerable getListData(string personId, Grid Grid1) { - IQueryable getDataList = getDataLists.Where(x => x.TestManId == personId); + var db1 = Funs.DB; + IQueryable getDataList = (from x in db1.Training_TestRecord + where x.TestStartTime.HasValue + select x).Where(x => x.TestManId == personId); count = getDataList.Count(); if (count == 0) { return null; } getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize); - var db1 = Funs.DB; return from x in getDataList join y in db1.Training_TestPlan on x.TestPlanId equals y.TestPlanId join z in db1.Training_Plan on y.PlanId equals z.PlanId into g