From 25fc8285583bc653389e98c8634168691776e8ac Mon Sep 17 00:00:00 2001 From: zuohuaijun Date: Mon, 1 Sep 2025 16:58:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=8E=E4=BF=AE=E5=A4=8D=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=A7=8D=E5=AD=90=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin.NET.Application/SeedData/SysTenantSeedData.cs | 4 ++-- Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj | 6 +++--- Admin.NET/Admin.NET.Core/Entity/SysTextAbbr.cs | 4 ++-- Admin.NET/Admin.NET.Core/SeedData/SysTenantSeedData.cs | 4 ++-- Admin.NET/Admin.NET.Test/Admin.NET.Test.csproj | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Admin.NET/Admin.NET.Application/SeedData/SysTenantSeedData.cs b/Admin.NET/Admin.NET.Application/SeedData/SysTenantSeedData.cs index a9c7f12a..21586e1f 100644 --- a/Admin.NET/Admin.NET.Application/SeedData/SysTenantSeedData.cs +++ b/Admin.NET/Admin.NET.Application/SeedData/SysTenantSeedData.cs @@ -19,7 +19,7 @@ public class SysTenantSeedData : ISqlSugarEntitySeedData public IEnumerable HasData() { var defaultDbConfig = App.GetOptions().ConnectionConfigs[0]; - var userAdmin = new SysUserSeedData().HasData().ToList().First(u => u.Account == "admin"); + var userAdmin = new SysUserSeedData().HasData().ToList(); return [ @@ -27,7 +27,7 @@ public class SysTenantSeedData : ISqlSugarEntitySeedData { Id=SqlSugarConst.DefaultTenantId, OrgId=SqlSugarConst.DefaultTenantId, - UserId=userAdmin.Id, + UserId=userAdmin[1].Id, Host="gitee.com", TenantType=TenantTypeEnum.Id, DbType=defaultDbConfig.DbType, diff --git a/Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj b/Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj index 3c51c649..05e6a071 100644 --- a/Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj +++ b/Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj @@ -28,9 +28,9 @@ - - - + + + diff --git a/Admin.NET/Admin.NET.Core/Entity/SysTextAbbr.cs b/Admin.NET/Admin.NET.Core/Entity/SysTextAbbr.cs index c690d673..d2ecde49 100644 --- a/Admin.NET/Admin.NET.Core/Entity/SysTextAbbr.cs +++ b/Admin.NET/Admin.NET.Core/Entity/SysTextAbbr.cs @@ -16,8 +16,8 @@ public partial class SysTextAbbr : EntityBaseId /// /// 文字 /// - [SugarColumn(ColumnDescription = "文字", Length = 1)] - [MaxLength(1)] + [SugarColumn(ColumnDescription = "文字", Length = 4)] + [MaxLength(4)] public virtual string Word { get; set; } /// diff --git a/Admin.NET/Admin.NET.Core/SeedData/SysTenantSeedData.cs b/Admin.NET/Admin.NET.Core/SeedData/SysTenantSeedData.cs index 2c4d4032..1de10dbf 100644 --- a/Admin.NET/Admin.NET.Core/SeedData/SysTenantSeedData.cs +++ b/Admin.NET/Admin.NET.Core/SeedData/SysTenantSeedData.cs @@ -19,7 +19,7 @@ public class SysTenantSeedData : ISqlSugarEntitySeedData public IEnumerable HasData() { var defaultDbConfig = App.GetOptions().ConnectionConfigs[0]; - var userAdmin = new SysUserSeedData().HasData().ToList().First(u => u.Account == "admin"); + var userAdmin = new SysUserSeedData().HasData().ToList(); return [ @@ -27,7 +27,7 @@ public class SysTenantSeedData : ISqlSugarEntitySeedData { Id=SqlSugarConst.DefaultTenantId, OrgId=SqlSugarConst.DefaultTenantId, - UserId=userAdmin.Id, + UserId=userAdmin[1].Id, Host="gitee.com", TenantType=TenantTypeEnum.Id, DbType=defaultDbConfig.DbType, diff --git a/Admin.NET/Admin.NET.Test/Admin.NET.Test.csproj b/Admin.NET/Admin.NET.Test/Admin.NET.Test.csproj index 5f707d0d..3f763145 100644 --- a/Admin.NET/Admin.NET.Test/Admin.NET.Test.csproj +++ b/Admin.NET/Admin.NET.Test/Admin.NET.Test.csproj @@ -14,8 +14,8 @@ - - + + compile