|
@@ -25,7 +25,7 @@ namespace Services
|
|
|
{
|
|
|
//开始拼装查询条件
|
|
|
var predicate = Expressionable.Create<AppVersion>();
|
|
|
- predicate = predicate.And(m => m.appVersion == parm.appVersion);
|
|
|
+ predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.appVersion), m => m.appVersion == parm.appVersion);
|
|
|
predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.kind), m => m.kind.Contains(parm.kind));
|
|
|
var response = Queryable()
|
|
|
.Where(predicate.ToExpression())
|