From 9047627ae1a918b24b3c658538fb4349ceaa037c Mon Sep 17 00:00:00 2001 From: xiaju <1784803958@qq.com> Date: Wed, 23 Apr 2025 10:28:48 +0800 Subject: [PATCH] 1 --- SGGL/FineUIPro.Web/common/main_new0.aspx.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SGGL/FineUIPro.Web/common/main_new0.aspx.cs b/SGGL/FineUIPro.Web/common/main_new0.aspx.cs index 44e642cb..ae0a3bd3 100644 --- a/SGGL/FineUIPro.Web/common/main_new0.aspx.cs +++ b/SGGL/FineUIPro.Web/common/main_new0.aspx.cs @@ -1248,14 +1248,14 @@ namespace FineUIPro.Web.common if (pids == null) { var result = (from x in Funs.DB.Solution_LargerHazard - where x.IsSuperLargerHazard == false && x.RecordTime > Const.DtmarkTime + where x.IsSuperLargerHazard == false && x.TrainPersonNum != null && x.RecordTime > Const.DtmarkTime select x.TrainPersonNum).ToList().Sum(x => x.Value); return result; } else { var result = (from x in Funs.DB.Solution_LargerHazard - where x.IsSuperLargerHazard == false && x.RecordTime > Const.DtmarkTime && pids.Contains(x.ProjectId) + where x.IsSuperLargerHazard == false && x.TrainPersonNum != null && x.RecordTime > Const.DtmarkTime && pids.Contains(x.ProjectId) select x.TrainPersonNum).ToList().Sum(x => x.Value); return result; }