Browse Source

增加预约条件

master
wxd 11 months ago
parent
commit
5d09fb1354
  1. 12
      src/Shentun.Peis.Application/PatientRegisters/PatientRegisterAppService.cs

12
src/Shentun.Peis.Application/PatientRegisters/PatientRegisterAppService.cs

@ -2664,8 +2664,16 @@ namespace Shentun.Peis.PatientRegisters
{
var thirdBookingEnt = await _thirdBookingRepository.FirstOrDefaultAsync(f => f.PatientName == input.PatientName
&& f.IdNo == input.IdNo
&& (f.Phone == input.MobileTelephone || f.Phone == input.Telephone));
patientRegister.ThirdBookingId = thirdBookingEnt.Id.ToString();
&& (f.Phone == input.MobileTelephone || f.Phone == input.Telephone)
&& f.MedicalStatus != '3');
if (thirdBookingEnt != null)
{
patientRegister.ThirdBookingId = thirdBookingEnt.Id.ToString();
}
else
{
throw new UserFriendlyException("该人员未预约,请先预约");
}
}
}

Loading…
Cancel
Save