代码生成新增加排序字段
This commit is contained in:
@@ -70,7 +70,9 @@ namespace ZR.Service.System
|
||||
if (!string.IsNullOrEmpty(genTable?.Options))
|
||||
{
|
||||
Dictionary<string, object> options = JsonConvert.DeserializeObject<Dictionary<string, object>>(genTable.Options);
|
||||
genTable.ParentMenuId = Convert.ToString(options.GetValueOrDefault("parentMenuId"));
|
||||
genTable.ParentMenuId = options.GetValueOrDefault("parentMenuId") ?? null;
|
||||
genTable.SortType = options.GetValueOrDefault("sortType") ?? "asc";
|
||||
genTable.SortField = options.GetValueOrDefault("sortField") ?? null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,6 @@ namespace ZR.Service.System.IService
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
//public int AddTaskLog(string jobId);
|
||||
public SysTasksLog AddTaskLog(string jobId, SysTasksLog tasksLog);
|
||||
SysTasksLog AddTaskLog(string jobId, SysTasksLog tasksLog);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
using Infrastructure.Attribute;
|
||||
using System;
|
||||
using System.Linq.Expressions;
|
||||
using ZR.Model;
|
||||
using ZR.Model.System;
|
||||
using ZR.Repository;
|
||||
using ZR.Service.System.IService;
|
||||
@@ -34,5 +36,10 @@ namespace ZR.Service.System
|
||||
Add(logModel);
|
||||
return logModel;
|
||||
}
|
||||
|
||||
public PagedInfo<SysTasksLog> GetPages(Expression<Func<SysTasksLog, bool>> where, PagerInfo parm, Expression<Func<SysTasksLog, object>> order, string orderType)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user