大屏安全数据统计

This commit is contained in:
zonse
2025-04-17 15:01:42 +08:00
parent 7dafb37963
commit 00b7fe2e6d
8 changed files with 38 additions and 26 deletions
@@ -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