fix: 修复批量删除轨迹中下拉轨迹列表中出现【不允许重复】【不允许手动创建】的轨迹代码
This commit is contained in:
parent
e17e9fae38
commit
7e5ae19df4
@ -13,7 +13,7 @@ public class GetAvailableContentInput
|
|||||||
public string? OrderNo { get; set; }
|
public string? OrderNo { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 操作类型 1=创建 2=修改
|
/// 操作类型 1=创建 2=修改 3=删除
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TrackOptionType TrackOptionType { get; set; }
|
public TrackOptionType TrackOptionType { get; set; }
|
||||||
}
|
}
|
||||||
@ -21,5 +21,6 @@ public class GetAvailableContentInput
|
|||||||
public enum TrackOptionType
|
public enum TrackOptionType
|
||||||
{
|
{
|
||||||
创建 = 1,
|
创建 = 1,
|
||||||
修改 = 2
|
修改 = 2,
|
||||||
|
删除 = 3
|
||||||
}
|
}
|
||||||
|
|||||||
@ -269,6 +269,12 @@ public class TrackContentService : ApplicationService
|
|||||||
if (!item.IsAllowManuallyUpdate && input.TrackOptionType == TrackOptionType.修改) //跳过不允许手动创建的轨迹内容
|
if (!item.IsAllowManuallyUpdate && input.TrackOptionType == TrackOptionType.修改) //跳过不允许手动创建的轨迹内容
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (!item.IsRepeatable && input.TrackOptionType == TrackOptionType.删除) //删除操作中跳过不重复的轨迹内容
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (!item.IsAllowManuallyCreate && input.TrackOptionType == TrackOptionType.删除) //删除操作中跳过不允许手动创建的轨迹内容
|
||||||
|
continue;
|
||||||
|
|
||||||
res.Data.Add(new GetAvailableContentOutput()
|
res.Data.Add(new GetAvailableContentOutput()
|
||||||
{
|
{
|
||||||
IsExternal = item.IsExternal,
|
IsExternal = item.IsExternal,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user