3 Commits

Author SHA1 Message Date
DESKTOP-G961P6V\Zhh 49c1509c70 预约 1 year ago
DESKTOP-G961P6V\Zhh 6cb43bd667 Merge branch 'master' of http://140.143.162.39:3000/wxd/WebPeis0523 1 year ago
DESKTOP-G961P6V\Zhh 1f7e24b49d 预约 1 year ago
  1. 3
      src/Shentun.WebPeis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs
  2. 2
      test/Shentun.WebPeis.Application.Tests/AppointPatientRegisterAppServiceTest.cs

3
src/Shentun.WebPeis.Application/AppointPatientRegisters/AppointPatientRegisterAppService.cs

@ -539,7 +539,8 @@ namespace Shentun.WebPeis.AppointPatientRegisters
where user.Id == input.PersonId && where user.Id == input.PersonId &&
(patientRegister.CompleteFlag == PatientRegisterCompleteFlag.PreRegistration || (patientRegister.CompleteFlag == PatientRegisterCompleteFlag.PreRegistration ||
patientRegister.CompleteFlag == PatientRegisterCompleteFlag.Registration) && patientRegister.CompleteFlag == PatientRegisterCompleteFlag.Registration) &&
patientRegister.MedicalStartDate >= DateTime.Now.Date.AddDays(-365)
patientRegister.CustomerOrgId != GuidFlag.PersonCustomerOrgId &&
patientRegister.MedicalStartDate >= DateTime.Now.Date.AddDays(-365)
orderby patientRegister.MedicalStartDate descending orderby patientRegister.MedicalStartDate descending
select new PatientRegisterDto() select new PatientRegisterDto()
{ {

2
test/Shentun.WebPeis.Application.Tests/AppointPatientRegisterAppServiceTest.cs

@ -201,7 +201,7 @@ namespace Shentun.WebPeis
var entity = new PersonIdInputDto() var entity = new PersonIdInputDto()
{ {
PersonId = new Guid("3a12d72c-19d9-e8b2-71f6-cf283103e191")
PersonId = new Guid("3a136458-5835-d5ad-3800-8091615613b0")
}; };
var item = await _appService.GetCustomerOrgAppointPatientRegisterByPersonIdAsync(entity); var item = await _appService.GetCustomerOrgAppointPatientRegisterByPersonIdAsync(entity);
_output.WriteLine(item.PatientRegisterId.ToString()); _output.WriteLine(item.PatientRegisterId.ToString());

Loading…
Cancel
Save