fix: 修复批量删除轨迹中下拉轨迹列表中出现【不允许重复】【不允许手动创建】的轨迹代码

This commit is contained in:
云龙 王 2024-11-21 18:00:53 +08:00
parent e17e9fae38
commit 7e5ae19df4
2 changed files with 9 additions and 2 deletions

View File

@ -13,7 +13,7 @@ public class GetAvailableContentInput
public string? OrderNo { get; set; }
/// <summary>
/// 操作类型 1=创建 2=修改
/// 操作类型 1=创建 2=修改 3=删除
/// </summary>
public TrackOptionType TrackOptionType { get; set; }
}
@ -21,5 +21,6 @@ public class GetAvailableContentInput
public enum TrackOptionType
{
创建 = 1,
修改 = 2
修改 = 2,
删除 = 3
}

View File

@ -269,6 +269,12 @@ public class TrackContentService : ApplicationService
if (!item.IsAllowManuallyUpdate && input.TrackOptionType == TrackOptionType.修改) //跳过不允许手动创建的轨迹内容
continue;
if (!item.IsRepeatable && input.TrackOptionType == TrackOptionType.删除) //删除操作中跳过不重复的轨迹内容
continue;
if (!item.IsAllowManuallyCreate && input.TrackOptionType == TrackOptionType.删除) //删除操作中跳过不允许手动创建的轨迹内容
continue;
res.Data.Add(new GetAvailableContentOutput()
{
IsExternal = item.IsExternal,