Browse Source

修复版本查询问题

lcl 3 months ago
parent
commit
378d780244
2 changed files with 1 additions and 1 deletions
  1. BIN
      .DS_Store
  2. 1 1
      Services/AppVersionService.cs

BIN
.DS_Store


+ 1 - 1
Services/AppVersionService.cs

@@ -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())