add-params:补充删除轨迹请求的操作来源参数Source

This commit is contained in:
hardstylewyl 2025-03-26 16:43:29 +08:00
parent 468be5e7ed
commit 0b85005b57
5 changed files with 23 additions and 0 deletions

View File

@ -10,4 +10,9 @@ public class BatchDeleteTrackByEsIdInput
/// </summary>
[MaxLength(500)]
public List<string> TrackContentEsIds { get; set; } = new();
/// <summary>
/// 删除轨迹来源 1.外部服务商 2.内部系统 3.人工
/// </summary>
public int? Source { get; set; } = 2;
}

View File

@ -20,4 +20,9 @@ public class BatchDeleteTrackInput : OrderNosInfo
/// 重复的情况下,比较值
/// </summary>
public object? CompareValue { get; set; }
/// <summary>
/// 删除轨迹来源 1.外部服务商 2.内部系统 3.人工
/// </summary>
public int? Source { get; set; }
}

View File

@ -27,4 +27,9 @@ public class DeleteTrackInput : OrderNoInfo
/// 重复的情况下,比较值
/// </summary>
public object? CompareValue { get; set; }
/// <summary>
/// 删除轨迹来源 1.外部服务商 2.内部系统 3.人工
/// </summary>
public int? Source { get; set; }
}

View File

@ -29,6 +29,11 @@ public class TrackDeleteEvent
/// </summary>
public object? CompareValue { get; set; }
/// <summary>
/// 删除轨迹来源 1.外部服务商 2.内部系统 3.人工
/// </summary>
public int? Source { get; set; }
/// <summary>
/// 轨迹标识符
/// </summary>

View File

@ -132,6 +132,7 @@ public partial class TrackService : ApplicationService, ITrackService
OrderIds = new[] { orderId },
CompareFields = input.CompareFields,
CompareValue = input.CompareValue,
Source = input.Source,
TrackIdentifiers = input.TrackIdentifiers,
SubSystemId = input.SubSystemId,
OperationMan = name
@ -175,6 +176,7 @@ public partial class TrackService : ApplicationService, ITrackService
{
EsIds = input.TrackContentEsIds.ToArray(),
SubSystemId = tracks.First().SubSystemId,
Source = input.Source,
OperationMan = userName,
OperationManId = currentUser.UserId
};
@ -242,6 +244,7 @@ public partial class TrackService : ApplicationService, ITrackService
var @event = new TrackDeleteEvent
{
OrderIds = orderIds.ToArray(),
Source = input.Source,
TrackIdentifiers = input.TrackIdentifiers,
CompareFields = input.CompareFields,
CompareValue = input.CompareValue,