|
|
|
@ -66,25 +66,25 @@ namespace Shentun.Peis.ChargeRequests |
|
|
|
|
|
|
|
public async Task SendThirChargeRequestAsync(Guid id,string funName) |
|
|
|
{ |
|
|
|
var patientRegisterEntity = await (from patientRegister in await _patientRegisterRepository.GetQueryableAsync() |
|
|
|
join registerCheck in await _registerCheckRepository.GetQueryableAsync() |
|
|
|
on patientRegister.Id equals registerCheck.PatientRegisterId |
|
|
|
join registerCheckAsbitem in await _registerCheckAsbitemRepository.GetQueryableAsync() |
|
|
|
on registerCheck.Id equals registerCheckAsbitem.RegisterCheckId |
|
|
|
join chargeRequest in await _repository.GetQueryableAsync() |
|
|
|
on registerCheckAsbitem.LisRequestId equals chargeRequest.Id |
|
|
|
where chargeRequest.Id == id |
|
|
|
select new |
|
|
|
{ |
|
|
|
patientRegister |
|
|
|
}).FirstOrDefaultAsync(); |
|
|
|
if (patientRegisterEntity == null) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
//var patientRegisterEntity = (from patientRegister in await _patientRegisterRepository.GetQueryableAsync()
|
|
|
|
// join registerCheck in await _registerCheckRepository.GetQueryableAsync()
|
|
|
|
// on patientRegister.Id equals registerCheck.PatientRegisterId
|
|
|
|
// join registerCheckAsbitem in await _registerCheckAsbitemRepository.GetQueryableAsync()
|
|
|
|
// on registerCheck.Id equals registerCheckAsbitem.RegisterCheckId
|
|
|
|
// join chargeRequest in await _repository.GetQueryableAsync()
|
|
|
|
// on registerCheckAsbitem.LisRequestId equals chargeRequest.Id
|
|
|
|
// where chargeRequest.Id == id
|
|
|
|
// select new
|
|
|
|
// {
|
|
|
|
// patientRegister
|
|
|
|
// }).ToList().FirstOrDefault();
|
|
|
|
//if (patientRegisterEntity == null)
|
|
|
|
//{
|
|
|
|
// return;
|
|
|
|
//}
|
|
|
|
|
|
|
|
var thirdInterfaces = (await _thirdInterfaceRepository.GetListAsync(o => o.ThirdInterfaceType == ThirdInterfaceTypeFlag.ChargeRequest |
|
|
|
&& o.MedicalCenterId == patientRegisterEntity.patientRegister.MedicalCenterId)) |
|
|
|
)) |
|
|
|
.OrderBy(o => o.DisplayOrder).ToList(); |
|
|
|
foreach (var thirdInterface in thirdInterfaces) |
|
|
|
{ |
|
|
|
|