|
|
|
@ -26,10 +26,15 @@ namespace Shentun.Peis.AppointPatientRegisters |
|
|
|
public class AppointPatientRegisterAppService : ApplicationService |
|
|
|
{ |
|
|
|
private readonly IRepository<ThirdInterface, Guid> _thirdInterfaceRepository; |
|
|
|
private readonly IRepository<PatientRegister, Guid> _patientRegisterRepository; |
|
|
|
|
|
|
|
public AppointPatientRegisterAppService(IRepository<ThirdInterface, Guid> thirdInterfaceRepository) |
|
|
|
public AppointPatientRegisterAppService( |
|
|
|
IRepository<ThirdInterface, Guid> thirdInterfaceRepository, |
|
|
|
IRepository<PatientRegister, Guid> patientRegisterRepository |
|
|
|
) |
|
|
|
{ |
|
|
|
_thirdInterfaceRepository = thirdInterfaceRepository; |
|
|
|
_patientRegisterRepository = patientRegisterRepository; |
|
|
|
} |
|
|
|
/// <summary>
|
|
|
|
/// 获取网上预约数据
|
|
|
|
@ -154,5 +159,27 @@ namespace Shentun.Peis.AppointPatientRegisters |
|
|
|
return pluginsOut; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#region 提供给小程序的接口
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取预约记录是否在体检系统登记,用于判断是否能退款
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="input"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost("api/app/AppointPatientRegister/GetAppointPatientRegisterIsPeisRegister")] |
|
|
|
public async Task<bool> GetAppointPatientRegisterIsPeisRegisterAsync(AppointPatientRegisterIdInputDto input) |
|
|
|
{ |
|
|
|
var isRegister = false; |
|
|
|
var patientRegisterEnt = await _patientRegisterRepository.FirstOrDefaultAsync(f => f.AppointPatientRegisterId == input.AppointPatientRegisterId); |
|
|
|
if (patientRegisterEnt != null) |
|
|
|
{ |
|
|
|
isRegister = true; |
|
|
|
} |
|
|
|
return isRegister; |
|
|
|
} |
|
|
|
|
|
|
|
#endregion
|
|
|
|
} |
|
|
|
} |