Преглед изворни кода

fix: StartFlow NewArrayExpression 修复 — 拆分链式 OrderBy | server 1.0.394

Pengxy пре 16 часа
родитељ
комит
61d8e05ef4

+ 3 - 3
server/Admin.NET.Web.Entry/Admin.NET.Web.Entry.csproj

@@ -11,9 +11,9 @@
     <GenerateSatelliteAssembliesForCore>true</GenerateSatelliteAssembliesForCore>
     <Copyright>Admin.NET</Copyright>
     <Description>Admin.NET 通用权限开发平台</Description>
-    <AssemblyVersion>1.0.393</AssemblyVersion>
-    <FileVersion>1.0.393</FileVersion>
-    <Version>1.0.393</Version>
+    <AssemblyVersion>1.0.394</AssemblyVersion>
+    <FileVersion>1.0.394</FileVersion>
+    <Version>1.0.394</Version>
   </PropertyGroup>
 
   <ItemGroup>

+ 2 - 4
server/Plugins/Admin.NET.Plugin.ApprovalFlow/Service/FlowEngine/FlowEngineService.cs

@@ -86,10 +86,8 @@ public class FlowEngineService : ITransient
         var flow = await _flowRep.AsQueryable()
             .ClearFilter()
             .Where(u => u.BizType == input.BizType && u.IsPublished && !u.IsDelete)
-            .OrderBy(u => new dynamic[] {
-                u.TenantId == tenantId ? 1 : 0,
-                u.Version
-            }, OrderByType.Desc)
+            .OrderBy(u => u.TenantId == tenantId ? 1 : 0, OrderByType.Desc)
+            .OrderBy(u => u.Version, OrderByType.Desc)
             .FirstAsync() ?? throw Oops.Oh($"未找到业务类型 [{input.BizType}] 的已发布流程定义");
 
         if (string.IsNullOrWhiteSpace(flow.FlowJson))