Browse Source

Fix:调度任务查询引发Oracle数据库'ORA-00972:标识符过长'的错误

NewOnePerson 3 years ago
parent
commit
6f73243eb4
1 changed files with 14 additions and 1 deletions
  1. 14 1
      Admin.NET/Admin.NET.Core/Service/Job/SysJobService.cs

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

@@ -32,7 +32,20 @@ public class SysJobService : IDynamicApiController, ITransient
             .WhereIF(!string.IsNullOrWhiteSpace(input.Description), u => u.Description.Contains(input.Description))
             .Select(d => new JobOutput
             {
-                JobDetail = d,
+                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
+                }
             }).ToPagedListAsync(input.Page, input.PageSize);
         await _sysJobDetailRep.AsSugarClient().ThenMapperAsync(jobDetails.Items, async u =>
         {