焊工问题处理
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user