This commit is contained in:
2025-06-24 14:28:46 +08:00
parent 7795cf25f5
commit 8816de937f
4 changed files with 58 additions and 47 deletions
@@ -536,9 +536,9 @@ namespace BLL
/// <returns></returns>
public static int GetTrainPersonNum(string projectid)
{
var result = (from x in Funs.DB.Comprehensive_InspectionPerson
where x.ProjectId == projectid && x.IsTrain == true && x.CompileDate > Const.DtmarkTime
select x).Count();
var result = (from x in Funs.DB.Train_TrainPlan
where x.ProjectId == projectid && x.CompileDate > Const.DtmarkTime
select x).ToList().Sum(x => x.TrainPersonNum ?? 0);
return result;
}
/// <summary>
@@ -662,7 +662,7 @@ namespace BLL
{
int result = (from x in Funs.DB.SitePerson_Person
join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId
where x.ProjectId == projectid && y.IsCQMS == true
where x.ProjectId == projectid && y.IsCQMS == true
select x).Count();
return result;
}
@@ -901,7 +901,7 @@ namespace BLL
public static int GetSingleProjectNum(string projectid)
{
int result = (from x in Funs.DB.ProjectData_MainItem
where x.ProjectId == projectid
where x.ProjectId == projectid
select x).Count();
return result;
}
@@ -1091,7 +1091,7 @@ namespace BLL
return result;
}
#region