This commit is contained in:
夏菊 2025-04-23 10:28:48 +08:00
parent b982382a48
commit 9047627ae1
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}