|
@@ -32,8 +32,8 @@ namespace Services
|
|
//开始拼装查询条件
|
|
//开始拼装查询条件
|
|
var predicate = Expressionable.Create<PageUpdateInfo>();
|
|
var predicate = Expressionable.Create<PageUpdateInfo>();
|
|
predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.kind), m => m.kind.Contains(parm.kind));
|
|
predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.kind), m => m.kind.Contains(parm.kind));
|
|
- predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.title), m => m.kind.Contains(parm.title));
|
|
|
|
- predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.modulePath), m => m.kind.Contains(parm.modulePath));
|
|
|
|
|
|
+ predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.title), m => m.title.Contains(parm.title));
|
|
|
|
+ predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.modulePath), m => m.modulePath.Contains(parm.modulePath));
|
|
var response = Queryable()
|
|
var response = Queryable()
|
|
.Where(predicate.ToExpression())
|
|
.Where(predicate.ToExpression())
|
|
.OrderBy(m => m.id)
|
|
.OrderBy(m => m.id)
|