From b7bc12c355177779739b3d7c1dc66cf16f3f4f27 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Sat, 8 Feb 2025 14:41:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/HSSE/EduTrain/TestRecordService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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