修改
This commit is contained in:
parent
131bf85708
commit
51fe08f607
@ -61,7 +61,7 @@ public class TrackContentRepository : BasicRepository<TrackContentEntity>, ITrac
|
||||
.WhereIF(!input.Keywords.IsNullOrWhiteSpace(),
|
||||
(a, b, c, d, e, f) => a.Code.Contains(input.Keywords) || a.Content.Contains(input.Keywords)
|
||||
|| a.EnContent.Contains(input.Keywords))
|
||||
.WhereIF(input.TrackStatusId>0, (a, b, c, d, e, f) => a.TrackStatusId==input.TrackStatusId)
|
||||
.WhereIF(input.TrackStatusId > 0, (a, b, c, d, e, f) => a.TrackStatusId == input.TrackStatusId)
|
||||
.OrderByIF(input.SelectIds.IsNullOrEmpty(), (a, b, c, d, e, f) => a.CreateTime, OrderByType.Desc)
|
||||
.OrderByIF(!input.SelectIds.IsNullOrEmpty(), (a, b, c, d, e, f) => SqlFunc.IIF(input.SelectIds.Contains(a.Id), SqlFunc.DateAdd(SqlFunc.GetDate(), 1), a.CreateTime), OrderByType.Desc)
|
||||
.Select((a, b, c, d, e, f) => new GetTrackContentListVO
|
||||
@ -126,7 +126,7 @@ public class TrackContentRepository : BasicRepository<TrackContentEntity>, ITrac
|
||||
.LeftJoin<VSystemEntity>((contentMap, sourceContent, targetContent, sourceSystem) => contentMap.SubSystemId == sourceSystem.Id && !sourceSystem.IsDeleted)
|
||||
.LeftJoin<VSystemEntity>((contentMap, sourceContent, targetContent, sourceSystem, targetSystem) => contentMap.MapSubSystemId == targetSystem.Id && !targetSystem.IsDeleted)
|
||||
.Filter(null, true)
|
||||
.Where(contentMap => !contentMap.IsDeleted)
|
||||
.Where(contentMap => contentMap.Id == id && !contentMap.IsDeleted)
|
||||
.Select((contentMap, sourceContent, targetContent, sourceSystem, targetSystem) => new GetTrackContentMapDetailOutputVO
|
||||
{
|
||||
Id = contentMap.Id,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user