1质量人员报验总数取在场人数,合格人数取有效期内的在场人数;

This commit is contained in:
2025-07-09 19:10:09 +08:00
parent c5a24de409
commit 9a5ffa4632
5 changed files with 30 additions and 10 deletions
@@ -758,7 +758,7 @@ namespace BLL
var result = (from x in Funs.DB.Bo_Sheng_Train
join p in Funs.DB.Base_Project on x.ProjectId equals p.ProjectId into pGroup
from p in pGroup.DefaultIfEmpty()
where x.ProjectId == projectid && (x.TrainType == "入场(厂)培训" || x.TrainType == "入厂(场)级培训")
where x.ProjectId == projectid && (x.TrainType.Contains("入场") || x.TrainType.Contains("入厂"))
&& (x.DeleteTag == "False" || x.DeleteTag == null) && x.TrainStartDate > Const.DtmarkTime
select x.PersonCount ?? 0).ToList().Sum();
return result;