|
@@ -32,9 +32,11 @@ namespace Services
|
|
|
//开始拼装查询条件
|
|
|
var predicate = Expressionable.Create<PageUpdateInfo>();
|
|
|
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));
|
|
|
var response = Queryable()
|
|
|
.Where(predicate.ToExpression())
|
|
|
- .OrderByDescending(m => m.id)
|
|
|
+ .OrderBy(m => m.id)
|
|
|
.ToPage<PageUpdateInfo, PageUpdateInfoListVo>(page);
|
|
|
return response;
|
|
|
}
|