1
This commit is contained in:
@@ -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 推送项目质量数据
|
||||
|
||||
|
||||
Reference in New Issue
Block a user