From 9fd0405721ab184c5693a84ab2b0fb5e3560ff72 Mon Sep 17 00:00:00 2001 From: yubaolee Date: Mon, 18 Oct 2021 00:42:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5openauth.Core=EF=BC=9A=20?= =?UTF-8?q?=E9=87=87=E7=94=A8=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E5=99=A8?= =?UTF-8?q?=E7=9A=84=E8=A1=A8=E7=BB=93=E6=9E=84=E6=8E=A7=E5=88=B6=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E6=98=BE=E7=A4=BA=EF=BC=8C=E5=88=A0=E9=99=A4=E4=BB=A5?= =?UTF-8?q?=E5=89=8D=E6=8C=89=E7=85=A7dbset=E8=8E=B7=E5=8F=96=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E7=BB=93=E6=9E=84=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=20=E5=8D=87=E7=BA=A7EF=E5=8F=8A=E6=89=80?= =?UTF-8?q?=E6=9C=89=E4=B8=89=E6=96=B9=E7=9A=84=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Infrastructure/Cache/EnyimMemcachedContext.cs | 6 ++ Infrastructure/Cache/RedisCacheContext.cs | 1 - .../AutofacManager/AutofacContainerModule.cs | 2 +- .../Extensions/ConvertJsonExtension.cs | 2 +- Infrastructure/Extensions/EntityProperties.cs | 22 ++--- Infrastructure/Helpers/XmlHelper.cs | 4 +- Infrastructure/Infrastructure.csproj | 7 +- Infrastructure/Snowflake/Core/SnowWorkerM1.cs | 96 +++++++++---------- Infrastructure/Utilities/UriUtil.cs | 12 --- OpenAuth.App/AppManager/AppManager.cs | 3 +- .../AuthStrategies/AuthStrategyContext.cs | 12 +-- .../AuthStrategies/NormalAuthStrategy.cs | 24 +---- .../AuthStrategies/SystemAuthStrategy.cs | 6 +- OpenAuth.App/Base/BaseApp.cs | 2 +- OpenAuth.App/Base/BaseIntAutoGenApp.cs | 1 + OpenAuth.App/Base/BaseLongApp.cs | 1 + OpenAuth.App/Base/BaseStringApp.cs | 3 +- OpenAuth.App/Base/BaseTreeApp.cs | 1 + OpenAuth.App/BuilderTable/BuilderTableApp.cs | 18 ++-- .../BuilderTable/BuilderTableColumnApp.cs | 7 +- OpenAuth.App/Category/CategoryApp.cs | 16 ++-- OpenAuth.App/Category/CategoryTypeApp.cs | 7 +- .../DataPrivilege/DataPrivilegeRuleApp.cs | 18 ++-- OpenAuth.App/DbExtension.cs | 6 +- OpenAuth.App/Files/FileApp.cs | 7 +- OpenAuth.App/FlowInstance/FlowInstanceApp.cs | 17 ++-- OpenAuth.App/FlowScheme/FlowSchemeApp.cs | 7 +- OpenAuth.App/Form/FormApp.cs | 4 +- OpenAuth.App/FrmLeave/FrmLeaveReqApp.cs | 5 +- OpenAuth.App/Interface/IAuthStrategy.cs | 10 +- OpenAuth.App/Jobs/OpenJobApp.cs | 10 +- OpenAuth.App/OpenAuth.App.csproj | 9 +- OpenAuth.App/Resources/ResourceApp.cs | 3 +- OpenAuth.App/RoleManager/RoleApp.cs | 22 ++++- OpenAuth.App/SysLogs/SysLogApp.cs | 7 +- OpenAuth.App/SysMessage/SysMessageApp.cs | 7 +- OpenAuth.App/UserManager/UserManagerApp.cs | 13 +-- .../WmsInbound/WmsInboundOrderDtblApp.cs | 3 +- .../WmsInbound/WmsInboundOrderTblApp.cs | 3 +- .../OpenAuth.IdentityServer.csproj | 4 + .../Quickstart/SecurityHeadersAttribute.cs | 4 +- OpenAuth.Identity/Startup.cs | 3 +- .../Controllers/UserSessionController.cs | 3 +- OpenAuth.Mvc/OpenAuth.Mvc.csproj | 6 +- .../Views/ModuleManager/Assign.cshtml | 6 +- OpenAuth.Mvc/wwwroot/userJs/assignModule.js | 2 +- OpenAuth.Mvc/wwwroot/userJs/categories.js | 10 +- .../wwwroot/userJs/dataprivilegerules.js | 12 +-- OpenAuth.Repository/BaseRepository.cs | 5 +- OpenAuth.Repository/Interface/IRepository.cs | 3 +- .../OpenAuth.Repository.csproj | 16 ++-- OpenAuth.Repository/OpenAuthDBContext.cs | 5 +- .../QueryObj/SysTableColumn.cs | 14 +-- OpenAuth.Repository/UnitWork.cs | 5 +- .../Controllers/CheckController.cs | 6 +- OpenAuth.WebApi/OpenAuth.WebApi.csproj | 3 +- .../Template/SingleTable/BuildApp.html | 2 +- .../BuildAppWithDynamicHeader.html | 2 +- mysql初始化脚本/mysql脚本.sql | 34 ++++++- sql server 初始化脚本/Sql Server脚本.sql | 89 ++++++++++++++++- 60 files changed, 371 insertions(+), 267 deletions(-) diff --git a/Infrastructure/Cache/EnyimMemcachedContext.cs b/Infrastructure/Cache/EnyimMemcachedContext.cs index e12fb2e2..772b20d6 100644 --- a/Infrastructure/Cache/EnyimMemcachedContext.cs +++ b/Infrastructure/Cache/EnyimMemcachedContext.cs @@ -27,6 +27,12 @@ namespace Infrastructure.Cache _memcachedClient = client; } + /// + /// + /// + /// + /// + /// public override T Get(string key) { return _memcachedClient.Get(key); diff --git a/Infrastructure/Cache/RedisCacheContext.cs b/Infrastructure/Cache/RedisCacheContext.cs index d80ac073..9f9aacc0 100644 --- a/Infrastructure/Cache/RedisCacheContext.cs +++ b/Infrastructure/Cache/RedisCacheContext.cs @@ -14,7 +14,6 @@ namespace Infrastructure.Cache private ConnectionMultiplexer _conn { get; set; } private IDatabase iDatabase { get; set; } - private AppSetting _appSettings; public RedisCacheContext(IOptions options) { _conn = ConnectionMultiplexer.Connect(options.Value.RedisConf); diff --git a/Infrastructure/Extensions/AutofacManager/AutofacContainerModule.cs b/Infrastructure/Extensions/AutofacManager/AutofacContainerModule.cs index b29053f6..8585aaad 100644 --- a/Infrastructure/Extensions/AutofacManager/AutofacContainerModule.cs +++ b/Infrastructure/Extensions/AutofacManager/AutofacContainerModule.cs @@ -4,7 +4,7 @@ namespace Infrastructure.Extensions.AutofacManager { /// /// 提供全局静态获取服务的能力。 - /// 例:AutofacContainerModule.GetService() + /// 例:AutofacContainerModule.GetService<IPathProvider>() /// public class AutofacContainerModule { diff --git a/Infrastructure/Extensions/ConvertJsonExtension.cs b/Infrastructure/Extensions/ConvertJsonExtension.cs index ad7cff2e..fb7cbf09 100644 --- a/Infrastructure/Extensions/ConvertJsonExtension.cs +++ b/Infrastructure/Extensions/ConvertJsonExtension.cs @@ -91,7 +91,7 @@ namespace Infrastructure.Extensions /// /// list转换为json /// - /// + /// /// /// /// diff --git a/Infrastructure/Extensions/EntityProperties.cs b/Infrastructure/Extensions/EntityProperties.cs index e359a417..b300850e 100644 --- a/Infrastructure/Extensions/EntityProperties.cs +++ b/Infrastructure/Extensions/EntityProperties.cs @@ -26,7 +26,7 @@ namespace Infrastructure.Extensions /// 获取对象里指定成员名称 /// /// - /// 格式 Expression> exp = x => new { x.字段1, x.字段2 };或x=>x.Name + /// > exp = x => new { x.字段1, x.字段2 };或x=>x.Name]]> /// public static string[] GetExpressionProperty(this Expression> properties) { @@ -132,7 +132,7 @@ namespace Infrastructure.Extensions colType += "(" + (asType ? ((DisplayFormatAttribute) objAtrr).DataFormatString : "18,5") + ")"; } - ///如果是string,根据 varchar或nvarchar判断最大长度 + //如果是string,根据 varchar或nvarchar判断最大长度 if (property.PropertyType.ToString() == "System.String") { colType = colType.Split("(")[0]; @@ -198,7 +198,6 @@ namespace Infrastructure.Extensions /// /// /// 指定生成的数组值的类型 - /// /// public static string GetArraySql(this object[] array, FieldType fieldType, string sql) { @@ -220,7 +219,6 @@ namespace Infrastructure.Extensions /// /// 根据实体获取key的类型,用于update或del操作 /// - /// /// public static FieldType GetFieldType(this Type typeEntity) { @@ -607,13 +605,9 @@ namespace Infrastructure.Extensions /// - /// 判断是否包含某个属性: - /// 如 [Editable(true)] - // public string MO { get; set; }包含Editable + /// 判断是否包含某个属性 + /// public string MO {get; set; }包含Editable /// - /// - /// - /// public static bool ContainsCustomAttributes(this PropertyInfo propertyInfo, Type type) { propertyInfo.GetTypeCustomAttributes(type, out bool contains); @@ -795,7 +789,7 @@ namespace Infrastructure.Extensions /// 如果是小数float或Decimal必须对propertyInfo字段加DisplayFormatAttribute属性 /// /// - /// IEnumerable<(bool, string, object)> bool成否校验成功,string校验失败信息,object,当前校验的值 + /// IEnumerable<(bool, string, object)> bool成否校验成功,string校验失败信息,object,当前校验的值 public static IEnumerable<(bool, string, object)> ValidationValueForDbType(this PropertyInfo propertyInfo, params object[] values) { @@ -1036,7 +1030,7 @@ namespace Infrastructure.Extensions /// /// 当前类 /// 指定的类 - /// 指定属性的值 格式 Expression> exp = x => new { x.字段1, x.字段2 }; + /// 指定属性的值 格式 Expression<Func<entityt, object>> exp = x => new { x.字段1, x.字段2 }; /// 返回的是字段+value public static Dictionary GetTypeCustomValues(this MemberInfo member, Expression> expression) @@ -1066,7 +1060,7 @@ namespace Infrastructure.Extensions /// /// 当前类 /// 指定的类 - /// 指定属性的值 格式 Expression> exp = x => new { x.字段1, x.字段2 }; + /// 指定属性的值 格式 Expression<Func<entityt, object>> exp = x => new { x.字段1, x.字段2 }; /// public static string GetTypeCustomValue(this MemberInfo member, Expression> expression) @@ -1259,7 +1253,7 @@ namespace Infrastructure.Extensions } /// - /// 将数据源映射到新的数据中,目前只支持List映射到List或TSource映射到TResult + /// 将数据源映射到新的数据中,目前只支持List<TSource>映射到List<TResult>或TSource映射到TResult /// 目前只支持Dictionary或实体类型 /// /// diff --git a/Infrastructure/Helpers/XmlHelper.cs b/Infrastructure/Helpers/XmlHelper.cs index b16c22c1..85832875 100644 --- a/Infrastructure/Helpers/XmlHelper.cs +++ b/Infrastructure/Helpers/XmlHelper.cs @@ -1,7 +1,5 @@ using System.Xml; -/// 这个是用VS2010写的,如果用VS2005,请去掉System.Linq和System.Xml.Linq的引用 -/// 可以将此文件直接编译成dll,今后程序只需要引用该dll后开头添加using XmlLibrary;即可。 namespace Infrastructure.Helpers { /// @@ -371,7 +369,7 @@ namespace Infrastructure.Helpers else { XmlNode xn = GetNode(xns, nodeName); - if (xn != null) return xn; /// V1.0.0.3添加节点判断 + if (xn != null) return xn; } } return null; diff --git a/Infrastructure/Infrastructure.csproj b/Infrastructure/Infrastructure.csproj index 8e5ffc46..4b68fee7 100644 --- a/Infrastructure/Infrastructure.csproj +++ b/Infrastructure/Infrastructure.csproj @@ -6,15 +6,16 @@ bin\Debug\net5.0\Infrastructure.xml + 1701;1702;1591;1573;1572;1570 - + - - + + diff --git a/Infrastructure/Snowflake/Core/SnowWorkerM1.cs b/Infrastructure/Snowflake/Core/SnowWorkerM1.cs index f2085047..91348ec5 100644 --- a/Infrastructure/Snowflake/Core/SnowWorkerM1.cs +++ b/Infrastructure/Snowflake/Core/SnowWorkerM1.cs @@ -126,18 +126,18 @@ namespace Yitter.IdGenerator { return; - if (GenAction == null) - { - return; - } - - DoGenIdAction(new OverCostActionArg( - WorkerId, - useTimeTick, - 1, - _OverCostCountInOneTerm, - _GenCountInOneTerm, - _TermIndex)); + // if (GenAction == null) + // { + // return; + // } + // + // DoGenIdAction(new OverCostActionArg( + // WorkerId, + // useTimeTick, + // 1, + // _OverCostCountInOneTerm, + // _GenCountInOneTerm, + // _TermIndex)); } private void EndOverCostAction(in long useTimeTick) @@ -148,54 +148,54 @@ namespace Yitter.IdGenerator } return; - if (GenAction == null) - { - return; - } - - DoGenIdAction(new OverCostActionArg( - WorkerId, - useTimeTick, - 2, - _OverCostCountInOneTerm, - _GenCountInOneTerm, - _TermIndex)); + // if (GenAction == null) + // { + // return; + // } + // + // DoGenIdAction(new OverCostActionArg( + // WorkerId, + // useTimeTick, + // 2, + // _OverCostCountInOneTerm, + // _GenCountInOneTerm, + // _TermIndex)); } private void BeginTurnBackAction(in long useTimeTick) { return; - if (GenAction == null) - { - return; - } - - DoGenIdAction(new OverCostActionArg( - WorkerId, - useTimeTick, - 8, - 0, - 0, - _TurnBackIndex)); + // if (GenAction == null) + // { + // return; + // } + // + // DoGenIdAction(new OverCostActionArg( + // WorkerId, + // useTimeTick, + // 8, + // 0, + // 0, + // _TurnBackIndex)); } private void EndTurnBackAction(in long useTimeTick) { return; - if (GenAction == null) - { - return; - } - - DoGenIdAction(new OverCostActionArg( - WorkerId, - useTimeTick, - 9, - 0, - 0, - _TurnBackIndex)); + // if (GenAction == null) + // { + // return; + // } + // + // DoGenIdAction(new OverCostActionArg( + // WorkerId, + // useTimeTick, + // 9, + // 0, + // 0, + // _TurnBackIndex)); } private long NextOverCostId() diff --git a/Infrastructure/Utilities/UriUtil.cs b/Infrastructure/Utilities/UriUtil.cs index d9573960..b931c9d4 100644 --- a/Infrastructure/Utilities/UriUtil.cs +++ b/Infrastructure/Utilities/UriUtil.cs @@ -58,17 +58,5 @@ namespace Infrastructure.Utilities String result = url.ToLower().Replace("&" + fragmentToRemove, string.Empty).Replace("?" + fragmentToRemove, string.Empty); return result; } - - /// - /// 根据URL的相对地址获取决定路径 - /// eg: /Home/About ==>http://192.168.0.1/Home/About - /// - /// System.String. - //public static string GetAbsolutePathForRelativePath(string relativePath) - //{ - // HttpRequest Request = HttpContext.Current.Request; - // string returnUrl = string.Format("{0}{1}",Request.Url.AbsoluteUri.Replace(Request.Url.PathAndQuery, string.Empty) , VirtualPathUtility.ToAbsolute(relativePath)); - // return returnUrl; - //} } } \ No newline at end of file diff --git a/OpenAuth.App/AppManager/AppManager.cs b/OpenAuth.App/AppManager/AppManager.cs index 55024252..af6213d6 100644 --- a/OpenAuth.App/AppManager/AppManager.cs +++ b/OpenAuth.App/AppManager/AppManager.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Microsoft.EntityFrameworkCore; using OpenAuth.App.Interface; using OpenAuth.App.Request; using OpenAuth.Repository; @@ -39,7 +40,7 @@ namespace OpenAuth.App { var applications = UnitWork.Find(null); - return applications.ToList(); + return await applications.ToListAsync(); } diff --git a/OpenAuth.App/AuthStrategies/AuthStrategyContext.cs b/OpenAuth.App/AuthStrategies/AuthStrategyContext.cs index ad79ce67..0a29d81f 100644 --- a/OpenAuth.App/AuthStrategies/AuthStrategyContext.cs +++ b/OpenAuth.App/AuthStrategies/AuthStrategyContext.cs @@ -63,17 +63,7 @@ namespace OpenAuth.App { get { return _strategy.Orgs; } } - /// - /// 获取角色可以访问的字段信息,只是单纯的获取数据库 - /// - /// - /// - [Obsolete("请使用GetTableColumns代替")] - public List GetProperties(string moduleCode) - { - return _strategy.GetProperties(moduleCode); - } - + /// /// 获取角色可以访问的字段信息 /// diff --git a/OpenAuth.App/AuthStrategies/NormalAuthStrategy.cs b/OpenAuth.App/AuthStrategies/NormalAuthStrategy.cs index 106a9a9d..b50272ad 100644 --- a/OpenAuth.App/AuthStrategies/NormalAuthStrategy.cs +++ b/OpenAuth.App/AuthStrategies/NormalAuthStrategy.cs @@ -117,29 +117,7 @@ namespace OpenAuth.App _userRoleIds = UnitWork.Find(u => u.FirstId == _user.Id && u.Key == Define.USERROLE).Select(u => u.SecondId).ToList(); } } - - /// - /// 获取用户可访问的字段列表 - /// - /// 模块的code - /// - public List GetProperties(string moduleCode) - { - var allprops = _dbExtension.GetProperties(moduleCode); - - //如果是系统模块,直接返回所有字段。防止开发者把模块配置成系统模块,还在外层调用loginContext.GetProperties("xxxx"); - bool? isSysModule = UnitWork.FirstOrDefault(u => u.Code == moduleCode)?.IsSys; - if (isSysModule!= null && isSysModule.Value) - { - return allprops; - } - - var props =UnitWork.Find(u => - u.Key == Define.ROLEDATAPROPERTY && _userRoleIds.Contains(u.FirstId) && u.SecondId == moduleCode) - .Select(u => u.ThirdId); - - return allprops.Where(u => props.Contains(u.Key)).ToList(); - } + public List GetTableColumns(string moduleCode) { diff --git a/OpenAuth.App/AuthStrategies/SystemAuthStrategy.cs b/OpenAuth.App/AuthStrategies/SystemAuthStrategy.cs index 05f637ef..e9bab0c5 100644 --- a/OpenAuth.App/AuthStrategies/SystemAuthStrategy.cs +++ b/OpenAuth.App/AuthStrategies/SystemAuthStrategy.cs @@ -91,11 +91,7 @@ namespace OpenAuth.App throw new Exception("超级管理员,禁止设置用户"); } } - - public List GetProperties(string moduleCode) - { - return _dbExtension.GetProperties(moduleCode); - } + public List GetTableColumns(string moduleCode) { diff --git a/OpenAuth.App/Base/BaseApp.cs b/OpenAuth.App/Base/BaseApp.cs index 41705215..b7ec26d3 100644 --- a/OpenAuth.App/Base/BaseApp.cs +++ b/OpenAuth.App/Base/BaseApp.cs @@ -34,7 +34,7 @@ namespace OpenAuth.App /// /// 获取当前登录用户的数据访问权限 /// - /// linq表达式参数的名称,如u=>u.name中的"u" + /// linq表达式参数的名称,如u=>u.name中的"u" /// protected IQueryable GetDataPrivilege(string parametername) { diff --git a/OpenAuth.App/Base/BaseIntAutoGenApp.cs b/OpenAuth.App/Base/BaseIntAutoGenApp.cs index 758d03f8..a03391d5 100644 --- a/OpenAuth.App/Base/BaseIntAutoGenApp.cs +++ b/OpenAuth.App/Base/BaseIntAutoGenApp.cs @@ -15,6 +15,7 @@ namespace OpenAuth.App /// 业务层基类,UnitWork用于事务操作,Repository用于普通的数据库操作 /// /// + /// public class BaseIntAutoGenApp :BaseApp where T : IntAutoGenEntity where TDbContext: DbContext { public BaseIntAutoGenApp(IUnitWork unitWork, IRepository repository, IAuth auth) : base(unitWork, repository, auth) diff --git a/OpenAuth.App/Base/BaseLongApp.cs b/OpenAuth.App/Base/BaseLongApp.cs index 9317e60c..c5964cca 100644 --- a/OpenAuth.App/Base/BaseLongApp.cs +++ b/OpenAuth.App/Base/BaseLongApp.cs @@ -14,6 +14,7 @@ namespace OpenAuth.App /// 业务层基类,UnitWork用于事务操作,Repository用于普通的数据库操作 /// /// + /// public class BaseLongApp :BaseApp where T : LongEntity where TDbContext: DbContext { diff --git a/OpenAuth.App/Base/BaseStringApp.cs b/OpenAuth.App/Base/BaseStringApp.cs index 69b0e186..de50a01a 100644 --- a/OpenAuth.App/Base/BaseStringApp.cs +++ b/OpenAuth.App/Base/BaseStringApp.cs @@ -11,9 +11,10 @@ namespace OpenAuth.App { /// /// 业务层基类,UnitWork用于事务操作,Repository用于普通的数据库操作 - /// 如用户管理:Class UserManagerApp:BaseApp + /// 如用户管理:Class UserManagerApp:BaseApp<User> /// /// + /// public class BaseStringApp :BaseApp where T : StringEntity where TDbContext: DbContext { diff --git a/OpenAuth.App/Base/BaseTreeApp.cs b/OpenAuth.App/Base/BaseTreeApp.cs index 7d75aa61..b52d527c 100644 --- a/OpenAuth.App/Base/BaseTreeApp.cs +++ b/OpenAuth.App/Base/BaseTreeApp.cs @@ -10,6 +10,7 @@ namespace OpenAuth.App /// 树状结构处理 /// /// + /// /// public class BaseTreeApp :BaseStringApp where T : TreeEntity where TDbContext :DbContext { diff --git a/OpenAuth.App/BuilderTable/BuilderTableApp.cs b/OpenAuth.App/BuilderTable/BuilderTableApp.cs index 4b6b8bf7..f7cb794c 100644 --- a/OpenAuth.App/BuilderTable/BuilderTableApp.cs +++ b/OpenAuth.App/BuilderTable/BuilderTableApp.cs @@ -11,6 +11,7 @@ using Infrastructure; using Infrastructure.Extensions; using Infrastructure.Helpers; using Infrastructure.Utilities; +using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyModel; using Microsoft.Extensions.Options; using OpenAuth.App.Interface; @@ -29,8 +30,7 @@ namespace OpenAuth.App private BuilderTableColumnApp _builderTableColumnApp; private CategoryApp _categoryApp; private DbExtension _dbExtension; - private string _webProject = null; - private string _apiNameSpace = null; + private string _webProject = string.Empty; private string _startName = ""; private IOptions _appConfiguration; @@ -61,12 +61,12 @@ namespace OpenAuth.App { get { - if (_webProject != null) + if (string.IsNullOrEmpty(_webProject)) return _webProject; _webProject = ProjectPath.GetLastIndexOfDirectoryName(".WebApi") ?? ProjectPath.GetLastIndexOfDirectoryName("Api") ?? ProjectPath.GetLastIndexOfDirectoryName(".Mvc"); - if (_webProject == null) + if (string.IsNullOrEmpty(_webProject)) { throw new Exception("未获取到以.WebApi结尾的项目名称,无法创建页面"); } @@ -93,10 +93,10 @@ namespace OpenAuth.App objs = objs.Where(u => u.Id.Contains(request.key)); } - result.data = objs.OrderBy(u => u.Id) + result.data =await objs.OrderBy(u => u.Id) .Skip((request.page - 1) * request.limit) - .Take(request.limit).ToList(); - result.count = objs.Count(); + .Take(request.limit).ToListAsync(); + result.count =await objs.CountAsync(); return result; } @@ -764,8 +764,8 @@ namespace OpenAuth.App Name = u.TableName }); - result.data = objs.OrderBy(u => u.Id).ToList(); - result.count = objs.Count(); + result.data =await objs.OrderBy(u => u.Id).ToListAsync(); + result.count =await objs.CountAsync(); return result; } } diff --git a/OpenAuth.App/BuilderTable/BuilderTableColumnApp.cs b/OpenAuth.App/BuilderTable/BuilderTableColumnApp.cs index 4b4839ed..b176b2a3 100644 --- a/OpenAuth.App/BuilderTable/BuilderTableColumnApp.cs +++ b/OpenAuth.App/BuilderTable/BuilderTableColumnApp.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Infrastructure; +using Microsoft.EntityFrameworkCore; using OpenAuth.App.Interface; using OpenAuth.App.Request; using OpenAuth.App.Response; @@ -36,10 +37,10 @@ namespace OpenAuth.App objs = objs.Where(u => u.ColumnName.Contains(request.key)); } - result.data = objs.OrderBy(u => u.ColumnName) + result.data =await objs.OrderBy(u => u.ColumnName) .Skip((request.page - 1) * request.limit) - .Take(request.limit).ToList(); - result.count = objs.Count(); + .Take(request.limit).ToListAsync(); + result.count =await objs.CountAsync(); return result; } diff --git a/OpenAuth.App/Category/CategoryApp.cs b/OpenAuth.App/Category/CategoryApp.cs index 0a44d3e9..ba216bd0 100644 --- a/OpenAuth.App/Category/CategoryApp.cs +++ b/OpenAuth.App/Category/CategoryApp.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Infrastructure; +using Microsoft.EntityFrameworkCore; using OpenAuth.App.Interface; using OpenAuth.App.Request; using OpenAuth.App.Response; @@ -25,12 +26,11 @@ namespace OpenAuth.App { throw new CommonException("登录已过期", Define.INVALID_TOKEN); } - - var properties = loginContext.GetProperties("Category"); - - if (properties == null || properties.Count == 0) + + var columnFields = loginContext.GetTableColumns("Category"); + if (columnFields == null || columnFields.Count == 0) { - throw new Exception("当前登录用户没有访问该模块字段的权限,请联系管理员配置"); + throw new Exception("请在代码生成界面配置Category表的字段属性"); } var result = new TableData(); @@ -45,12 +45,12 @@ namespace OpenAuth.App objs = objs.Where(u => u.Id.Contains(request.key) || u.Name.Contains(request.key)); } - var propertyStr = string.Join(',', properties.Select(u =>u.Key)); - result.columnHeaders = properties; + var propertyStr = string.Join(',', columnFields.Select(u =>u.ColumnName)); + result.columnFields = columnFields; result.data = objs.OrderBy(u => u.DtCode) .Skip((request.page - 1) * request.limit) .Take(request.limit).Select($"new ({propertyStr})"); - result.count = objs.Count(); + result.count = await objs.CountAsync(); return result; } diff --git a/OpenAuth.App/Category/CategoryTypeApp.cs b/OpenAuth.App/Category/CategoryTypeApp.cs index 851bc443..3b072c3e 100644 --- a/OpenAuth.App/Category/CategoryTypeApp.cs +++ b/OpenAuth.App/Category/CategoryTypeApp.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Infrastructure; +using Microsoft.EntityFrameworkCore; using OpenAuth.App.Interface; using OpenAuth.App.Request; using OpenAuth.App.Response; @@ -29,10 +30,10 @@ namespace OpenAuth.App objs = objs.Where(u => u.Id.Contains(request.key) || u.Name.Contains(request.key)); } - result.data = objs.OrderBy(u => u.Name) + result.data =await objs.OrderBy(u => u.Name) .Skip((request.page - 1) * request.limit) - .Take(request.limit); - result.count = objs.Count(); + .Take(request.limit).ToListAsync(); + result.count =await objs.CountAsync(); return result; } diff --git a/OpenAuth.App/DataPrivilege/DataPrivilegeRuleApp.cs b/OpenAuth.App/DataPrivilege/DataPrivilegeRuleApp.cs index 76d0d4c4..e23e9aa5 100644 --- a/OpenAuth.App/DataPrivilege/DataPrivilegeRuleApp.cs +++ b/OpenAuth.App/DataPrivilege/DataPrivilegeRuleApp.cs @@ -2,6 +2,7 @@ using System; using System.Linq; using System.Threading.Tasks; using Infrastructure; +using Microsoft.EntityFrameworkCore; using OpenAuth.App.Interface; using OpenAuth.App.Request; using OpenAuth.App.Response; @@ -25,15 +26,13 @@ namespace OpenAuth.App { throw new CommonException("登录已过期", Define.INVALID_TOKEN); } - - var properties = loginContext.GetProperties("DataPrivilegeRule"); - - if (properties == null || properties.Count == 0) + + var columnFields = loginContext.GetTableColumns("DataPrivilegeRule"); + if (columnFields == null || columnFields.Count == 0) { - throw new Exception("当前登录用户没有访问该模块字段的权限,请联系管理员配置"); + throw new Exception("请在代码生成界面配置DataPrivilegeRule表的字段属性"); } - var result = new TableData(); var objs = UnitWork.Find(null); if (!string.IsNullOrEmpty(request.key)) @@ -41,13 +40,12 @@ namespace OpenAuth.App objs = objs.Where(u => u.Id.Contains(request.key) || u.SourceCode.Contains(request.key) || u.Description.Contains(request.key)); } - - var propertyStr = string.Join(',', properties.Select(u => u.Key)); - result.columnHeaders = properties; + var propertyStr = string.Join(',', columnFields.Select(u => u.ColumnName)); + result.columnFields = columnFields; result.data = objs.OrderBy(u => u.Id) .Skip((request.page - 1) * request.limit) .Take(request.limit).Select($"new ({propertyStr})"); - result.count = objs.Count(); + result.count = await objs.CountAsync(); return result; } diff --git a/OpenAuth.App/DbExtension.cs b/OpenAuth.App/DbExtension.cs index a53331cd..94b12245 100644 --- a/OpenAuth.App/DbExtension.cs +++ b/OpenAuth.App/DbExtension.cs @@ -173,7 +173,7 @@ select utc.column_name as COLUMNNAME, foreach (var context in _contexts) { - var columns = context.Query().FromSqlRaw(sql); + var columns = context.Set().FromSqlRaw(sql); var columnList = columns?.ToList(); if (columnList != null && columnList.Any()) { @@ -238,7 +238,7 @@ select utc.column_name as COLUMNNAME, foreach (var context in _contexts) { - var columns = context.Query().FromSqlRaw(sql); + var columns = context.Set().FromSqlRaw(sql); var columnList = columns?.ToList(); if (columnList != null && columnList.Any()) { @@ -344,7 +344,7 @@ select utc.column_name as COLUMNNAME, foreach (var context in _contexts) { - var columns = context.Query().FromSqlRaw(sql); + var columns = context.Set().FromSqlRaw(sql); var columnList = columns?.ToList(); if (columnList != null && columnList.Any()) { diff --git a/OpenAuth.App/Files/FileApp.cs b/OpenAuth.App/Files/FileApp.cs index cbe8db2b..92e9a0c0 100644 --- a/OpenAuth.App/Files/FileApp.cs +++ b/OpenAuth.App/Files/FileApp.cs @@ -7,6 +7,7 @@ using Infrastructure; using Infrastructure.Extensions; using Infrastructure.Helpers; using Microsoft.AspNetCore.Http; +using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using OpenAuth.App.Interface; @@ -52,10 +53,10 @@ namespace OpenAuth.App objs = objs.Where(u => u.FileName.Contains(request.key) || u.FilePath.Contains(request.key)); } - result.data = objs.OrderByDescending(u => u.CreateTime) + result.data =await objs.OrderByDescending(u => u.CreateTime) .Skip((request.page - 1) * request.limit) - .Take(request.limit); - result.count = objs.Count(); + .Take(request.limit).ToListAsync(); + result.count =await objs.CountAsync(); return result; } diff --git a/OpenAuth.App/FlowInstance/FlowInstanceApp.cs b/OpenAuth.App/FlowInstance/FlowInstanceApp.cs index f604a08c..538fc07b 100644 --- a/OpenAuth.App/FlowInstance/FlowInstanceApp.cs +++ b/OpenAuth.App/FlowInstance/FlowInstanceApp.cs @@ -27,6 +27,7 @@ using System.Net.Http; using System.Threading.Tasks; using Infrastructure.Const; using Infrastructure.Helpers; +using Microsoft.EntityFrameworkCore; using OpenAuth.Repository; namespace OpenAuth.App @@ -632,9 +633,9 @@ namespace OpenAuth.App waitExp = waitExp.And(t => t.CustomName.Contains(request.key)); } - result.count = UnitWork.Find(waitExp).Count(); + result.count = await UnitWork.Find(waitExp).CountAsync(); - result.data = UnitWork.Find(request.page, request.limit, "CreateDate descending", waitExp).ToList(); + result.data =await UnitWork.Find(request.page, request.limit, "CreateDate descending", waitExp).ToListAsync(); } else if (request.type == "disposed") //已办事项(即我参与过的流程) { @@ -650,10 +651,10 @@ namespace OpenAuth.App query = query.Where(t => t.CustomName.Contains(request.key)); } - result.data = query.OrderByDescending(u => u.CreateDate) + result.data = await query.OrderByDescending(u => u.CreateDate) .Skip((request.page - 1) * request.limit) - .Take(request.limit).ToList(); - result.count = instances.Count(); + .Take(request.limit).ToListAsync(); + result.count =await instances.CountAsync(); } else //我的流程 { @@ -665,9 +666,9 @@ namespace OpenAuth.App myFlowExp = myFlowExp.And(t => t.CustomName.Contains(request.key)); } - result.count = UnitWork.Find(myFlowExp).Count(); - result.data = UnitWork.Find(request.page, request.limit, - "CreateDate descending", myFlowExp).ToList(); + result.count =await UnitWork.Find(myFlowExp).CountAsync(); + result.data = await UnitWork.Find(request.page, request.limit, + "CreateDate descending", myFlowExp).ToListAsync(); } return result; diff --git a/OpenAuth.App/FlowScheme/FlowSchemeApp.cs b/OpenAuth.App/FlowScheme/FlowSchemeApp.cs index b2c873d6..7299a102 100644 --- a/OpenAuth.App/FlowScheme/FlowSchemeApp.cs +++ b/OpenAuth.App/FlowScheme/FlowSchemeApp.cs @@ -1,6 +1,7 @@ using System; using System.Linq; using System.Threading.Tasks; +using Microsoft.EntityFrameworkCore; using OpenAuth.App.Interface; using OpenAuth.App.Request; using OpenAuth.App.Response; @@ -59,10 +60,10 @@ namespace OpenAuth.App objs = objs.Where(u => u.SchemeName.Contains(request.key) || u.Id.Contains(request.key)); } - result.data = objs.OrderByDescending(u => u.CreateDate) + result.data = await objs.OrderByDescending(u => u.CreateDate) .Skip((request.page - 1) * request.limit) - .Take(request.limit).ToList(); - result.count = objs.Count(); + .Take(request.limit).ToListAsync(); + result.count = await objs.CountAsync(); return result; } diff --git a/OpenAuth.App/Form/FormApp.cs b/OpenAuth.App/Form/FormApp.cs index 6679dafa..fc5c1065 100644 --- a/OpenAuth.App/Form/FormApp.cs +++ b/OpenAuth.App/Form/FormApp.cs @@ -4,6 +4,7 @@ using System.Threading.Tasks; using Infrastructure; using Infrastructure.Utilities; using Microsoft.AspNetCore.Http; +using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Options; using OpenAuth.App.Interface; using OpenAuth.App.Request; @@ -17,7 +18,6 @@ namespace OpenAuth.App { public class FormApp : BaseStringApp { - private IAuth _auth; private IOptions _appConfiguration; private IHttpContextAccessor _httpContextAccessor; /// @@ -35,7 +35,7 @@ namespace OpenAuth.App result.data = forms.OrderByDescending(u => u.CreateDate) .Skip((request.page - 1) * request.limit) .Take(request.limit).ToList(); - result.count = forms.Count(); + result.count = await forms.CountAsync(); return result; } diff --git a/OpenAuth.App/FrmLeave/FrmLeaveReqApp.cs b/OpenAuth.App/FrmLeave/FrmLeaveReqApp.cs index 5ba45341..d02956f6 100644 --- a/OpenAuth.App/FrmLeave/FrmLeaveReqApp.cs +++ b/OpenAuth.App/FrmLeave/FrmLeaveReqApp.cs @@ -1,5 +1,6 @@ using System.Threading.Tasks; using Infrastructure; +using Microsoft.EntityFrameworkCore; using OpenAuth.App.Interface; using OpenAuth.App.Request; using OpenAuth.App.Response; @@ -21,8 +22,8 @@ namespace OpenAuth.App { return new TableData { - count = Repository.Count(null), - data = Repository.Find(request.page, request.limit, "Id desc") + count = await Repository.CountAsync(null), + data = await Repository.Find(request.page, request.limit, "Id desc").ToListAsync() }; } diff --git a/OpenAuth.App/Interface/IAuthStrategy.cs b/OpenAuth.App/Interface/IAuthStrategy.cs index 9177240b..74cc0cd9 100644 --- a/OpenAuth.App/Interface/IAuthStrategy.cs +++ b/OpenAuth.App/Interface/IAuthStrategy.cs @@ -39,15 +39,7 @@ namespace OpenAuth.App { get;set; } - - /// - /// 根据模块id获取可访问的模块字段 - /// - /// - /// - [Obsolete("请使用GetTableColumns代替")] - List GetProperties(string moduleCode); - + /// /// 获取角色可以访问的字段信息 /// diff --git a/OpenAuth.App/Jobs/OpenJobApp.cs b/OpenAuth.App/Jobs/OpenJobApp.cs index d64cd9cf..b5ba211b 100644 --- a/OpenAuth.App/Jobs/OpenJobApp.cs +++ b/OpenAuth.App/Jobs/OpenJobApp.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Threading.Tasks; using Infrastructure; using Infrastructure.Const; +using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using OpenAuth.App.Extensions; using OpenAuth.App.Interface; @@ -39,10 +40,10 @@ namespace OpenAuth.App objs = objs.Where(u => u.Id.Contains(request.key)); } - result.data = objs.OrderBy(u => u.Id) + result.data =await objs.OrderBy(u => u.Id) .Skip((request.page - 1) * request.limit) - .Take(request.limit); - result.count = objs.Count(); + .Take(request.limit).ToListAsync(); + result.count =await objs.CountAsync(); return result; } @@ -53,13 +54,12 @@ namespace OpenAuth.App /// public async Task StartAll() { - var jobs = Repository.Find(u => u.Status == (int) JobStatus.Running); + var jobs = await Repository.Find(u => u.Status == (int) JobStatus.Running).ToListAsync(); foreach (var job in jobs) { job.Start(_scheduler); } _logger.LogInformation("所有状态为正在运行的任务已启动"); - } public void Add(AddOrUpdateOpenJobReq req) diff --git a/OpenAuth.App/OpenAuth.App.csproj b/OpenAuth.App/OpenAuth.App.csproj index ab6543a8..6c12f1f9 100644 --- a/OpenAuth.App/OpenAuth.App.csproj +++ b/OpenAuth.App/OpenAuth.App.csproj @@ -6,6 +6,7 @@ bin\Debug\net5.0\OpenAuth.App.xml + 1701;1702;1591;1573;1572;1570 @@ -15,15 +16,15 @@ - + - - + + - + diff --git a/OpenAuth.App/Resources/ResourceApp.cs b/OpenAuth.App/Resources/ResourceApp.cs index d6672417..3465e313 100644 --- a/OpenAuth.App/Resources/ResourceApp.cs +++ b/OpenAuth.App/Resources/ResourceApp.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Infrastructure; +using Microsoft.EntityFrameworkCore; using OpenAuth.App.Interface; using OpenAuth.App.Request; using OpenAuth.App.Response; @@ -90,7 +91,7 @@ namespace OpenAuth.App result.data = resources.OrderBy(u => u.TypeId) .Skip((request.page - 1) * request.limit) .Take(request.limit).Select($"new ({propertyStr})"); - result.count = resources.Count(); + result.count = await resources.CountAsync(); return result; } diff --git a/OpenAuth.App/RoleManager/RoleApp.cs b/OpenAuth.App/RoleManager/RoleApp.cs index 1160d43e..c0a5d26d 100644 --- a/OpenAuth.App/RoleManager/RoleApp.cs +++ b/OpenAuth.App/RoleManager/RoleApp.cs @@ -7,6 +7,7 @@ using OpenAuth.Repository.Interface; using System.Linq; using System.Threading.Tasks; using Infrastructure; +using Microsoft.EntityFrameworkCore; using OpenAuth.App.Request; using OpenAuth.Repository; @@ -44,10 +45,10 @@ namespace OpenAuth.App objs = objs.Where(u => u.Name.Contains(request.key)); } - result.data = objs.OrderBy(u => u.Name) + result.data = await objs.OrderBy(u => u.Name) .Skip((request.page - 1) * request.limit) - .Take(request.limit).ToList(); - result.count = objs.Count(); + .Take(request.limit).ToListAsync(); + result.count = await objs.CountAsync(); return result; } @@ -79,6 +80,21 @@ namespace OpenAuth.App }); } + /// + /// 删除角色时,需要删除角色对应的权限 + /// + /// + public override void Delete(string[] ids) + { + UnitWork.ExecuteWithTransaction(() => + { + UnitWork.Delete(u=>(u.Key == Define.ROLEMODULE || u.Key == Define.ROLEELEMENT) && ids.Contains(u.FirstId)); + UnitWork.Delete(u=>u.Key == Define.USERROLE && ids.Contains(u.SecondId)); + UnitWork.Delete(u =>ids.Contains(u.Id)); + UnitWork.Save(); + }); + } + /// /// 更新角色属性 /// diff --git a/OpenAuth.App/SysLogs/SysLogApp.cs b/OpenAuth.App/SysLogs/SysLogApp.cs index cfe0431e..325fc664 100644 --- a/OpenAuth.App/SysLogs/SysLogApp.cs +++ b/OpenAuth.App/SysLogs/SysLogApp.cs @@ -1,6 +1,7 @@ using System.Linq; using System.Reflection; using System.Threading.Tasks; +using Microsoft.EntityFrameworkCore; using OpenAuth.App.Request; using OpenAuth.App.Response; using OpenAuth.Repository; @@ -25,10 +26,10 @@ namespace OpenAuth.App objs = objs.Where(u => u.Content.Contains(request.key) || u.Id.Contains(request.key)); } - result.data = objs.OrderByDescending(u => u.CreateTime) + result.data = await objs.OrderByDescending(u => u.CreateTime) .Skip((request.page - 1) * request.limit) - .Take(request.limit); - result.count = objs.Count(); + .Take(request.limit).ToListAsync(); + result.count = await objs.CountAsync(); return result; } diff --git a/OpenAuth.App/SysMessage/SysMessageApp.cs b/OpenAuth.App/SysMessage/SysMessageApp.cs index e8df8d21..1a660059 100644 --- a/OpenAuth.App/SysMessage/SysMessageApp.cs +++ b/OpenAuth.App/SysMessage/SysMessageApp.cs @@ -2,6 +2,7 @@ using System.Linq; using System.Threading.Tasks; using Infrastructure; +using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using OpenAuth.App.Interface; using OpenAuth.App.Request; @@ -43,10 +44,10 @@ namespace OpenAuth.App objs = objs.Where(u => u.ToStatus == request.Status); } - result.data = objs.OrderByDescending(u => u.CreateTime) + result.data =await objs.OrderByDescending(u => u.CreateTime) .Skip((request.page - 1) * request.limit) - .Take(request.limit); - result.count = objs.Count(); + .Take(request.limit).ToListAsync(); + result.count = await objs.CountAsync(); return result; } diff --git a/OpenAuth.App/UserManager/UserManagerApp.cs b/OpenAuth.App/UserManager/UserManagerApp.cs index 97855011..f2655b5c 100644 --- a/OpenAuth.App/UserManager/UserManagerApp.cs +++ b/OpenAuth.App/UserManager/UserManagerApp.cs @@ -5,6 +5,7 @@ using System.Threading.Tasks; using Castle.Core.Internal; using Infrastructure; using Infrastructure.Extensions; +using Microsoft.EntityFrameworkCore; using OpenAuth.App.Interface; using OpenAuth.App.Request; using OpenAuth.App.Response; @@ -108,8 +109,8 @@ namespace OpenAuth.App return new TableData { - count = userViews.Count(), - data = userViews.OrderBy(u => u.Name) + count =userViews.Count(), + data =userViews.OrderBy(u => u.Name) .Skip((request.page - 1) * request.limit) .Take(request.limit), }; @@ -282,8 +283,8 @@ namespace OpenAuth.App return new TableData { - count = users.Count(), - data = users.Skip((request.page - 1) * request.limit).Take(request.limit) + count =await users.CountAsync(), + data =await users.Skip((request.page - 1) * request.limit).Take(request.limit).ToListAsync() }; } @@ -302,8 +303,8 @@ namespace OpenAuth.App return new TableData { - count = users.Count(), - data = users.Skip((request.page - 1) * request.limit).Take(request.limit) + count =await users.CountAsync(), + data =await users.Skip((request.page - 1) * request.limit).Take(request.limit).ToListAsync() }; } diff --git a/OpenAuth.App/WmsInbound/WmsInboundOrderDtblApp.cs b/OpenAuth.App/WmsInbound/WmsInboundOrderDtblApp.cs index 58c5345a..997fa766 100644 --- a/OpenAuth.App/WmsInbound/WmsInboundOrderDtblApp.cs +++ b/OpenAuth.App/WmsInbound/WmsInboundOrderDtblApp.cs @@ -2,6 +2,7 @@ using System.Linq; using System.Threading.Tasks; using Infrastructure; +using Microsoft.EntityFrameworkCore; using OpenAuth.App.Interface; using OpenAuth.App.Request; using OpenAuth.App.Response; @@ -51,7 +52,7 @@ namespace OpenAuth.App result.data = objs.OrderBy(u => u.Id) .Skip((request.page - 1) * request.limit) .Take(request.limit).Select($"new ({propertyStr})"); - result.count = objs.Count(); + result.count = await objs.CountAsync(); return result; } diff --git a/OpenAuth.App/WmsInbound/WmsInboundOrderTblApp.cs b/OpenAuth.App/WmsInbound/WmsInboundOrderTblApp.cs index 518cbaf5..5cf6030d 100644 --- a/OpenAuth.App/WmsInbound/WmsInboundOrderTblApp.cs +++ b/OpenAuth.App/WmsInbound/WmsInboundOrderTblApp.cs @@ -2,6 +2,7 @@ using System.Linq; using System.Threading.Tasks; using Infrastructure; +using Microsoft.EntityFrameworkCore; using OpenAuth.App.Interface; using OpenAuth.App.Request; using OpenAuth.App.Response; @@ -48,7 +49,7 @@ namespace OpenAuth.App result.data = objs.OrderBy(u => u.Id) .Skip((request.page - 1) * request.limit) .Take(request.limit).Select($"new ({propertyStr})"); - result.count = objs.Count(); + result.count = await objs.CountAsync(); return result; } diff --git a/OpenAuth.Identity/OpenAuth.IdentityServer.csproj b/OpenAuth.Identity/OpenAuth.IdentityServer.csproj index bbecc0e1..189d272c 100644 --- a/OpenAuth.Identity/OpenAuth.IdentityServer.csproj +++ b/OpenAuth.Identity/OpenAuth.IdentityServer.csproj @@ -3,6 +3,10 @@ net5.0 + + + 1701;1702;1591;1573;1572;1570 + diff --git a/OpenAuth.Identity/Quickstart/SecurityHeadersAttribute.cs b/OpenAuth.Identity/Quickstart/SecurityHeadersAttribute.cs index 8eb2afa1..9b28dfe8 100644 --- a/OpenAuth.Identity/Quickstart/SecurityHeadersAttribute.cs +++ b/OpenAuth.Identity/Quickstart/SecurityHeadersAttribute.cs @@ -27,7 +27,7 @@ namespace OpenAuth.IdentityServer.Quickstart // } // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy - var csp = "default-src 'self'; object-src 'none'; frame-ancestors 'none'; sandbox allow-forms allow-same-origin allow-scripts; base-uri 'self';"; + // var csp = "default-src 'self'; object-src 'none'; frame-ancestors 'none'; sandbox allow-forms allow-same-origin allow-scripts; base-uri 'self';"; // also consider adding upgrade-insecure-requests once you have HTTPS in place for production //csp += "upgrade-insecure-requests;"; // also an example if you need client images to be displayed from twitter @@ -45,7 +45,7 @@ namespace OpenAuth.IdentityServer.Quickstart // } // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy - var referrer_policy = "no-referrer"; + // var referrer_policy = "no-referrer"; // if (!context.HttpContext.Response.Headers.ContainsKey("Referrer-Policy")) // { // context.HttpContext.Response.Headers.Add("Referrer-Policy", referrer_policy); diff --git a/OpenAuth.Identity/Startup.cs b/OpenAuth.Identity/Startup.cs index 26ccd369..95e5fece 100644 --- a/OpenAuth.Identity/Startup.cs +++ b/OpenAuth.Identity/Startup.cs @@ -2,6 +2,7 @@ // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. +using System; using System.Linq; using Autofac; using Infrastructure; @@ -83,7 +84,7 @@ namespace OpenAuth.IdentityServer else if(dbType == Define.DBTYPE_MYSQL) //mysql { services.AddDbContext(options => - options.UseMySql(Configuration.GetConnectionString("OpenAuthDBContext"))); + options.UseMySql(Configuration.GetConnectionString("OpenAuthDBContext"),new MySqlServerVersion(new Version(8, 0, 11)))); } else //oracle { diff --git a/OpenAuth.Mvc/Controllers/UserSessionController.cs b/OpenAuth.Mvc/Controllers/UserSessionController.cs index 6c51c978..1e74dd01 100644 --- a/OpenAuth.Mvc/Controllers/UserSessionController.cs +++ b/OpenAuth.Mvc/Controllers/UserSessionController.cs @@ -20,6 +20,7 @@ using System.Collections.Generic; using System.Linq; using Infrastructure; using Infrastructure.Helpers; +using Microsoft.EntityFrameworkCore.Metadata.Internal; using OpenAuth.App; using OpenAuth.App.Interface; using OpenAuth.App.Response; @@ -139,7 +140,7 @@ namespace OpenAuth.Mvc.Controllers { try { - var list = _authStrategyContext.GetProperties(moduleCode); + var list = _authStrategyContext.GetTableColumns(moduleCode); return JsonHelper.Instance.Serialize(new TableData { data = list, diff --git a/OpenAuth.Mvc/OpenAuth.Mvc.csproj b/OpenAuth.Mvc/OpenAuth.Mvc.csproj index a5255877..9a5b8f0c 100644 --- a/OpenAuth.Mvc/OpenAuth.Mvc.csproj +++ b/OpenAuth.Mvc/OpenAuth.Mvc.csproj @@ -5,6 +5,10 @@ false + + 1701;1702;1591;1573;1572;1570 + + @@ -16,7 +20,7 @@ - + diff --git a/OpenAuth.Mvc/Views/ModuleManager/Assign.cshtml b/OpenAuth.Mvc/Views/ModuleManager/Assign.cshtml index f2bbb233..866475e4 100644 --- a/OpenAuth.Mvc/Views/ModuleManager/Assign.cshtml +++ b/OpenAuth.Mvc/Views/ModuleManager/Assign.cshtml @@ -31,8 +31,8 @@ - 字段描述 - 字段代码 + 字段描述 + 字段代码 @@ -41,4 +41,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/OpenAuth.Mvc/wwwroot/userJs/assignModule.js b/OpenAuth.Mvc/wwwroot/userJs/assignModule.js index 7f9eccde..e65131f3 100644 --- a/OpenAuth.Mvc/wwwroot/userJs/assignModule.js +++ b/OpenAuth.Mvc/wwwroot/userJs/assignModule.js @@ -100,7 +100,7 @@ layui.config({ //循环所有数据,找出对应关系,设置checkbox选中状态 for (var i = 0; i < res.data.length; i++) { for (var j = 0; j < props.Result.length; j++) { - if (res.data[i].Key != props.Result[j]) continue; + if (res.data[i].ColumnName != props.Result[j]) continue; //这里才是真正的有效勾选 res.data[i]["LAY_CHECKED"] = true; diff --git a/OpenAuth.Mvc/wwwroot/userJs/categories.js b/OpenAuth.Mvc/wwwroot/userJs/categories.js index a2eb26cf..acb79f8c 100644 --- a/OpenAuth.Mvc/wwwroot/userJs/categories.js +++ b/OpenAuth.Mvc/wwwroot/userJs/categories.js @@ -13,11 +13,11 @@ layui.config({ $.getJSON('/Categories/All', { page: 1, limit: 1 }, function(data) { - var columns = data.columnHeaders.filter(u =>u.Browsable ===true).map(function(e) { - return { - field: e.Key, - title: e.Description - }; + var columns = data.columnFields.filter(u => u.IsList ===true).map(function (e) { + return { + field: e.ColumnName, + title: e.Comment + }; }); columns.unshift({ type: 'checkbox', diff --git a/OpenAuth.Mvc/wwwroot/userJs/dataprivilegerules.js b/OpenAuth.Mvc/wwwroot/userJs/dataprivilegerules.js index cfb13d6a..0580f35d 100644 --- a/OpenAuth.Mvc/wwwroot/userJs/dataprivilegerules.js +++ b/OpenAuth.Mvc/wwwroot/userJs/dataprivilegerules.js @@ -15,12 +15,12 @@ $.getJSON('/DataPrivilegeRules/Load', { page: 1, limit: 1 }, function (data) { - var columns = data.columnHeaders.filter(u =>u.Browsable ===true).map(function (e) { - return { - field: e.Key, - title: e.Description - }; - }); + var columns = data.columnFields.filter(u => u.IsList ===true).map(function (e) { + return { + field: e.ColumnName, + title: e.Comment + }; + }); columns.unshift({ type: 'checkbox', fixed: 'left' diff --git a/OpenAuth.Repository/BaseRepository.cs b/OpenAuth.Repository/BaseRepository.cs index d20f9132..b4bb7c5b 100644 --- a/OpenAuth.Repository/BaseRepository.cs +++ b/OpenAuth.Repository/BaseRepository.cs @@ -177,7 +177,6 @@ namespace OpenAuth.Repository /// /// 使用SQL脚本查询 /// - /// T为数据库实体 /// public IQueryable FromSql(string sql, params object[] parameters) { @@ -187,11 +186,11 @@ namespace OpenAuth.Repository /// /// 使用SQL脚本查询 /// - /// T为非数据库实体,需要在DbContext中增加对应的DbQuery /// + [Obsolete("最新版同FromSql,需要在DbContext中设置modelBuilder.Entity().HasNoKey();")] public IQueryable Query(string sql, params object[] parameters) { - return _context.Query().FromSqlRaw(sql, parameters); + return _context.Set().FromSqlRaw(sql, parameters); } #region 异步实现 diff --git a/OpenAuth.Repository/Interface/IRepository.cs b/OpenAuth.Repository/Interface/IRepository.cs index 42c4eb91..0a86fdbb 100644 --- a/OpenAuth.Repository/Interface/IRepository.cs +++ b/OpenAuth.Repository/Interface/IRepository.cs @@ -63,15 +63,14 @@ namespace OpenAuth.Repository.Interface /// /// 使用SQL脚本查询 /// - /// T为数据库实体 /// IQueryable FromSql(string sql, params object[] parameters); /// /// 使用SQL脚本查询 /// - /// T为非数据库实体,需要在DbContext中增加对应的DbQuery /// + [Obsolete("最新版同FromSql,需要在DbContext中设置modelBuilder.Entity().HasNoKey();")] IQueryable Query(string sql, params object[] parameters); diff --git a/OpenAuth.Repository/OpenAuth.Repository.csproj b/OpenAuth.Repository/OpenAuth.Repository.csproj index b6a9d7a0..c3b37764 100644 --- a/OpenAuth.Repository/OpenAuth.Repository.csproj +++ b/OpenAuth.Repository/OpenAuth.Repository.csproj @@ -6,24 +6,24 @@ bin\Debug\net5.0\OpenAuth.Repository.xml + 1701;1702;1591;1573;1572;1570 - + - - - + + - - - - + + + + diff --git a/OpenAuth.Repository/OpenAuthDBContext.cs b/OpenAuth.Repository/OpenAuthDBContext.cs index 1569f051..a911f629 100644 --- a/OpenAuth.Repository/OpenAuthDBContext.cs +++ b/OpenAuth.Repository/OpenAuthDBContext.cs @@ -63,7 +63,7 @@ namespace OpenAuth.Repository } else if(dbType == Define.DBTYPE_MYSQL) //mysql { - optionsBuilder.UseMySql(connect); + optionsBuilder.UseMySql(connect, new MySqlServerVersion(new Version(8, 0, 11))); } else { @@ -76,6 +76,7 @@ namespace OpenAuth.Repository { modelBuilder.Entity() .HasKey(c => new { c.Id }); + modelBuilder.Entity().HasNoKey(); } public virtual DbSet Applications { get; set; } @@ -109,7 +110,7 @@ namespace OpenAuth.Repository public virtual DbSet BuilderTables { get; set; } public virtual DbSet BuilderTableColumns { get; set; } //非数据库表格 - public virtual DbQuery SysTableColumns { get; set; } + public virtual DbSet SysTableColumns { get; set; } } } diff --git a/OpenAuth.Repository/QueryObj/SysTableColumn.cs b/OpenAuth.Repository/QueryObj/SysTableColumn.cs index f52c7252..5aa6bd3f 100644 --- a/OpenAuth.Repository/QueryObj/SysTableColumn.cs +++ b/OpenAuth.Repository/QueryObj/SysTableColumn.cs @@ -7,31 +7,31 @@ { /// /// 列名 - /// + /// public string ColumnName { get; set; } /// /// 列注释 - /// + /// public string Comment { get; set; } /// /// 类型,已转为.net类型 - /// + /// public string ColumnType { get; set; } /// /// 最大长度 - /// + /// public int? MaxLength { get; set; } /// /// 是否可空 - /// + /// public int? IsNull { get; set; } /// /// 是否显示 - /// + /// public int? IsDisplay { get; set; } /// /// 是否主键 - /// + /// public int? IsKey { get; set; } public string EntityType { get; set; } } diff --git a/OpenAuth.Repository/UnitWork.cs b/OpenAuth.Repository/UnitWork.cs index 0b2b1597..dddf03d8 100644 --- a/OpenAuth.Repository/UnitWork.cs +++ b/OpenAuth.Repository/UnitWork.cs @@ -211,10 +211,11 @@ namespace OpenAuth.Repository { return _context.Set().FromSqlRaw(sql, parameters); } - + + [Obsolete("最新版同FromSql,需要在DbContext中设置modelBuilder.Entity().HasNoKey();")] public IQueryable Query(string sql, params object[] parameters) where T : class { - return _context.Query().FromSqlRaw(sql, parameters); + return _context.Set().FromSqlRaw(sql, parameters); } /// diff --git a/OpenAuth.WebApi/Controllers/CheckController.cs b/OpenAuth.WebApi/Controllers/CheckController.cs index 63d0b86a..21198fb8 100644 --- a/OpenAuth.WebApi/Controllers/CheckController.cs +++ b/OpenAuth.WebApi/Controllers/CheckController.cs @@ -127,12 +127,12 @@ namespace OpenAuth.WebApi.Controllers /// 模块的Code,如Category /// [HttpGet] - public Response> GetProperties(string moduleCode) + public Response> GetProperties(string moduleCode) { - var result = new Response>(); + var result = new Response>(); try { - result.Result = _authStrategyContext.GetProperties(moduleCode); + result.Result = _authStrategyContext.GetTableColumns(moduleCode); } catch (Exception ex) { diff --git a/OpenAuth.WebApi/OpenAuth.WebApi.csproj b/OpenAuth.WebApi/OpenAuth.WebApi.csproj index 82b138f4..321fc268 100644 --- a/OpenAuth.WebApi/OpenAuth.WebApi.csproj +++ b/OpenAuth.WebApi/OpenAuth.WebApi.csproj @@ -6,6 +6,7 @@ bin\Debug\OpenAuth.WebApi.xml + 1701;1702;1591;1573;1572;1570 @@ -30,7 +31,7 @@ - + diff --git a/OpenAuth.WebApi/Template/SingleTable/BuildApp.html b/OpenAuth.WebApi/Template/SingleTable/BuildApp.html index 79edb766..d6f2ff84 100644 --- a/OpenAuth.WebApi/Template/SingleTable/BuildApp.html +++ b/OpenAuth.WebApi/Template/SingleTable/BuildApp.html @@ -40,7 +40,7 @@ namespace OpenAuth.App result.data = objs.OrderBy(u => u.Id) .Skip((request.page - 1) * request.limit) .Take(request.limit); - result.count = objs.Count(); + result.count =await objs.CountAsync(); return result; } diff --git a/OpenAuth.WebApi/Template/SingleTable/BuildAppWithDynamicHeader.html b/OpenAuth.WebApi/Template/SingleTable/BuildAppWithDynamicHeader.html index 36e7991f..2c1e3cc2 100644 --- a/OpenAuth.WebApi/Template/SingleTable/BuildAppWithDynamicHeader.html +++ b/OpenAuth.WebApi/Template/SingleTable/BuildAppWithDynamicHeader.html @@ -47,7 +47,7 @@ namespace OpenAuth.App result.data = objs.OrderBy(u => u.Id) .Skip((request.page - 1) * request.limit) .Take(request.limit).Select($"new ({propertyStr})"); - result.count = objs.Count(); + result.count =await objs.CountAsync(); return result; } diff --git a/mysql初始化脚本/mysql脚本.sql b/mysql初始化脚本/mysql脚本.sql index 62476790..6c7196d2 100644 --- a/mysql初始化脚本/mysql脚本.sql +++ b/mysql初始化脚本/mysql脚本.sql @@ -62,9 +62,11 @@ CREATE TABLE `buildertable` ( -- Records of buildertable -- ---------------------------- INSERT INTO `buildertable` VALUES ('03761b53-e229-4e0e-b7b1-2831bdc84384', 'Stock', '请在自己的电脑测试,服务器是看不出效果的', '', '', 'Stock', 'OpenAuth.Repository.Domain', 'StockApp', '仓储', 'D:/OpenAuth.Pro/Client', '', '', '', '2020-09-29 00:52:58', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:32:09', '00000000-0000-0000-0000-000000000000', '超级管理员', '超级管理员', '', 1, NULL); -INSERT INTO `buildertable` VALUES ('7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', '入库订单头表', 'wmsinboundorderdtbl', '', 'wmsinboundordertbl', 'OpenAuth.Repository.Domain', 'WmsInApp', '入库模块', 'D:/OpenAuth.Pro/Client', '', '', '', '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 01:17:34', '00000000-0000-0000-0000-000000000000', '超级管理员', '超级管理员', '', 0, NULL); +INSERT INTO `buildertable` VALUES ('1751d517-6d2b-4638-8f5c-aa6355bccb0e', 'Category', '', '', '', 'Category', 'OpenAuth.Repository.Domain', 'CategoryApp', '分类管理', 'D:/OpenAuth.Pro/Client', '', '', '', '2021-09-27 00:26:54', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:45:56', '00000000-0000-0000-0000-000000000000', '超级管理员', '超级管理员', '', 1, NULL); +INSERT INTO `buildertable` VALUES ('7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', '入库订单头表', '', '', 'wmsinboundordertbl', 'OpenAuth.Repository.Domain', 'WmsInApp', '入库模块', 'D:/OpenAuth.Pro/Client', '', '', '', '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:48:54', '00000000-0000-0000-0000-000000000000', '超级管理员', '超级管理员', '', 1, NULL); INSERT INTO `buildertable` VALUES ('de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', '', '', '', 'Resource', 'OpenAuth.Repository.Domain', 'ResourceApp', '资源管理', 'D:/OpenAuth.Pro/Client', '', '', '', '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:50:17', '00000000-0000-0000-0000-000000000000', '超级管理员', '超级管理员', '', 1, NULL); INSERT INTO `buildertable` VALUES ('f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', '', '', '', 'wmsinboundorderdtbl', 'OpenAuth.Repository.Domain', 'wmsinboundorderdtbl', '入库订单模块子表', 'D:/OpenAuth.Pro/Client', '', '', '', '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 01:09:27', '00000000-0000-0000-0000-000000000000', '超级管理员', '超级管理员', 'OrderId', 1, '7f0ca2fd-7fa0-4316-a466-22733d466dd2'); +INSERT INTO `buildertable` VALUES ('fc52b31a-fc29-42b6-b53c-99463644fff2', 'dataprivilegerule', '', '', '', 'DataPrivilegeRule', 'OpenAuth.Repository.Domain', 'DataPrivilegeRuleApp', '数据权限', 'D:/OpenAuth.Pro/Client', '', '', '', '2021-09-23 22:35:02', '00000000-0000-0000-0000-000000000000', '2021-09-26 00:28:20', '00000000-0000-0000-0000-000000000000', '超级管理员', '超级管理员', '', 1, NULL); -- ---------------------------- -- Table structure for buildertablecolumn @@ -103,6 +105,7 @@ CREATE TABLE `buildertablecolumn` ( PRIMARY KEY (`Id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '代码生成器的字段信息' ROW_FORMAT = Dynamic; + -- ---------------------------- -- Records of buildertablecolumn -- ---------------------------- @@ -112,42 +115,60 @@ INSERT INTO `buildertablecolumn` VALUES ('08e80261-e4ae-4a6f-adf5-09ad5267a975', INSERT INTO `buildertablecolumn` VALUES ('0ff3a09e-5a37-459f-be55-49ad2b90d934', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'Id', '入库通知单号', 'varchar', 'string', 'Id', 1, 0, 1, 1, 1, 1, 0, '', '', NULL, 'text', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:45:59', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('10462120-3731-4b3d-a44e-f8ee039b3b26', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'Disable', '是否禁用', 'tinyint', 'bool', 'Disable', 0, 0, 1, 1, 1, 1, 0, '', '', '', 'switch', 93, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-29 11:39:46', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('11997d76-06da-480f-9505-d7b6ed824d30', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'OrgId', '所属部门', 'varchar', 'string', 'OrgId', 0, 0, 0, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 01:50:35', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); +INSERT INTO `buildertablecolumn` VALUES ('15797df5-1392-4eff-8c2f-e142eed7a9f9', 'fc52b31a-fc29-42b6-b53c-99463644fff2', 'dataprivilegerule', 'CreateTime', '创建时间', 'datetime', 'DateTime', 'CreateTime', 0, 0, 1, 1, 0, 1, 0, '', '', NULL, '', 0, '2021-09-23 22:35:02', '00000000-0000-0000-0000-000000000000', '2021-09-23 22:39:53', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); +INSERT INTO `buildertablecolumn` VALUES ('165bb5dd-634d-470a-850c-8483bf967d0b', '1751d517-6d2b-4638-8f5c-aa6355bccb0e', 'Category', 'UpdateTime', '最后更新时间', 'datetime', 'DateTime', 'UpdateTime', 0, 0, 0, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-09-27 00:26:55', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:40:31', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('17cf3076-9b38-4ac8-a05a-07b1f5b4a309', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'Remark', '备注', 'varchar', 'string', 'Remark', 0, 0, 0, 1, 1, 1, 0, '', '', NULL, 'textarea', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:49:42', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 128); INSERT INTO `buildertablecolumn` VALUES ('18f07476-eaa9-4f5e-a4fd-14a8e1bd4c87', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'CreateUserName', '创建人', 'varchar', 'string', 'CreateUserName', 0, 0, 1, 1, 0, 1, 0, '', '', NULL, '', 80, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-29 00:59:35', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 200); INSERT INTO `buildertablecolumn` VALUES ('2105d04e-8c65-4a21-9701-76f64ac119d3', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'OrderId', '入库单号', 'varchar', 'string', 'OrderId', 1, 0, 1, 1, 1, 1, 0, '', '', NULL, '', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 03:06:40', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); +INSERT INTO `buildertablecolumn` VALUES ('24d51a8f-7102-41f1-8d39-c8e9e6d72a53', 'fc52b31a-fc29-42b6-b53c-99463644fff2', 'dataprivilegerule', 'SortNo', '排序号', 'int', 'int', 'SortNo', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, 'number', 0, '2021-09-23 22:35:02', '00000000-0000-0000-0000-000000000000', '2021-09-23 22:39:19', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); +INSERT INTO `buildertablecolumn` VALUES ('27178bae-387a-4e16-84c4-3fb9d5927afb', '1751d517-6d2b-4638-8f5c-aa6355bccb0e', 'Category', 'CreateTime', '创建时间', 'datetime', 'DateTime', 'CreateTime', 0, 0, 1, 1, 0, 1, 0, '', '', NULL, '', 0, '2021-09-27 00:26:55', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:42:27', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('28bd8b85-b62a-4fa3-a50d-a78b015897be', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'OwnerId', '货主编号', 'varchar', 'string', 'OwnerId', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, '', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-11 22:54:21', '', NULL, NULL, '', '超级管理员', 32); INSERT INTO `buildertablecolumn` VALUES ('2bc4953d-a863-492e-845f-36bff59bc107', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'UpdateUserId', '更新人ID', 'varchar', 'string', 'UpdateUserId', 0, 0, 0, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:51:27', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('2bed33d9-c8bf-46ea-8a35-99a6b079da66', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'UpdateTime', '更新时间', 'datetime', 'DateTime', 'UpdateTime', 0, 0, 0, 0, 0, 1, 0, '', '', NULL, 'datetime', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 03:06:47', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); +INSERT INTO `buildertablecolumn` VALUES ('32b5b4e9-44a7-410a-80d9-1200ffe048d5', 'fc52b31a-fc29-42b6-b53c-99463644fff2', 'dataprivilegerule', 'UpdateUserId', '最后更新人ID', 'varchar', 'string', 'UpdateUserId', 0, 0, 0, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-09-23 22:35:02', '00000000-0000-0000-0000-000000000000', '2021-09-23 22:39:38', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('33a8a1bd-ea81-4942-9469-4f20a037bf94', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'AppName', '应用名称', 'varchar', 'string', 'AppName', 0, 0, 0, 1, 1, 1, 0, '', '', NULL, '', 90, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:51:44', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('3508e108-6fb3-44f2-aa61-4c61a42f5f38', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'CreateTime', '创建时间', 'datetime', 'DateTime', 'CreateTime', 0, 0, 1, 1, 0, 1, 0, '', '', NULL, '', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 01:09:47', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('37219218-c8a1-40a8-be28-77d423a019b7', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'AppId', '应用ID', 'varchar', 'string', 'AppId', 0, 0, 0, 1, 1, 0, 0, '', '', 'PLATFORM', 'select', 0, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:51:49', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); +INSERT INTO `buildertablecolumn` VALUES ('3a5ed37f-4dca-420f-8a62-8465650dc1a3', 'fc52b31a-fc29-42b6-b53c-99463644fff2', 'dataprivilegerule', 'UpdateTime', '最后更新时间', 'datetime', 'DateTime', 'UpdateTime', 0, 0, 0, 1, 0, 1, 0, '', '', NULL, '', 0, '2021-09-23 22:35:02', '00000000-0000-0000-0000-000000000000', '2021-09-23 22:39:33', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('3b96bd7f-38a6-4188-9205-5f6340e29548', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'UpdateTime', '最后更新时间', 'datetime', 'DateTime', 'UpdateTime', 0, 0, 0, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 01:52:29', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('3d1b1192-aad3-4a6f-9770-ecf486bc4cc0', '03761b53-e229-4e0e-b7b1-2831bdc84384', 'Stock', 'Status', '出库/入库', 'int', 'int', 'Status', 0, 0, 1, 1, 1, 1, 0, '', '', 'COMMON_STATUS', 'select', 7, '2020-09-29 00:52:58', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:30:15', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('3e0dcc3c-3978-4615-bfe9-e65b78e67f4e', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'CreateTime', '创建时间', 'datetime', 'DateTime', 'CreateTime', 0, 0, 0, 0, 0, 1, 0, '', '', NULL, '', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:51:57', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('430a695a-7975-4c63-bf57-13c9614d086d', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'TaxRate', '税率', 'decimal', 'decimal', 'TaxRate', 0, 0, 0, 1, 1, 1, 0, '', '', NULL, 'decimal', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:49:47', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); +INSERT INTO `buildertablecolumn` VALUES ('450ff804-a22e-4676-83e8-474a2d32cc75', '1751d517-6d2b-4638-8f5c-aa6355bccb0e', 'Category', 'CreateUserName', '创建人', 'varchar', 'string', 'CreateUserName', 0, 0, 1, 1, 0, 1, 0, '', '', NULL, '', 0, '2021-09-27 00:26:55', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:42:32', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 200); INSERT INTO `buildertablecolumn` VALUES ('4922ec7f-8730-4c48-913b-a1c110c1e8c4', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'ScheduledInboundTime', '预定入库时间', 'datetime', 'DateTime', 'ScheduledInboundTime', 0, 0, 0, 1, 1, 0, 0, '', '', NULL, 'date', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 01:51:12', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('4b52a996-4f4d-4a7c-b068-091d1a378b4c', '03761b53-e229-4e0e-b7b1-2831bdc84384', 'Stock', 'OrgId', '组织ID', 'varchar', 'string', 'OrgId', 0, 0, 0, 1, 0, 0, 0, '', '', NULL, '', 20, '2020-09-29 00:52:58', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:30:02', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('4c44c915-d771-44b5-8030-f1c242425c7d', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'Id', '入库通知单明细号', 'varchar', 'string', 'Id', 1, 0, 1, 1, 1, 1, 0, '', '', NULL, 'text', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:48:11', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); +INSERT INTO `buildertablecolumn` VALUES ('4d6d87f3-b597-4dda-8f1f-a0d3d66a25e7', '1751d517-6d2b-4638-8f5c-aa6355bccb0e', 'Category', 'DtValue', '分类值', 'varchar', 'string', 'DtValue', 0, 0, 0, 1, 1, 1, 0, '', '', NULL, 'textarea', 95, '2021-09-27 00:26:55', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:42:07', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('4ddd9669-84c6-4fd4-ae2b-fc72eb2aecf7', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'Description', '描述', 'varchar', 'string', 'Description', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, '', 85, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-29 00:59:28', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 500); INSERT INTO `buildertablecolumn` VALUES ('4e967746-afe2-431c-b549-3ffbe982c25a', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'TypeName', '分类名称', 'varchar', 'string', 'TypeName', 0, 0, 0, 1, 1, 1, 0, '', '', NULL, '', 0, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-29 00:27:29', '', NULL, NULL, '', '超级管理员', 20); INSERT INTO `buildertablecolumn` VALUES ('50cf4640-ef20-4122-b21e-c4a6562813f3', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'SortNo', '排序号', 'int', 'int', 'SortNo', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, 'text', 0, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-29 00:31:48', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); +INSERT INTO `buildertablecolumn` VALUES ('51f693cc-33c9-47e0-8080-81118a1d6924', 'fc52b31a-fc29-42b6-b53c-99463644fff2', 'dataprivilegerule', 'UpdateUserName', '最后更新人', 'varchar', 'string', 'UpdateUserName', 0, 0, 0, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-09-23 22:35:02', '00000000-0000-0000-0000-000000000000', '2021-09-23 22:40:06', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 200); +INSERT INTO `buildertablecolumn` VALUES ('53b76400-51d6-4f38-8142-7a855e9f872a', '1751d517-6d2b-4638-8f5c-aa6355bccb0e', 'Category', 'DtCode', '分类标识', 'varchar', 'string', 'DtCode', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, '', 99, '2021-09-27 00:26:55', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:42:00', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('54954a8b-b34b-41c3-a2bf-46cf5c3f1afa', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'UpdateTime', '更新时间', 'datetime', 'DateTime', 'UpdateTime', 0, 0, 0, 1, 0, 1, 0, '', '', NULL, '', 0, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:51:24', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('56f222a5-bce9-4ae9-acfc-a6c7de0c6dfa', '03761b53-e229-4e0e-b7b1-2831bdc84384', 'Stock', 'Name', '产品名称', 'text', 'string', 'Name', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, 'text', 40, '2020-09-29 00:52:58', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:29:52', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 0); INSERT INTO `buildertablecolumn` VALUES ('5d372a7e-09f8-480c-9f05-0b28d24b713b', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'ShipperId', '承运人编号', 'varchar', 'string', 'ShipperId', 0, 0, 0, 1, 1, 1, 0, '', '', NULL, 'text', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:45:44', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); +INSERT INTO `buildertablecolumn` VALUES ('5d6c8d4f-b127-4959-a34c-5e641a9d89ed', '1751d517-6d2b-4638-8f5c-aa6355bccb0e', 'Category', 'SortNo', '排序号', 'int', 'int', 'SortNo', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, 'number', 70, '2021-09-27 00:26:55', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:42:51', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('6383b218-2658-4981-9f62-4690f398c1f2', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'Price', '含税单价', 'decimal', 'decimal', 'Price', 0, 0, 0, 1, 1, 1, 0, '', '', NULL, 'decimal', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:49:05', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('67137a1d-f572-40ed-8c67-7fd570b63f42', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'UpdateUserName', '最后更新人', 'varchar', 'string', 'UpdateUserName', 0, 0, 0, 0, 0, 1, 0, '', '', NULL, '', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:52:05', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 200); INSERT INTO `buildertablecolumn` VALUES ('67a497dd-19b5-44d6-9804-6b8c0769cef0', '03761b53-e229-4e0e-b7b1-2831bdc84384', 'Stock', 'Viewable', '可见范围', 'varchar', 'string', 'Viewable', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, '', 1, '2020-09-29 00:52:58', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:30:25', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('6bd63965-6353-47f8-bf46-eaa507457669', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'OrderType', '入库类型', 'varchar', 'string', 'OrderType', 0, 0, 1, 1, 1, 1, 0, '', '', 'SYS_INBOUNDTYPE', 'select', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:45:23', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); +INSERT INTO `buildertablecolumn` VALUES ('6cb07125-18fd-4268-adcc-e23ca1144ba5', 'fc52b31a-fc29-42b6-b53c-99463644fff2', 'dataprivilegerule', 'PrivilegeRules', '权限规则', 'varchar', 'string', 'PrivilegeRules', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, '', 0, '2021-09-23 22:35:02', '00000000-0000-0000-0000-000000000000', '2021-09-23 22:35:02', '', NULL, NULL, '', '超级管理员', 1000); INSERT INTO `buildertablecolumn` VALUES ('6e6c331c-31ff-40cf-bddc-f331f936c982', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'Name', '名称', 'varchar', 'string', 'Name', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, '', 95, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-29 00:58:42', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 255); INSERT INTO `buildertablecolumn` VALUES ('6ec4c6b1-7a5f-4000-bf69-a2511b0febb2', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'ExternalType', '相关单据类型', 'varchar', 'string', 'ExternalType', 0, 0, 0, 0, 0, 0, 0, '', '', 'SYS_ORDERTYPE', 'select', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 01:13:21', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); +INSERT INTO `buildertablecolumn` VALUES ('6f59479c-9795-4df2-bd33-8f659f6b659d', 'fc52b31a-fc29-42b6-b53c-99463644fff2', 'dataprivilegerule', 'CreateUserId', '创建人ID', 'varchar', 'string', 'CreateUserId', 0, 0, 1, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-09-23 22:35:02', '00000000-0000-0000-0000-000000000000', '2021-09-23 22:38:44', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('7000e82f-da5d-4d5e-ac4b-eda825ae40c7', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'GoodsType', '商品类别', 'varchar', 'string', 'GoodsType', 0, 0, 0, 1, 1, 1, 0, '', '', 'SYS_GOODSTYPE', 'select', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 01:10:28', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('73759b1d-df4a-4c88-879e-503196604f67', '03761b53-e229-4e0e-b7b1-2831bdc84384', 'Stock', 'Time', '操作时间', 'datetime', 'DateTime', 'Time', 0, 0, 1, 1, 0, 1, 0, '', '', NULL, 'date', 5, '2020-09-29 00:52:58', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:30:19', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('7bc33f75-16dc-49b7-822d-32be5aae904b', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'OrderNum', '通知数量', 'decimal', 'decimal', 'OrderNum', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, 'number', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:48:58', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); +INSERT INTO `buildertablecolumn` VALUES ('7edebf71-aa41-4bac-bff3-eaa3c3159b40', 'fc52b31a-fc29-42b6-b53c-99463644fff2', 'dataprivilegerule', 'SourceCode', '资源标识(模块编号)', 'varchar', 'string', 'SourceCode', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, '', 0, '2021-09-23 22:35:02', '00000000-0000-0000-0000-000000000000', '2021-09-23 22:35:02', '', NULL, NULL, '', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('85ebb3a8-1a19-44f8-9706-acac1c8bdc44', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'AsnStatus', '到货状况', 'int', 'int', 'AsnStatus', 0, 0, 1, 1, 1, 1, 0, '', '', 'SYS_STATUS', 'select', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:47:30', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('861ca9ab-e81e-4fa8-8b56-375127a8cb59', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'LeaveNum', '剩余数量', 'decimal', 'decimal', 'LeaveNum', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, 'number', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:48:44', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); +INSERT INTO `buildertablecolumn` VALUES ('87d68d3a-22b1-475c-a20a-d39724ca7639', 'fc52b31a-fc29-42b6-b53c-99463644fff2', 'dataprivilegerule', 'CreateUserName', '创建人', 'varchar', 'string', 'CreateUserName', 0, 0, 1, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-09-23 22:35:02', '00000000-0000-0000-0000-000000000000', '2021-09-23 22:38:48', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 200); INSERT INTO `buildertablecolumn` VALUES ('8a43f4d1-73a7-408d-b3cc-02be321b8ef9', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'OwnerId', '货主编号', 'varchar', 'string', 'OwnerId', 0, 0, 0, 1, 1, 1, 0, '', '', NULL, 'text', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:45:33', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('8c0836e9-6da1-4510-a59b-ccc94f4c2c14', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'GoodsId', '商品编号', 'varchar', 'string', 'GoodsId', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, '', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-11 22:54:21', '', NULL, NULL, '', '超级管理员', 50); +INSERT INTO `buildertablecolumn` VALUES ('8d0326c3-fcbc-4b37-8c8b-20421daf6b34', 'fc52b31a-fc29-42b6-b53c-99463644fff2', 'dataprivilegerule', 'Description', '权限描述', 'varchar', 'string', 'Description', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, '', 0, '2021-09-23 22:35:02', '00000000-0000-0000-0000-000000000000', '2021-09-23 22:35:02', '', NULL, NULL, '', '超级管理员', 255); INSERT INTO `buildertablecolumn` VALUES ('8effdc32-477a-44a4-a0e6-3e58c5631307', '03761b53-e229-4e0e-b7b1-2831bdc84384', 'Stock', 'Price', '产品单价', 'decimal', 'decimal', 'Price', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, 'text', 10, '2020-09-29 00:52:58', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:31:44', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); +INSERT INTO `buildertablecolumn` VALUES ('8f161c08-1880-4b9f-95d6-88abb78a573b', 'fc52b31a-fc29-42b6-b53c-99463644fff2', 'dataprivilegerule', 'SubSourceCode', '二级资源标识', 'varchar', 'string', 'SubSourceCode', 0, 0, 0, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-09-23 22:35:02', '00000000-0000-0000-0000-000000000000', '2021-09-26 00:28:18', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); +INSERT INTO `buildertablecolumn` VALUES ('94d03bc7-832c-4dbe-9df1-84e8ec6f1707', '1751d517-6d2b-4638-8f5c-aa6355bccb0e', 'Category', 'Description', '描述', 'varchar', 'string', 'Description', 0, 0, 0, 1, 0, 0, 0, '', '', NULL, '', 55, '2021-09-27 00:26:55', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:45:53', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 500); INSERT INTO `buildertablecolumn` VALUES ('95b6e356-3687-4001-9ffb-1271c3baf31e', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'Id', '标识', 'varchar', 'string', 'Id', 1, 0, 1, 1, 1, 1, 0, '', '', NULL, 'text', 99, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:52:12', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('96083a87-d21b-4b25-98c6-780156d68b08', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'ParentName', '父节点名称', 'varchar', 'string', 'ParentName', 0, 0, 0, 1, 0, 1, 0, '', '', NULL, '', 0, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:50:16', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('9864568d-9816-47e6-ae35-992a3b10bae2', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'ReturnBoxNum', '销退箱数', 'decimal', 'decimal', 'ReturnBoxNum', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, 'number', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:44:24', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); @@ -160,6 +181,8 @@ INSERT INTO `buildertablecolumn` VALUES ('a32c75ea-4095-458a-97b6-815db63d951e', INSERT INTO `buildertablecolumn` VALUES ('a33882d0-89f1-4d21-b740-051b1742e33c', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'QualityFlg', '品质', 'varchar', 'string', 'QualityFlg', 0, 0, 1, 1, 1, 1, 0, '', '', 'SYS_GOODSTYPE', 'select', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:51:39', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('a5f9c89e-474f-4047-9e18-a8a31050a952', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'SupplierId', '供应商编号', 'varchar', 'string', 'SupplierId', 0, 0, 0, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 01:13:11', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('a6e98eac-afd5-4465-9b60-206cfdeab9e1', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'CreateUserId', '创建人ID', 'varchar', 'string', 'CreateUserId', 0, 0, 1, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 01:09:56', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); +INSERT INTO `buildertablecolumn` VALUES ('a76d32c3-312e-41ba-af71-bee893648a56', '1751d517-6d2b-4638-8f5c-aa6355bccb0e', 'Category', 'UpdateUserName', '最后更新人', 'varchar', 'string', 'UpdateUserName', 0, 0, 0, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-09-27 00:26:55', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:40:33', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 200); +INSERT INTO `buildertablecolumn` VALUES ('a79e8649-e2d9-4b51-a169-8c7f20472498', '1751d517-6d2b-4638-8f5c-aa6355bccb0e', 'Category', 'Name', '分类名称或描述', 'varchar', 'string', 'Name', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, '', 85, '2021-09-27 00:26:55', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:42:46', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 255); INSERT INTO `buildertablecolumn` VALUES ('a8249275-9be3-4a92-ae3e-fa135233ef76', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'InNum', '到货数量', 'decimal', 'decimal', 'InNum', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, '', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-11 22:54:21', '', NULL, NULL, '', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('acbae3d8-fb55-404b-8680-53cb02b02927', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'UpdateUserName', '最后更新人', 'varchar', 'string', 'UpdateUserName', 0, 0, 0, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-29 00:56:36', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 200); INSERT INTO `buildertablecolumn` VALUES ('b0898ec0-ff90-46a6-9129-bd67aad6a547', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'CreateTime', '创建时间', 'datetime', 'DateTime', 'CreateTime', 0, 0, 1, 1, 0, 1, 0, '', '', NULL, 'datetime', 0, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-29 00:28:32', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); @@ -170,17 +193,26 @@ INSERT INTO `buildertablecolumn` VALUES ('b98e4da3-32c0-48bd-b09a-e56b4521504d', INSERT INTO `buildertablecolumn` VALUES ('bcf8079e-f046-4fba-b98f-3f840c59edd3', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'CreateUserName', '创建人', 'varchar', 'string', 'CreateUserName', 0, 0, 0, 0, 0, 1, 0, '', '', NULL, '', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:51:58', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 200); INSERT INTO `buildertablecolumn` VALUES ('bd084fcd-b00b-41b1-85c4-ea856eda4bc1', '03761b53-e229-4e0e-b7b1-2831bdc84384', 'Stock', 'Id', '数据ID', 'varchar', 'string', 'Id', 1, 0, 1, 1, 0, 0, 0, '', '', NULL, '', 50, '2020-09-29 00:52:58', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:31:36', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('c084f056-fd43-4b47-8fea-d668d2aef488', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'PurchaseNo', '采购单号', 'varchar', 'string', 'PurchaseNo', 0, 0, 0, 1, 1, 1, 0, '', '', NULL, 'text', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:45:39', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 30); +INSERT INTO `buildertablecolumn` VALUES ('c7366b20-7fcf-4784-8a7f-57695c2745c0', '1751d517-6d2b-4638-8f5c-aa6355bccb0e', 'Category', 'Id', 'Id', 'varchar', 'string', 'Id', 1, 0, 1, 1, 1, 0, 0, '', '', NULL, '', 0, '2021-09-27 00:26:55', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:40:19', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); +INSERT INTO `buildertablecolumn` VALUES ('c7b30d11-9a00-48ba-86ff-68e4b78fd8c2', '1751d517-6d2b-4638-8f5c-aa6355bccb0e', 'Category', 'TypeId', '分类ID', 'varchar', 'string', 'TypeId', 0, 0, 0, 1, 1, 1, 0, '', '', NULL, 'text', 80, '2021-09-27 00:26:55', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:42:59', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); +INSERT INTO `buildertablecolumn` VALUES ('c7e16730-9af0-4290-9c4f-e37bb3a22aef', '1751d517-6d2b-4638-8f5c-aa6355bccb0e', 'Category', 'CreateUserId', '创建人ID', 'varchar', 'string', 'CreateUserId', 0, 0, 1, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-09-27 00:26:55', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:38:37', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('cac9af55-805e-4af8-8936-8a2ef0f886f5', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'InBondedArea', '是否保税', 'tinyint', 'bool', 'InBondedArea', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, 'switch', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:45:12', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('d2366b5d-992f-4f68-b08d-ebd01962c55c', '03761b53-e229-4e0e-b7b1-2831bdc84384', 'Stock', 'User', '操作人', 'varchar', 'string', 'User', 0, 0, 1, 1, 0, 1, 0, '', '', NULL, '', 3, '2020-09-29 00:52:58', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:30:22', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('d73b377d-c6a3-4f74-b608-0e0223dbbd0a', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'CreateUserId', '创建人ID', 'varchar', 'string', 'CreateUserId', 0, 0, 1, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-29 00:28:40', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); INSERT INTO `buildertablecolumn` VALUES ('d8913d5b-c62f-4cb5-aedc-60b652a41427', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'UpdateUserName', '最后更新人', 'varchar', 'string', 'UpdateUserName', 0, 0, 0, 1, 0, 1, 0, '', '', NULL, '', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 01:49:50', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 200); INSERT INTO `buildertablecolumn` VALUES ('dfbb6dd4-d03a-452a-8f9e-b6747b585819', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'ExternalNo', '相关单据号', 'varchar', 'string', 'ExternalNo', 0, 0, 0, 0, 0, 0, 0, '', '', NULL, 'text', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:46:16', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); +INSERT INTO `buildertablecolumn` VALUES ('e075aeb7-82ba-4858-9551-d11ee7f61156', '1751d517-6d2b-4638-8f5c-aa6355bccb0e', 'Category', 'UpdateUserId', '最后更新人ID', 'varchar', 'string', 'UpdateUserId', 0, 0, 0, 1, 0, 0, 0, '', '', NULL, '', 0, '2021-09-27 00:26:55', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:38:22', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); +INSERT INTO `buildertablecolumn` VALUES ('e7f071ca-2ba0-4a89-a988-424d1e9b0b8b', 'fc52b31a-fc29-42b6-b53c-99463644fff2', 'dataprivilegerule', 'Enable', '是否可用', 'tinyint', 'bool', 'Enable', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, 'switch', 0, '2021-09-23 22:35:02', '00000000-0000-0000-0000-000000000000', '2021-09-23 22:38:54', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('ea35d6b5-aa14-495f-ba36-d51eb73125ac', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'ExpireDate', '失效日期', 'varchar', 'string', 'ExpireDate', 0, 0, 0, 1, 1, 1, 0, '', '', NULL, '', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-11 22:54:21', '', NULL, NULL, '', '超级管理员', 30); INSERT INTO `buildertablecolumn` VALUES ('ec8aac16-7f9c-4b19-977c-aecede234910', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'Status', '入库通知单状态', 'int', 'int', 'Status', 0, 0, 0, 0, 0, 0, 0, '', '', 'COMMON_STATUS', 'select', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 01:14:30', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('ecab3cf5-312c-46a9-aa82-87c34396ea90', '7f0ca2fd-7fa0-4316-a466-22733d466dd2', 'wmsinboundordertbl', 'StockId', '仓库编号', 'varchar', 'string', 'StockId', 0, 0, 0, 0, 0, 0, 0, '', '', NULL, '', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 01:14:39', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 12); INSERT INTO `buildertablecolumn` VALUES ('ee53d454-c8f9-48d3-9bc1-b4a1fdf6c390', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'InStockStatus', '是否收货中', 'tinyint', 'bool', 'InStockStatus', 0, 0, 1, 1, 1, 1, 0, '', 'switch', NULL, 'switch', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:48:30', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); INSERT INTO `buildertablecolumn` VALUES ('f8392fe0-0591-4ca7-8ebe-c8f69a8a30f0', 'f07df6d0-eb47-4f00-9167-79d88bcace36', 'wmsinboundorderdtbl', 'ProdDate', '生产日期', 'varchar', 'string', 'ProdDate', 0, 0, 0, 1, 1, 1, 0, '', '', NULL, 'datetime', 0, '2021-08-11 22:54:21', '00000000-0000-0000-0000-000000000000', '2021-08-23 02:49:17', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 30); INSERT INTO `buildertablecolumn` VALUES ('f8d7f45a-8754-46a1-8ce4-9a8992801f68', 'de4a5527-0d8c-4493-b668-39fc9c555df1', 'Resource', 'ParentId', '父节点ID', 'varchar', 'string', 'ParentId', 0, 0, 0, 1, 1, 0, 0, '', '', '/Resources/Load', 'selectDynamic', 0, '2021-08-29 00:27:29', '00000000-0000-0000-0000-000000000000', '2021-08-30 00:51:13', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); +INSERT INTO `buildertablecolumn` VALUES ('fc13f50a-51ec-4bfc-82b6-ad1f4c71c297', '1751d517-6d2b-4638-8f5c-aa6355bccb0e', 'Category', 'Enable', '是否可用', 'tinyint', 'bool', 'Enable', 0, 0, 1, 1, 1, 1, 0, '', '', NULL, 'switch', 90, '2021-09-27 00:26:55', '00000000-0000-0000-0000-000000000000', '2021-09-27 00:42:13', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', NULL); +INSERT INTO `buildertablecolumn` VALUES ('fd03c732-f369-4b79-a1be-dc16ee053cb4', 'fc52b31a-fc29-42b6-b53c-99463644fff2', 'dataprivilegerule', 'Id', '数据ID', 'varchar', 'string', 'Id', 1, 0, 1, 1, 1, 0, 0, '', '', NULL, '', 0, '2021-09-23 22:35:02', '00000000-0000-0000-0000-000000000000', '2021-09-23 22:39:05', '00000000-0000-0000-0000-000000000000', NULL, NULL, '超级管理员', '超级管理员', 50); + + -- ---------------------------- -- Table structure for category diff --git a/sql server 初始化脚本/Sql Server脚本.sql b/sql server 初始化脚本/Sql Server脚本.sql index 28804b06..a8a284f9 100644 --- a/sql server 初始化脚本/Sql Server脚本.sql +++ b/sql server 初始化脚本/Sql Server脚本.sql @@ -294,7 +294,10 @@ GO INSERT INTO [dbo].[BuilderTable] ([Id], [TableName], [Comment], [DetailTableName], [DetailComment], [ClassName], [Namespace], [ModuleCode], [ModuleName], [Folder], [Options], [TypeId], [TypeName], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [UpdateUserName], [CreateUserName], [ForeignKey], [IsDynamicHeader], [ParentTableId]) VALUES (N'03761b53-e229-4e0e-b7b1-2831bdc84384', N'Stock', N'请在自己的电脑测试,服务器是看不出效果的', N'', N'', N'Stock', N'OpenAuth.Repository.Domain', N'StockApp', N'仓储', N'D:/OpenAuth.Pro/Client', N'', N'', N'', N'2020-09-29 00:52:58', N'00000000-0000-0000-0000-000000000000', N'2021-08-30 00:32:09', N'00000000-0000-0000-0000-000000000000', N'超级管理员', N'超级管理员', N'', N'1', NULL) GO -INSERT INTO [dbo].[BuilderTable] ([Id], [TableName], [Comment], [DetailTableName], [DetailComment], [ClassName], [Namespace], [ModuleCode], [ModuleName], [Folder], [Options], [TypeId], [TypeName], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [UpdateUserName], [CreateUserName], [ForeignKey], [IsDynamicHeader], [ParentTableId]) VALUES (N'7f0ca2fd-7fa0-4316-a466-22733d466dd2', N'wmsinboundordertbl', N'入库订单头表', N'', N'', N'wmsinboundordertbl', N'OpenAuth.Repository.Domain', N'WmsInApp', N'入库模块', N'D:/OpenAuth.Pro/Client', N'', N'', N'', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 01:17:34', N'00000000-0000-0000-0000-000000000000', N'超级管理员', N'超级管理员', N'', N'0', NULL) +INSERT INTO [dbo].[BuilderTable] ([Id], [TableName], [Comment], [DetailTableName], [DetailComment], [ClassName], [Namespace], [ModuleCode], [ModuleName], [Folder], [Options], [TypeId], [TypeName], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [UpdateUserName], [CreateUserName], [ForeignKey], [IsDynamicHeader], [ParentTableId]) VALUES (N'1751d517-6d2b-4638-8f5c-aa6355bccb0e', N'Category', N'', N'', N'', N'Category', N'OpenAuth.Repository.Domain', N'CategoryApp', N'分类管理', N'D:/OpenAuth.Pro/Client', N'', N'', N'', N'2021-09-27 00:26:54', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:45:56', N'00000000-0000-0000-0000-000000000000', N'超级管理员', N'超级管理员', N'', N'1', NULL) +GO + +INSERT INTO [dbo].[BuilderTable] ([Id], [TableName], [Comment], [DetailTableName], [DetailComment], [ClassName], [Namespace], [ModuleCode], [ModuleName], [Folder], [Options], [TypeId], [TypeName], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [UpdateUserName], [CreateUserName], [ForeignKey], [IsDynamicHeader], [ParentTableId]) VALUES (N'7f0ca2fd-7fa0-4316-a466-22733d466dd2', N'wmsinboundordertbl', N'入库订单头表', N'', N'', N'wmsinboundordertbl', N'OpenAuth.Repository.Domain', N'WmsInApp', N'入库模块', N'D:/OpenAuth.Pro/Client', N'', N'', N'', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:48:54', N'00000000-0000-0000-0000-000000000000', N'超级管理员', N'超级管理员', N'', N'1', NULL) GO INSERT INTO [dbo].[BuilderTable] ([Id], [TableName], [Comment], [DetailTableName], [DetailComment], [ClassName], [Namespace], [ModuleCode], [ModuleName], [Folder], [Options], [TypeId], [TypeName], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [UpdateUserName], [CreateUserName], [ForeignKey], [IsDynamicHeader], [ParentTableId]) VALUES (N'de4a5527-0d8c-4493-b668-39fc9c555df1', N'Resource', N'', N'', N'', N'Resource', N'OpenAuth.Repository.Domain', N'ResourceApp', N'资源管理', N'D:/OpenAuth.Pro/Client', N'', N'', N'', N'2021-08-29 00:27:29', N'00000000-0000-0000-0000-000000000000', N'2021-08-30 00:50:17', N'00000000-0000-0000-0000-000000000000', N'超级管理员', N'超级管理员', N'', N'1', NULL) @@ -303,6 +306,9 @@ GO INSERT INTO [dbo].[BuilderTable] ([Id], [TableName], [Comment], [DetailTableName], [DetailComment], [ClassName], [Namespace], [ModuleCode], [ModuleName], [Folder], [Options], [TypeId], [TypeName], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [UpdateUserName], [CreateUserName], [ForeignKey], [IsDynamicHeader], [ParentTableId]) VALUES (N'f07df6d0-eb47-4f00-9167-79d88bcace36', N'wmsinboundorderdtbl', N'', N'', N'', N'wmsinboundorderdtbl', N'OpenAuth.Repository.Domain', N'wmsinboundorderdtbl', N'入库订单模块子表', N'D:/OpenAuth.Pro/Client', N'', N'', N'', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 01:09:27', N'00000000-0000-0000-0000-000000000000', N'超级管理员', N'超级管理员', N'OrderId', N'1', N'7f0ca2fd-7fa0-4316-a466-22733d466dd2') GO +INSERT INTO [dbo].[BuilderTable] ([Id], [TableName], [Comment], [DetailTableName], [DetailComment], [ClassName], [Namespace], [ModuleCode], [ModuleName], [Folder], [Options], [TypeId], [TypeName], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [UpdateUserName], [CreateUserName], [ForeignKey], [IsDynamicHeader], [ParentTableId]) VALUES (N'fc52b31a-fc29-42b6-b53c-99463644fff2', N'dataprivilegerule', N'', N'', N'', N'DataPrivilegeRule', N'OpenAuth.Repository.Domain', N'DataPrivilegeRuleApp', N'数据权限', N'D:/OpenAuth.Pro/Client', N'', N'', N'', N'2021-09-23 22:35:02', N'00000000-0000-0000-0000-000000000000', N'2021-09-26 00:28:20', N'00000000-0000-0000-0000-000000000000', N'超级管理员', N'超级管理员', N'', N'1', NULL) +GO + -- ---------------------------- -- Table structure for BuilderTableColumn @@ -578,6 +584,12 @@ GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'11997d76-06da-480f-9505-d7b6ed824d30', N'7f0ca2fd-7fa0-4316-a466-22733d466dd2', N'wmsinboundordertbl', N'OrgId', N'所属部门', N'varchar', N'string', N'OrgId', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'', N'', N'', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 01:50:35', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'15797df5-1392-4eff-8c2f-e142eed7a9f9', N'fc52b31a-fc29-42b6-b53c-99463644fff2', N'dataprivilegerule', N'CreateTime', N'创建时间', N'datetime', N'DateTime', N'CreateTime', N'0', N'0', N'1', N'1', N'0', N'1', N'0', N'', N'', N'', N'0', N'2021-09-23 22:35:02', N'00000000-0000-0000-0000-000000000000', N'2021-09-23 22:39:53', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) +GO + +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'165bb5dd-634d-470a-850c-8483bf967d0b', N'1751d517-6d2b-4638-8f5c-aa6355bccb0e', N'Category', N'UpdateTime', N'最后更新时间', N'datetime', N'DateTime', N'UpdateTime', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'', N'', N'', N'0', N'2021-09-27 00:26:55', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:40:31', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'17cf3076-9b38-4ac8-a05a-07b1f5b4a309', N'f07df6d0-eb47-4f00-9167-79d88bcace36', N'wmsinboundorderdtbl', N'Remark', N'备注', N'varchar', N'string', N'Remark', N'0', N'0', N'0', N'1', N'1', N'1', N'0', N'', N'', N'textarea', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 02:49:42', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'128', NULL) GO @@ -587,6 +599,12 @@ GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'2105d04e-8c65-4a21-9701-76f64ac119d3', N'f07df6d0-eb47-4f00-9167-79d88bcace36', N'wmsinboundorderdtbl', N'OrderId', N'入库单号', N'varchar', N'string', N'OrderId', N'1', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 03:06:40', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'24d51a8f-7102-41f1-8d39-c8e9e6d72a53', N'fc52b31a-fc29-42b6-b53c-99463644fff2', N'dataprivilegerule', N'SortNo', N'排序号', N'int', N'int', N'SortNo', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'number', N'0', N'2021-09-23 22:35:02', N'00000000-0000-0000-0000-000000000000', N'2021-09-23 22:39:19', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) +GO + +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'27178bae-387a-4e16-84c4-3fb9d5927afb', N'1751d517-6d2b-4638-8f5c-aa6355bccb0e', N'Category', N'CreateTime', N'创建时间', N'datetime', N'DateTime', N'CreateTime', N'0', N'0', N'1', N'1', N'0', N'1', N'0', N'', N'', N'', N'0', N'2021-09-27 00:26:55', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:42:27', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'28bd8b85-b62a-4fa3-a50d-a78b015897be', N'f07df6d0-eb47-4f00-9167-79d88bcace36', N'wmsinboundorderdtbl', N'OwnerId', N'货主编号', N'varchar', N'string', N'OwnerId', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-11 22:54:21', N'', NULL, NULL, N'', N'超级管理员', N'32', NULL) GO @@ -596,6 +614,9 @@ GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'2bed33d9-c8bf-46ea-8a35-99a6b079da66', N'f07df6d0-eb47-4f00-9167-79d88bcace36', N'wmsinboundorderdtbl', N'UpdateTime', N'更新时间', N'datetime', N'DateTime', N'UpdateTime', N'0', N'0', N'0', N'0', N'0', N'1', N'0', N'', N'', N'datetime', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 03:06:47', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'32b5b4e9-44a7-410a-80d9-1200ffe048d5', N'fc52b31a-fc29-42b6-b53c-99463644fff2', N'dataprivilegerule', N'UpdateUserId', N'最后更新人ID', N'varchar', N'string', N'UpdateUserId', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'', N'', N'', N'0', N'2021-09-23 22:35:02', N'00000000-0000-0000-0000-000000000000', N'2021-09-23 22:39:38', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'33a8a1bd-ea81-4942-9469-4f20a037bf94', N'de4a5527-0d8c-4493-b668-39fc9c555df1', N'Resource', N'AppName', N'应用名称', N'varchar', N'string', N'AppName', N'0', N'0', N'0', N'1', N'1', N'1', N'0', N'', N'', N'', N'90', N'2021-08-29 00:27:29', N'00000000-0000-0000-0000-000000000000', N'2021-08-30 00:51:44', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) GO @@ -605,6 +626,9 @@ GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'37219218-c8a1-40a8-be28-77d423a019b7', N'de4a5527-0d8c-4493-b668-39fc9c555df1', N'Resource', N'AppId', N'应用ID', N'varchar', N'string', N'AppId', N'0', N'0', N'0', N'1', N'1', N'0', N'0', N'', N'', N'select', N'0', N'2021-08-29 00:27:29', N'00000000-0000-0000-0000-000000000000', N'2021-08-30 00:51:49', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', N'PLATFORM') GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'3a5ed37f-4dca-420f-8a62-8465650dc1a3', N'fc52b31a-fc29-42b6-b53c-99463644fff2', N'dataprivilegerule', N'UpdateTime', N'最后更新时间', N'datetime', N'DateTime', N'UpdateTime', N'0', N'0', N'0', N'1', N'0', N'1', N'0', N'', N'', N'', N'0', N'2021-09-23 22:35:02', N'00000000-0000-0000-0000-000000000000', N'2021-09-23 22:39:33', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'3b96bd7f-38a6-4188-9205-5f6340e29548', N'7f0ca2fd-7fa0-4316-a466-22733d466dd2', N'wmsinboundordertbl', N'UpdateTime', N'最后更新时间', N'datetime', N'DateTime', N'UpdateTime', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'', N'', N'', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 01:52:29', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) GO @@ -617,6 +641,9 @@ GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'430a695a-7975-4c63-bf57-13c9614d086d', N'f07df6d0-eb47-4f00-9167-79d88bcace36', N'wmsinboundorderdtbl', N'TaxRate', N'税率', N'decimal', N'decimal', N'TaxRate', N'0', N'0', N'0', N'1', N'1', N'1', N'0', N'', N'', N'decimal', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 02:49:47', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'450ff804-a22e-4676-83e8-474a2d32cc75', N'1751d517-6d2b-4638-8f5c-aa6355bccb0e', N'Category', N'CreateUserName', N'创建人', N'varchar', N'string', N'CreateUserName', N'0', N'0', N'1', N'1', N'0', N'1', N'0', N'', N'', N'', N'0', N'2021-09-27 00:26:55', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:42:32', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'200', NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'4922ec7f-8730-4c48-913b-a1c110c1e8c4', N'7f0ca2fd-7fa0-4316-a466-22733d466dd2', N'wmsinboundordertbl', N'ScheduledInboundTime', N'预定入库时间', N'datetime', N'DateTime', N'ScheduledInboundTime', N'0', N'0', N'0', N'1', N'1', N'0', N'0', N'', N'', N'date', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 01:51:12', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) GO @@ -626,6 +653,9 @@ GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'4c44c915-d771-44b5-8030-f1c242425c7d', N'f07df6d0-eb47-4f00-9167-79d88bcace36', N'wmsinboundorderdtbl', N'Id', N'入库通知单明细号', N'varchar', N'string', N'Id', N'1', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'text', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 02:48:11', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'4d6d87f3-b597-4dda-8f1f-a0d3d66a25e7', N'1751d517-6d2b-4638-8f5c-aa6355bccb0e', N'Category', N'DtValue', N'分类值', N'varchar', N'string', N'DtValue', N'0', N'0', N'0', N'1', N'1', N'1', N'0', N'', N'', N'textarea', N'95', N'2021-09-27 00:26:55', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:42:07', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'4ddd9669-84c6-4fd4-ae2b-fc72eb2aecf7', N'de4a5527-0d8c-4493-b668-39fc9c555df1', N'Resource', N'Description', N'描述', N'varchar', N'string', N'Description', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'', N'85', N'2021-08-29 00:27:29', N'00000000-0000-0000-0000-000000000000', N'2021-08-29 00:59:28', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'500', NULL) GO @@ -635,6 +665,12 @@ GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'50cf4640-ef20-4122-b21e-c4a6562813f3', N'de4a5527-0d8c-4493-b668-39fc9c555df1', N'Resource', N'SortNo', N'排序号', N'int', N'int', N'SortNo', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'text', N'0', N'2021-08-29 00:27:29', N'00000000-0000-0000-0000-000000000000', N'2021-08-29 00:31:48', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'51f693cc-33c9-47e0-8080-81118a1d6924', N'fc52b31a-fc29-42b6-b53c-99463644fff2', N'dataprivilegerule', N'UpdateUserName', N'最后更新人', N'varchar', N'string', N'UpdateUserName', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'', N'', N'', N'0', N'2021-09-23 22:35:02', N'00000000-0000-0000-0000-000000000000', N'2021-09-23 22:40:06', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'200', NULL) +GO + +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'53b76400-51d6-4f38-8142-7a855e9f872a', N'1751d517-6d2b-4638-8f5c-aa6355bccb0e', N'Category', N'DtCode', N'分类标识', N'varchar', N'string', N'DtCode', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'', N'99', N'2021-09-27 00:26:55', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:42:00', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'54954a8b-b34b-41c3-a2bf-46cf5c3f1afa', N'de4a5527-0d8c-4493-b668-39fc9c555df1', N'Resource', N'UpdateTime', N'更新时间', N'datetime', N'DateTime', N'UpdateTime', N'0', N'0', N'0', N'1', N'0', N'1', N'0', N'', N'', N'', N'0', N'2021-08-29 00:27:29', N'00000000-0000-0000-0000-000000000000', N'2021-08-30 00:51:24', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) GO @@ -644,6 +680,9 @@ GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'5d372a7e-09f8-480c-9f05-0b28d24b713b', N'7f0ca2fd-7fa0-4316-a466-22733d466dd2', N'wmsinboundordertbl', N'ShipperId', N'承运人编号', N'varchar', N'string', N'ShipperId', N'0', N'0', N'0', N'1', N'1', N'1', N'0', N'', N'', N'text', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 02:45:44', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'5d6c8d4f-b127-4959-a34c-5e641a9d89ed', N'1751d517-6d2b-4638-8f5c-aa6355bccb0e', N'Category', N'SortNo', N'排序号', N'int', N'int', N'SortNo', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'number', N'70', N'2021-09-27 00:26:55', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:42:51', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'6383b218-2658-4981-9f62-4690f398c1f2', N'f07df6d0-eb47-4f00-9167-79d88bcace36', N'wmsinboundorderdtbl', N'Price', N'含税单价', N'decimal', N'decimal', N'Price', N'0', N'0', N'0', N'1', N'1', N'1', N'0', N'', N'', N'decimal', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 02:49:05', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) GO @@ -656,12 +695,18 @@ GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'6bd63965-6353-47f8-bf46-eaa507457669', N'7f0ca2fd-7fa0-4316-a466-22733d466dd2', N'wmsinboundordertbl', N'OrderType', N'入库类型', N'varchar', N'string', N'OrderType', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'select', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 02:45:23', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', N'SYS_INBOUNDTYPE') GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'6cb07125-18fd-4268-adcc-e23ca1144ba5', N'fc52b31a-fc29-42b6-b53c-99463644fff2', N'dataprivilegerule', N'PrivilegeRules', N'权限规则', N'varchar', N'string', N'PrivilegeRules', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'', N'0', N'2021-09-23 22:35:02', N'00000000-0000-0000-0000-000000000000', N'2021-09-23 22:35:02', N'', NULL, NULL, N'', N'超级管理员', N'1000', NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'6e6c331c-31ff-40cf-bddc-f331f936c982', N'de4a5527-0d8c-4493-b668-39fc9c555df1', N'Resource', N'Name', N'名称', N'varchar', N'string', N'Name', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'', N'95', N'2021-08-29 00:27:29', N'00000000-0000-0000-0000-000000000000', N'2021-08-29 00:58:42', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'255', NULL) GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'6ec4c6b1-7a5f-4000-bf69-a2511b0febb2', N'7f0ca2fd-7fa0-4316-a466-22733d466dd2', N'wmsinboundordertbl', N'ExternalType', N'相关单据类型', N'varchar', N'string', N'ExternalType', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'', N'select', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 01:13:21', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', N'SYS_ORDERTYPE') GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'6f59479c-9795-4df2-bd33-8f659f6b659d', N'fc52b31a-fc29-42b6-b53c-99463644fff2', N'dataprivilegerule', N'CreateUserId', N'创建人ID', N'varchar', N'string', N'CreateUserId', N'0', N'0', N'1', N'1', N'0', N'0', N'0', N'', N'', N'', N'0', N'2021-09-23 22:35:02', N'00000000-0000-0000-0000-000000000000', N'2021-09-23 22:38:44', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'7000e82f-da5d-4d5e-ac4b-eda825ae40c7', N'7f0ca2fd-7fa0-4316-a466-22733d466dd2', N'wmsinboundordertbl', N'GoodsType', N'商品类别', N'varchar', N'string', N'GoodsType', N'0', N'0', N'0', N'1', N'1', N'1', N'0', N'', N'', N'select', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 01:10:28', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', N'SYS_GOODSTYPE') GO @@ -671,21 +716,36 @@ GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'7bc33f75-16dc-49b7-822d-32be5aae904b', N'f07df6d0-eb47-4f00-9167-79d88bcace36', N'wmsinboundorderdtbl', N'OrderNum', N'通知数量', N'decimal', N'decimal', N'OrderNum', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'number', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 02:48:58', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'7edebf71-aa41-4bac-bff3-eaa3c3159b40', N'fc52b31a-fc29-42b6-b53c-99463644fff2', N'dataprivilegerule', N'SourceCode', N'资源标识(模块编号)', N'varchar', N'string', N'SourceCode', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'', N'0', N'2021-09-23 22:35:02', N'00000000-0000-0000-0000-000000000000', N'2021-09-23 22:35:02', N'', NULL, NULL, N'', N'超级管理员', N'50', NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'85ebb3a8-1a19-44f8-9706-acac1c8bdc44', N'f07df6d0-eb47-4f00-9167-79d88bcace36', N'wmsinboundorderdtbl', N'AsnStatus', N'到货状况', N'int', N'int', N'AsnStatus', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'select', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 02:47:30', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, N'SYS_STATUS') GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'861ca9ab-e81e-4fa8-8b56-375127a8cb59', N'f07df6d0-eb47-4f00-9167-79d88bcace36', N'wmsinboundorderdtbl', N'LeaveNum', N'剩余数量', N'decimal', N'decimal', N'LeaveNum', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'number', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 02:48:44', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'87d68d3a-22b1-475c-a20a-d39724ca7639', N'fc52b31a-fc29-42b6-b53c-99463644fff2', N'dataprivilegerule', N'CreateUserName', N'创建人', N'varchar', N'string', N'CreateUserName', N'0', N'0', N'1', N'1', N'0', N'0', N'0', N'', N'', N'', N'0', N'2021-09-23 22:35:02', N'00000000-0000-0000-0000-000000000000', N'2021-09-23 22:38:48', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'200', NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'8a43f4d1-73a7-408d-b3cc-02be321b8ef9', N'7f0ca2fd-7fa0-4316-a466-22733d466dd2', N'wmsinboundordertbl', N'OwnerId', N'货主编号', N'varchar', N'string', N'OwnerId', N'0', N'0', N'0', N'1', N'1', N'1', N'0', N'', N'', N'text', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 02:45:33', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'8c0836e9-6da1-4510-a59b-ccc94f4c2c14', N'f07df6d0-eb47-4f00-9167-79d88bcace36', N'wmsinboundorderdtbl', N'GoodsId', N'商品编号', N'varchar', N'string', N'GoodsId', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-11 22:54:21', N'', NULL, NULL, N'', N'超级管理员', N'50', NULL) GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'8d0326c3-fcbc-4b37-8c8b-20421daf6b34', N'fc52b31a-fc29-42b6-b53c-99463644fff2', N'dataprivilegerule', N'Description', N'权限描述', N'varchar', N'string', N'Description', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'', N'0', N'2021-09-23 22:35:02', N'00000000-0000-0000-0000-000000000000', N'2021-09-23 22:35:02', N'', NULL, NULL, N'', N'超级管理员', N'255', NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'8effdc32-477a-44a4-a0e6-3e58c5631307', N'03761b53-e229-4e0e-b7b1-2831bdc84384', N'Stock', N'Price', N'产品单价', N'decimal', N'decimal', N'Price', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'text', N'10', N'2020-09-29 00:52:58', N'00000000-0000-0000-0000-000000000000', N'2021-08-30 00:31:44', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'8f161c08-1880-4b9f-95d6-88abb78a573b', N'fc52b31a-fc29-42b6-b53c-99463644fff2', N'dataprivilegerule', N'SubSourceCode', N'二级资源标识', N'varchar', N'string', N'SubSourceCode', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'', N'', N'', N'0', N'2021-09-23 22:35:02', N'00000000-0000-0000-0000-000000000000', N'2021-09-26 00:28:18', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) +GO + +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'94d03bc7-832c-4dbe-9df1-84e8ec6f1707', N'1751d517-6d2b-4638-8f5c-aa6355bccb0e', N'Category', N'Description', N'描述', N'varchar', N'string', N'Description', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'', N'', N'', N'55', N'2021-09-27 00:26:55', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:45:53', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'500', NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'95b6e356-3687-4001-9ffb-1271c3baf31e', N'de4a5527-0d8c-4493-b668-39fc9c555df1', N'Resource', N'Id', N'标识', N'varchar', N'string', N'Id', N'1', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'text', N'99', N'2021-08-29 00:27:29', N'00000000-0000-0000-0000-000000000000', N'2021-08-30 00:52:12', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) GO @@ -722,6 +782,12 @@ GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'a6e98eac-afd5-4465-9b60-206cfdeab9e1', N'7f0ca2fd-7fa0-4316-a466-22733d466dd2', N'wmsinboundordertbl', N'CreateUserId', N'创建人ID', N'varchar', N'string', N'CreateUserId', N'0', N'0', N'1', N'1', N'0', N'0', N'0', N'', N'', N'', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 01:09:56', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'a76d32c3-312e-41ba-af71-bee893648a56', N'1751d517-6d2b-4638-8f5c-aa6355bccb0e', N'Category', N'UpdateUserName', N'最后更新人', N'varchar', N'string', N'UpdateUserName', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'', N'', N'', N'0', N'2021-09-27 00:26:55', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:40:33', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'200', NULL) +GO + +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'a79e8649-e2d9-4b51-a169-8c7f20472498', N'1751d517-6d2b-4638-8f5c-aa6355bccb0e', N'Category', N'Name', N'分类名称或描述', N'varchar', N'string', N'Name', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'', N'85', N'2021-09-27 00:26:55', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:42:46', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'255', NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'a8249275-9be3-4a92-ae3e-fa135233ef76', N'f07df6d0-eb47-4f00-9167-79d88bcace36', N'wmsinboundorderdtbl', N'InNum', N'到货数量', N'decimal', N'decimal', N'InNum', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-11 22:54:21', N'', NULL, NULL, N'', N'超级管理员', NULL, NULL) GO @@ -752,6 +818,15 @@ GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'c084f056-fd43-4b47-8fea-d668d2aef488', N'7f0ca2fd-7fa0-4316-a466-22733d466dd2', N'wmsinboundordertbl', N'PurchaseNo', N'采购单号', N'varchar', N'string', N'PurchaseNo', N'0', N'0', N'0', N'1', N'1', N'1', N'0', N'', N'', N'text', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 02:45:39', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'30', NULL) GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'c7366b20-7fcf-4784-8a7f-57695c2745c0', N'1751d517-6d2b-4638-8f5c-aa6355bccb0e', N'Category', N'Id', N'Id', N'varchar', N'string', N'Id', N'1', N'0', N'1', N'1', N'1', N'0', N'0', N'', N'', N'', N'0', N'2021-09-27 00:26:55', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:40:19', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) +GO + +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'c7b30d11-9a00-48ba-86ff-68e4b78fd8c2', N'1751d517-6d2b-4638-8f5c-aa6355bccb0e', N'Category', N'TypeId', N'分类ID', N'varchar', N'string', N'TypeId', N'0', N'0', N'0', N'1', N'1', N'1', N'0', N'', N'', N'text', N'80', N'2021-09-27 00:26:55', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:42:59', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) +GO + +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'c7e16730-9af0-4290-9c4f-e37bb3a22aef', N'1751d517-6d2b-4638-8f5c-aa6355bccb0e', N'Category', N'CreateUserId', N'创建人ID', N'varchar', N'string', N'CreateUserId', N'0', N'0', N'1', N'1', N'0', N'0', N'0', N'', N'', N'', N'0', N'2021-09-27 00:26:55', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:38:37', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'cac9af55-805e-4af8-8936-8a2ef0f886f5', N'7f0ca2fd-7fa0-4316-a466-22733d466dd2', N'wmsinboundordertbl', N'InBondedArea', N'是否保税', N'tinyint', N'bool', N'InBondedArea', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'switch', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 02:45:12', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) GO @@ -767,6 +842,12 @@ GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'dfbb6dd4-d03a-452a-8f9e-b6747b585819', N'7f0ca2fd-7fa0-4316-a466-22733d466dd2', N'wmsinboundordertbl', N'ExternalNo', N'相关单据号', N'varchar', N'string', N'ExternalNo', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'', N'text', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-23 02:46:16', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'e075aeb7-82ba-4858-9551-d11ee7f61156', N'1751d517-6d2b-4638-8f5c-aa6355bccb0e', N'Category', N'UpdateUserId', N'最后更新人ID', N'varchar', N'string', N'UpdateUserId', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'', N'', N'', N'0', N'2021-09-27 00:26:55', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:38:22', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) +GO + +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'e7f071ca-2ba0-4a89-a988-424d1e9b0b8b', N'fc52b31a-fc29-42b6-b53c-99463644fff2', N'dataprivilegerule', N'Enable', N'是否可用', N'tinyint', N'bool', N'Enable', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'switch', N'0', N'2021-09-23 22:35:02', N'00000000-0000-0000-0000-000000000000', N'2021-09-23 22:38:54', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) +GO + INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'ea35d6b5-aa14-495f-ba36-d51eb73125ac', N'f07df6d0-eb47-4f00-9167-79d88bcace36', N'wmsinboundorderdtbl', N'ExpireDate', N'失效日期', N'varchar', N'string', N'ExpireDate', N'0', N'0', N'0', N'1', N'1', N'1', N'0', N'', N'', N'', N'0', N'2021-08-11 22:54:21', N'00000000-0000-0000-0000-000000000000', N'2021-08-11 22:54:21', N'', NULL, NULL, N'', N'超级管理员', N'30', NULL) GO @@ -785,6 +866,12 @@ GO INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'f8d7f45a-8754-46a1-8ce4-9a8992801f68', N'de4a5527-0d8c-4493-b668-39fc9c555df1', N'Resource', N'ParentId', N'父节点ID', N'varchar', N'string', N'ParentId', N'0', N'0', N'0', N'1', N'1', N'0', N'0', N'', N'', N'selectDynamic', N'0', N'2021-08-29 00:27:29', N'00000000-0000-0000-0000-000000000000', N'2021-08-30 00:51:13', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', N'/Resources/Load') GO +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'fc13f50a-51ec-4bfc-82b6-ad1f4c71c297', N'1751d517-6d2b-4638-8f5c-aa6355bccb0e', N'Category', N'Enable', N'是否可用', N'tinyint', N'bool', N'Enable', N'0', N'0', N'1', N'1', N'1', N'1', N'0', N'', N'', N'switch', N'90', N'2021-09-27 00:26:55', N'00000000-0000-0000-0000-000000000000', N'2021-09-27 00:42:13', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', NULL, NULL) +GO + +INSERT INTO [dbo].[BuilderTableColumn] ([Id], [TableId], [TableName], [ColumnName], [Comment], [ColumnType], [EntityType], [EntityName], [IsKey], [IsIncrement], [IsRequired], [IsInsert], [IsEdit], [IsList], [IsQuery], [QueryType], [HtmlType], [EditType], [Sort], [CreateTime], [CreateUserId], [UpdateTime], [UpdateUserId], [EditRow], [EditCol], [UpdateUserName], [CreateUserName], [MaxLength], [DataSource]) VALUES (N'fd03c732-f369-4b79-a1be-dc16ee053cb4', N'fc52b31a-fc29-42b6-b53c-99463644fff2', N'dataprivilegerule', N'Id', N'数据ID', N'varchar', N'string', N'Id', N'1', N'0', N'1', N'1', N'1', N'0', N'0', N'', N'', N'', N'0', N'2021-09-23 22:35:02', N'00000000-0000-0000-0000-000000000000', N'2021-09-23 22:39:05', N'00000000-0000-0000-0000-000000000000', NULL, NULL, N'超级管理员', N'超级管理员', N'50', NULL) +GO + -- ---------------------------- -- Table structure for Category