Explorar o código

修复版本查询问题

lcl hai 3 meses
pai
achega
378d780244
Modificáronse 2 ficheiros con 1 adicións e 1 borrados
  1. BIN=BIN
      .DS_Store
  2. 1 1
      Services/AppVersionService.cs

BIN=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())