|
|
|
@ -137,6 +137,18 @@ namespace Shentun.Peis.OccupationalDiseaseReports |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
List<Guid?> customerOrgIds = new List<Guid?>(); |
|
|
|
|
|
|
|
if (customerOrgPara.CustomerOrgId != null) |
|
|
|
{ |
|
|
|
customerOrgIds = await _customerOrgManager.GetCustomerOrgChildrenId(customerOrgPara.CustomerOrgId.Value); |
|
|
|
} |
|
|
|
|
|
|
|
if (customerOrgIds.Any()) |
|
|
|
{ |
|
|
|
query = query.Where(m => customerOrgIds.Contains(m.patientRegister.CustomerOrgId)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (customerOrgPara.CustomerOrgGroupId.Any()) |
|
|
|
{ |
|
|
|
@ -1266,6 +1278,19 @@ namespace Shentun.Peis.OccupationalDiseaseReports |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
List<Guid?> customerOrgIds = new List<Guid?>(); |
|
|
|
|
|
|
|
if (customerOrgPara.CustomerOrgId != null) |
|
|
|
{ |
|
|
|
customerOrgIds = await _customerOrgManager.GetCustomerOrgChildrenId(customerOrgPara.CustomerOrgId.Value); |
|
|
|
} |
|
|
|
|
|
|
|
if (customerOrgIds.Any()) |
|
|
|
{ |
|
|
|
query = query.Where(m => customerOrgIds.Contains(m.patientRegister.CustomerOrgId)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (customerOrgPara.CustomerOrgGroupId.Any()) |
|
|
|
{ |
|
|
|
|