diff --git a/src/Shentun.WebPeis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs b/src/Shentun.WebPeis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs index 4569729..c42096a 100644 --- a/src/Shentun.WebPeis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs +++ b/src/Shentun.WebPeis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs @@ -238,7 +238,8 @@ namespace Shentun.WebPeis.AppointPatientRegisters on appointPatientRegister.CustomerOrgId equals customerOrg.CustomerOrgId where appointPatientRegister.MedicalCenterId == medicalCenterId && appointPatientRegister.AppointDate >= input.AppointStartDate && - appointPatientRegister.AppointDate < input.AppointStopDate + appointPatientRegister.AppointDate < input.AppointStopDate && + appointPatientRegister.CustomerOrgId == GuidFlag.PersonCustomerOrgId orderby appointPatientRegister.AppointDate select new { @@ -345,8 +346,8 @@ namespace Shentun.WebPeis.AppointPatientRegisters join customerOrg in await _customerOrgRepository.GetQueryableAsync() on appointPatientRegister.CustomerOrgId equals customerOrg.CustomerOrgId where appointPatientRegister.PersonId == input.PersonId && - appointPatientRegister.CompleteFlag != AppointPatientRegisterCompleteFlag.CancelAppoint && - appointPatientRegister.CustomerOrgId == GuidFlag.PersonCustomerOrgId + appointPatientRegister.CompleteFlag != AppointPatientRegisterCompleteFlag.CancelAppoint + orderby appointPatientRegister.AppointDate select new {