焊工问题处理

This commit is contained in:
2025-07-02 16:12:26 +08:00
parent 52dec49b5e
commit 38764c36ec
6 changed files with 63 additions and 29 deletions
+8 -2
View File
@@ -547,14 +547,20 @@ namespace FineUIPro.Web.common
{
int result = (from x in Funs.DB.BS_Welder
where x.WED_IfOnGuard == true
select x).Count();
select x)
.GroupBy(p => p.WED_WorkCode)
.Select(g => g.First())
.Count();
return result;
}
else
{
int result = (from x in Funs.DB.BS_Welder
where x.WED_IfOnGuard == true && pids.Contains(x.ProjectId)
select x).Count();
select x)
.GroupBy(p => p.WED_WorkCode)
.Select(g => g.First())
.Count();
return result;
}
}