获取超危大工程培训人次数方法优化

This commit is contained in:
夏菊 2025-03-28 21:53:07 +08:00
parent 61e1c2ffb3
commit f1a1329927
1 changed files with 1 additions and 1 deletions

View File

@ -1436,7 +1436,7 @@ namespace BLL
{
var result =
(from x in Funs.DB.Solution_LargerHazard
where x.ProjectId == projectid && x.IsSuperLargerHazard == true && x.RecordTime > Const.DtmarkTime
where x.ProjectId == projectid && x.IsSuperLargerHazard == true && x.TrainPersonNum != null && x.RecordTime > Const.DtmarkTime
select x.TrainPersonNum).ToList().Sum(x => x.Value);
return result;
}