feat 梯控相关
This commit is contained in:
@@ -51,6 +51,32 @@ public class AssignmentsController : ControllerBase
|
||||
return await _assignmentService.DeviceGetTasksAsync(request);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取设备任务关联人员
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[DisableApiLog]
|
||||
[IgnoreTenant]
|
||||
[AllowAnonymous]
|
||||
[HttpGet("elevatorAcs/users")]
|
||||
public async Task<List<string>> ElevatorAcsDeviceGetTasksGetAsync(string deviceUniqueNo)
|
||||
{
|
||||
return await _assignmentService.ElevatorAcsDeviceGetTasksGetAsync(deviceUniqueNo);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取设备任务
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[DisableApiLog]
|
||||
[IgnoreTenant]
|
||||
[HttpGet("elevatorAcs/users/deviceTasks")]
|
||||
public async Task<ElevatorAcsDeviceTaskToDeviceByDeviceResponse> ElevatorAcsDeviceGetTasksGetAsync(string deviceUniqueNo, string userCode)
|
||||
{
|
||||
return await _assignmentService.GetElevatorAcsTaskAsync(deviceUniqueNo, userCode);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取设备任务(按设备)
|
||||
/// </summary>
|
||||
@@ -71,6 +97,7 @@ public class AssignmentsController : ControllerBase
|
||||
[DisableApiLog]
|
||||
[HttpPost("taskStatus")]
|
||||
[IgnoreTenant]
|
||||
[Transactional]
|
||||
public async Task UpdateDeviceTaskStatusAsync(List<UpdateDeviceTaskStatusRequest> requests)
|
||||
{
|
||||
await _assignmentService.UpdateDeviceTaskStatusAsync(requests);
|
||||
@@ -262,9 +289,9 @@ public class AssignmentsController : ControllerBase
|
||||
{
|
||||
x.OpeningBalance = Math.Abs(x.OpeningBalance);
|
||||
x.CostAmount = Math.Abs(x.CostAmount);
|
||||
x.ClosingAmount = Math.Abs(x.ClosingAmount);
|
||||
x.ClosingAmount = Math.Abs(x.ClosingAmount);
|
||||
});
|
||||
|
||||
|
||||
return page;
|
||||
}
|
||||
|
||||
@@ -293,12 +320,12 @@ public class AssignmentsController : ControllerBase
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
page.Data.ForEach(x =>
|
||||
{
|
||||
x.OpeningBalance = Math.Abs(x.OpeningBalance);
|
||||
x.CostAmount = Math.Abs(x.CostAmount);
|
||||
x.ClosingAmount = Math.Abs(x.ClosingAmount);
|
||||
x.ClosingAmount = Math.Abs(x.ClosingAmount);
|
||||
});
|
||||
|
||||
return page;
|
||||
|
||||
Reference in New Issue
Block a user