Sfoglia il codice sorgente

😘调整优化代码 !547 感谢@zhaojingn

zuohuaijun 3 anni fa
parent
commit
4dbb693da9
1 ha cambiato i file con 1 aggiunte e 14 eliminazioni
  1. 1 14
      Admin.NET/Admin.NET.Core/Service/Job/SysJobService.cs

+ 1 - 14
Admin.NET/Admin.NET.Core/Service/Job/SysJobService.cs

@@ -32,20 +32,7 @@ public class SysJobService : IDynamicApiController, ITransient
             .WhereIF(!string.IsNullOrWhiteSpace(input.Description), u => u.Description.Contains(input.Description))
             .Select(d => new JobOutput
             {
-                JobDetail = new SysJobDetail
-                {
-                    AssemblyName = d.AssemblyName,
-                    Concurrent = d.Concurrent,
-                    Description = d.Description,
-                    GroupName = d.GroupName,
-                    Id = d.Id,
-                    IncludeAnnotations = d.IncludeAnnotations,
-                    JobId = d.JobId,
-                    JobType = d.JobType,
-                    Properties = d.Properties,
-                    ScriptCode = d.ScriptCode,
-                    UpdatedTime = d.UpdatedTime
-                }
+                JobDetail = d,
             }).ToPagedListAsync(input.Page, input.PageSize);
         await _sysJobDetailRep.AsSugarClient().ThenMapperAsync(jobDetails.Items, async u =>
         {