|
|
|
@ -56,8 +56,8 @@ namespace Shentun.WebPeis.AppointSchedules |
|
|
|
[HttpPost("api/app/AppointSchedule/GetAppointScheduleDateList")] |
|
|
|
public async Task<List<AppointScheduleDateDto>> GetAppointScheduleDateListAsync(MedicalCenterIdInputDto input) |
|
|
|
{ |
|
|
|
Guid medicalCenterId ; |
|
|
|
if (input == null || input.MedicalCenterId == Guid.Empty || input.MedicalCenterId == null) |
|
|
|
Guid medicalCenterId; |
|
|
|
if (input == null || input.MedicalCenterId == Guid.Empty || input.MedicalCenterId == null) |
|
|
|
{ |
|
|
|
var webPeisOrganizationUnit = await _webPeisOrganizationUnitManager.GetMedicalCenterListAsync(); |
|
|
|
if (webPeisOrganizationUnit.Count > 1 || webPeisOrganizationUnit.Count == 0) |
|
|
|
@ -139,7 +139,7 @@ namespace Shentun.WebPeis.AppointSchedules |
|
|
|
//所有日期
|
|
|
|
List<DateTime> dateTimes = DataHelper.GetAllDatesWithinRange(startDate, endDate); |
|
|
|
|
|
|
|
var appointScheduleTemplateList = await _appointScheduleTemplateRepository.GetListAsync(); |
|
|
|
var appointScheduleTemplateList = await _appointScheduleTemplateRepository.GetListAsync(m => m.MedicalCenterId == input.MedicalCenterId); |
|
|
|
|
|
|
|
foreach (var dateTime in dateTimes) |
|
|
|
{ |
|
|
|
@ -403,9 +403,9 @@ namespace Shentun.WebPeis.AppointSchedules |
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost("api/app/AppointSchedule/GetAppointScheduleNumberLimitList")] |
|
|
|
public async Task<List<AppointScheduleDto>> GetAppointScheduleListAsync() |
|
|
|
public async Task<List<AppointScheduleDto>> GetAppointScheduleListAsync(GetAppointScheduleListInputDto input) |
|
|
|
{ |
|
|
|
var entList = await _appointScheduleRepository.GetQueryableAsync(); |
|
|
|
var entList = (await _appointScheduleRepository.GetQueryableAsync()).Where(m => m.MedicalCenterId == input.MedicalCenterId); |
|
|
|
var entListDto = entList.Select(s => new AppointScheduleDto |
|
|
|
{ |
|
|
|
AmNumberLimit = s.AmNumberLimit, |
|
|
|
|