大屏安全数据统计
This commit is contained in:
@@ -134,12 +134,7 @@ namespace FineUIPro.Web.common
|
||||
join itm in Funs.DB.Inspect_InspectionItem on i.InspectionId equals itm.InspectionId
|
||||
where i.ProblemTypeName != null && i.ProjectId == ProjectId && i.CreateTime > startd && i.CreateTime < endd && i.InspectType == "1"
|
||||
group i by i.ProblemTypeName into g2
|
||||
select new { type = g2.Key, count = g2.Count() })
|
||||
.Union(from ins in Funs.DB.Inspect_Inspection
|
||||
join itm in Funs.DB.Inspect_InspectionItem on ins.InspectionId equals itm.InspectionId
|
||||
where ins.Place != null && ins.ProjectId == ProjectId && ins.CreateTime > startd && ins.CreateTime < endd && ins.InspectType == "1"
|
||||
group ins by ins.Place into g3
|
||||
select new { type = g3.Key, count = g3.Count() })).ToList();
|
||||
select new { type = g2.Key, count = g2.Count() })).ToList();
|
||||
|
||||
|
||||
return new
|
||||
|
||||
Reference in New Issue
Block a user