committed by
GitHub
5 changed files with 78 additions and 84 deletions
@ -0,0 +1,32 @@ |
|||
using Volo.Abp.Specifications; |
|||
|
|||
namespace System.Linq.Expressions; |
|||
|
|||
internal static class ExpressionFuncExtensions |
|||
{ |
|||
public static Expression<Func<T, bool>> AndIf<T>( |
|||
this Expression<Func<T, bool>> first, |
|||
bool condition, |
|||
Expression<Func<T, bool>> second) |
|||
{ |
|||
if (condition) |
|||
{ |
|||
return ExpressionFuncExtender.And(first, second); |
|||
} |
|||
|
|||
return first; |
|||
} |
|||
|
|||
public static Expression<Func<T, bool>> OrIf<T>( |
|||
this Expression<Func<T, bool>> first, |
|||
bool condition, |
|||
Expression<Func<T, bool>> second) |
|||
{ |
|||
if (condition) |
|||
{ |
|||
return ExpressionFuncExtender.Or(first, second); |
|||
} |
|||
|
|||
return first; |
|||
} |
|||
} |
|||
@ -1,35 +0,0 @@ |
|||
using System; |
|||
|
|||
namespace LINGYUN.Abp.TaskManagement; |
|||
|
|||
public class BackgroundJobLogFilter |
|||
{ |
|||
/// <summary>
|
|||
/// 其他过滤条件
|
|||
/// </summary>
|
|||
public string Filter { get; set; } |
|||
/// <summary>
|
|||
/// 存在异常
|
|||
/// </summary>
|
|||
public bool? HasExceptions { get; set; } |
|||
/// <summary>
|
|||
/// 任务名称
|
|||
/// </summary>
|
|||
public string Name { get; set; } |
|||
/// <summary>
|
|||
/// 任务分组
|
|||
/// </summary>
|
|||
public string Group { get; set; } |
|||
/// <summary>
|
|||
/// 任务类型
|
|||
/// </summary>
|
|||
public string Type { get; set; } |
|||
/// <summary>
|
|||
/// 开始触发时间
|
|||
/// </summary>
|
|||
public DateTime? BeginRunTime { get; set; } |
|||
/// <summary>
|
|||
/// 结束触发时间
|
|||
/// </summary>
|
|||
public DateTime? EndRunTime { get; set; } |
|||
} |
|||
Loading…
Reference in new issue