This commit is contained in:
parent
b982382a48
commit
9047627ae1
|
@ -1248,14 +1248,14 @@ namespace FineUIPro.Web.common
|
||||||
if (pids == null)
|
if (pids == null)
|
||||||
{
|
{
|
||||||
var result = (from x in Funs.DB.Solution_LargerHazard
|
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);
|
select x.TrainPersonNum).ToList().Sum(x => x.Value);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var result = (from x in Funs.DB.Solution_LargerHazard
|
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);
|
select x.TrainPersonNum).ToList().Sum(x => x.Value);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue