fix 设备组修改

This commit is contained in:
2024-10-11 11:55:00 +08:00
parent fd41d097df
commit aeffa95a96
6 changed files with 53 additions and 13 deletions

View File

@@ -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);
}
}