From 97cda8abae08649e902cec79afe4d220e8657218 Mon Sep 17 00:00:00 2001 From: wxd <123@qq.com> Date: Thu, 21 Nov 2024 11:18:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=8C=E4=B8=9A=E7=97=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OccupationalDiseaseReportAppService.cs | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/Shentun.Peis.Application/OccupationalDiseaseReports/OccupationalDiseaseReportAppService.cs b/src/Shentun.Peis.Application/OccupationalDiseaseReports/OccupationalDiseaseReportAppService.cs index 1e0cefc..fe6eeeb 100644 --- a/src/Shentun.Peis.Application/OccupationalDiseaseReports/OccupationalDiseaseReportAppService.cs +++ b/src/Shentun.Peis.Application/OccupationalDiseaseReports/OccupationalDiseaseReportAppService.cs @@ -137,6 +137,18 @@ namespace Shentun.Peis.OccupationalDiseaseReports } } + List customerOrgIds = new List(); + + 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 customerOrgIds = new List(); + + 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()) {