视频增加tag查询
This commit is contained in:
@@ -17,6 +17,8 @@ namespace dy.net.dto
|
||||
public List<string>? Dates { get; set; }
|
||||
public List<string>? Dates2 { get; set; }
|
||||
|
||||
public string? Tag { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace dy.net.repository
|
||||
//.WhereIF(!string.IsNullOrWhiteSpace(title), x => x.VideoTitle.Contains(title))
|
||||
.WhereIF(!string.IsNullOrWhiteSpace(dto.Title), x => x.VideoTitle.Contains(dto.Title))
|
||||
.WhereIF(!string.IsNullOrWhiteSpace(dto.Author), x => x.Author.Contains(dto.Author))
|
||||
.WhereIF(!string.IsNullOrWhiteSpace(dto.Tag), x => x.Tag1==dto.Tag)
|
||||
.WhereIF(start.HasValue, x => x.SyncTime >= start.Value)
|
||||
.WhereIF(end.HasValue, x => x.SyncTime <= end.Value)
|
||||
.WhereIF(start2.HasValue, x => x.CreateTime >= start2.Value)
|
||||
|
||||
Reference in New Issue
Block a user