|
|
|
@ -83,8 +83,8 @@ namespace Shentun.WebPeis.AppointPatientRegisters |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
[HttpPost("api/app/AppointPatientRegister/GetByIdNoOrMobilePhone")] |
|
|
|
public async Task<List<AppointPatientRegisterDto>> GetByIdNoOrMobilePhoneAsync(IdNoOrMobilePhoneInputDto input) |
|
|
|
[HttpPost("api/app/AppointPatientRegister/GetListByIdNoOrMobilePhone")] |
|
|
|
public async Task<List<AppointPatientRegisterDto>> GetListByIdNoOrMobilePhoneAsync(IdNoOrMobilePhoneInputDto input) |
|
|
|
{ |
|
|
|
if (input == null) throw new UserFriendlyException("参数不能为空"); |
|
|
|
|
|
|
|
@ -109,6 +109,7 @@ namespace Shentun.WebPeis.AppointPatientRegisters |
|
|
|
on appointRegisterAsbitem.AsbitemId equals asbitem.AsbitemId |
|
|
|
join customerOrg in await _customerOrgRepository.GetQueryableAsync() |
|
|
|
on appointPatientRegister.CustomerOrgId equals customerOrg.CustomerOrgId |
|
|
|
where appointPatientRegister.AppointDate >= DateTime.Now.Date.AddDays(-10) |
|
|
|
orderby appointPatientRegister.AppointDate |
|
|
|
select new |
|
|
|
{ |
|
|
|
@ -130,7 +131,7 @@ namespace Shentun.WebPeis.AppointPatientRegisters |
|
|
|
{ |
|
|
|
throw new UserFriendlyException("身份证长度必须是18位"); |
|
|
|
} |
|
|
|
query = query.Where(o => o.person.IdNo == input.IdNo); |
|
|
|
query = query.Where(o => o.person.IdNo == input.IdNo ); |
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
|