fix 设备组修改
This commit is contained in:
@@ -18,11 +18,11 @@ public class AppointmentAreasController : ControllerBase
|
||||
{
|
||||
private readonly IAppointmentAreaService _appointmentAreaService;
|
||||
|
||||
public AppointmentAreasController(IAppointmentAreaService appointmentAreaService )
|
||||
public AppointmentAreasController(IAppointmentAreaService appointmentAreaService)
|
||||
{
|
||||
_appointmentAreaService = appointmentAreaService;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 保存
|
||||
/// </summary>
|
||||
@@ -55,4 +55,16 @@ public class AppointmentAreasController : ControllerBase
|
||||
{
|
||||
await _appointmentAreaService.AssignAsync(request);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取当前分配
|
||||
/// </summary>
|
||||
/// <param name="customCode"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("assignments")]
|
||||
[Transactional]
|
||||
public async Task<List<Guid>> GetAssignmentsAsync(string customCode)
|
||||
{
|
||||
return await _appointmentAreaService.GetAssignmentsAsync(customCode);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user