焊工问题处理
This commit is contained in:
@@ -629,9 +629,13 @@ namespace BLL
|
||||
ProjectId = x.ProjectId,
|
||||
UnitId = x.WED_Unit,
|
||||
WEDCode = x.WED_Code,
|
||||
WEDWorkCode = x.WED_WorkCode,
|
||||
WEDName = x.WED_Name
|
||||
//UnitName = UnitService.getUnitNamesUnitIds(x.UnitIds),
|
||||
}).ToList();
|
||||
})
|
||||
.GroupBy(p => p.WEDWorkCode)
|
||||
.Select(g => g.First())
|
||||
.ToList();
|
||||
return result;
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
@@ -311,7 +311,10 @@ namespace BLL
|
||||
{
|
||||
int result = (from x in Funs.DB.BS_Welder
|
||||
where x.ProjectId == projectid && x.WED_IfOnGuard == true
|
||||
select x).Count();
|
||||
select x)
|
||||
.GroupBy(p => p.WED_WorkCode)
|
||||
.Select(g => g.First())
|
||||
.Count();
|
||||
return result;
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user