fix 优化summary
This commit is contained in:
@@ -64,12 +64,13 @@ public class AppointmentsController : ControllerBase
|
||||
/// 根据身份证获取当天预约信息
|
||||
/// </summary>
|
||||
/// <param name="idNo"></param>
|
||||
/// <param name="factory"></param>
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
[HttpGet("today")]
|
||||
public async Task<AppointmentDetailResponse> GetTodayByIdNoAsync(string idNo)
|
||||
public async Task<AppointmentDetailResponse> GetTodayByIdNoAsync(string idNo, string factory)
|
||||
{
|
||||
return await _appointmentService.GetTodayByIdNoAsync(idNo);
|
||||
return await _appointmentService.GetTodayByIdNoAsync(idNo, factory);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -83,4 +84,19 @@ public class AppointmentsController : ControllerBase
|
||||
{
|
||||
return await _appointmentService.GetRecordPageByIdNoAsync(request);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据明细
|
||||
/// </summary>
|
||||
/// <param name="factory"></param>
|
||||
/// <param name="start"></param>
|
||||
/// <param name="end"></param>
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
[HttpGet("summary")]
|
||||
public async Task<AppointmentSummaryResponse> GetSummaryAsync(string factory, DateTime start, DateTime end)
|
||||
{
|
||||
end = start.Date.AddDays(1).AddMilliseconds(-1);
|
||||
return await _appointmentService.GetSummaryAsync(factory, start, end);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user