20230920 HSE管理月报
This commit is contained in:
@@ -384,9 +384,9 @@ namespace BLL
|
||||
/// </summary>
|
||||
/// <param name="unitId">单位Id</param>
|
||||
/// <returns>人员的数量</returns>
|
||||
public static int GetPersonCountByUnitId(string unitId, string projectId)
|
||||
public static int GetPersonCountByUnitId(string unitId, string projectId, bool isOutside)
|
||||
{
|
||||
var q = (from x in Funs.DB.SitePerson_Person where x.UnitId == unitId && x.ProjectId == projectId && x.IsUsed == true select x).ToList();
|
||||
var q = (from x in Funs.DB.SitePerson_Person where x.UnitId == unitId && x.ProjectId == projectId && x.IsUsed == true && x.IsOutside == isOutside select x).ToList();
|
||||
return q.Count();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user