|
|
@ -873,7 +873,8 @@ namespace Shentun.Peis.CustomerReports |
|
|
|
|
|
|
|
|
if (input.CustomerOrgs.Any()) |
|
|
if (input.CustomerOrgs.Any()) |
|
|
{ |
|
|
{ |
|
|
query = query.Where(m => input.CustomerOrgs.Where(m => m.CustomerOrgRegisterId != null && m.CustomerOrgRegisterId != Guid.Empty).Select(s => s.CustomerOrgRegisterId).Contains(m.a.Id)); |
|
|
|
|
|
|
|
|
var customerOrgRegisterIds = input.CustomerOrgs.Where(mm => mm.CustomerOrgRegisterId != null && mm.CustomerOrgRegisterId != GuidFlag.PersonCustomerOrgRegisterId).Select(s => s.CustomerOrgRegisterId.Value).ToList(); |
|
|
|
|
|
query = query.Where(m => customerOrgRegisterIds.Contains(m.a.Id)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var entlist = new GetUnitPhysicalExaminationReportStandardDto |
|
|
var entlist = new GetUnitPhysicalExaminationReportStandardDto |
|
|
@ -924,7 +925,8 @@ namespace Shentun.Peis.CustomerReports |
|
|
|
|
|
|
|
|
if (input.CustomerOrgs.Any()) |
|
|
if (input.CustomerOrgs.Any()) |
|
|
{ |
|
|
{ |
|
|
query = query.Where(m => input.CustomerOrgs.Where(m => m.CustomerOrgRegisterId != null && m.CustomerOrgRegisterId != Guid.Empty).Select(s => s.CustomerOrgRegisterId).Contains(m.a.Id)); |
|
|
|
|
|
|
|
|
var customerOrgRegisterIds = input.CustomerOrgs.Where(mm => mm.CustomerOrgRegisterId != null && mm.CustomerOrgRegisterId != GuidFlag.PersonCustomerOrgRegisterId).Select(s => s.CustomerOrgRegisterId.Value).ToList(); |
|
|
|
|
|
query = query.Where(m => customerOrgRegisterIds.Contains(m.a.Id)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var entlist = new GetUnitPhysicalExaminationReportReduceDto |
|
|
var entlist = new GetUnitPhysicalExaminationReportReduceDto |
|
|
|