Selaa lähdekoodia

Merge branch 'master' of http://123.60.180.165:4647/ZZYDOP/DOPCore

tangdi 3 vuotta sitten
vanhempi
commit
393777b84b
42 muutettua tiedostoa jossa 847 lisäystä ja 606 poistoa
  1. 1 1
      AuthServer/IdentityServer/AuthServer.Host/AuthServerDataSeeder.cs
  2. 2 2
      AuthServer/IdentityServer/AuthServer.Host/Migrations/20230201062326_init.Designer.cs
  3. 1 1
      AuthServer/IdentityServer/AuthServer.Host/Migrations/20230201062326_init.cs
  4. 0 4
      AuthServer/OpenIddict/AuthServer.Host/AuthServer.csproj
  5. 1 1
      AuthServer/OpenIddict/AuthServer.Host/AuthServerDataSeeder.cs
  6. 1 1
      AuthServer/OpenIddict/AuthServer.Host/Migrations/20230201075632_init.Designer.cs
  7. 0 0
      AuthServer/OpenIddict/AuthServer.Host/Migrations/20230201075632_init.cs
  8. 2 2
      AuthServer/OpenIddict/AuthServer.Host/appsettings.json
  9. 0 4
      BaseService/BaseService.Host/BaseService.Host.csproj
  10. 1 1
      BaseService/BaseService.Host/Migrations/20230201070251_init.Designer.cs
  11. 0 0
      BaseService/BaseService.Host/Migrations/20230201070251_init.cs
  12. 37 24
      MicroServices/Business/Business.Application/ResourceExamineManagement/ResourceExamineAppService.cs
  13. 8 0
      MicroServices/Business/Business.Core/MongoDBHelper/IMongoDB.cs
  14. 10 0
      MicroServices/Business/Business.Core/MongoDBHelper/MongoDBTools.cs
  15. 12 19
      MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/BusinessDbContextModelCreatingExtensions.cs
  16. 8 0
      MicroServices/Business/Business.Host/BusinessHostModule.cs
  17. 215 162
      MicroServices/Business/Business.Host/Migrations/20230201075415_init.Designer.cs
  18. 201 98
      MicroServices/Business/Business.Host/Migrations/20230201075415_init.cs
  19. 215 162
      MicroServices/Business/Business.Host/Migrations/BusinessMigrationDbContextModelSnapshot.cs
  20. 6 6
      MicroServices/Business/Bussiness.Model/SIM/sim_base.cs
  21. 6 6
      MicroServices/Business/Bussiness.Model/SIM/sim_issue_type.cs
  22. 6 6
      MicroServices/Business/Bussiness.Model/SIM/sim_plant.cs
  23. 6 6
      MicroServices/Business/Bussiness.Model/SIM/sim_user_relation.cs
  24. 6 6
      MicroServices/Business/Bussiness.Model/SystemData/crm_customer.cs
  25. 6 6
      MicroServices/Business/Bussiness.Model/SystemData/srm_supplier.cs
  26. 10 8
      MicroServices/Business/Bussiness.Model/SystemData/sys_code.cs
  27. 10 8
      MicroServices/Business/Bussiness.Model/SystemData/sys_code_pre.cs
  28. 10 8
      MicroServices/Business/Bussiness.Model/SystemData/sys_config.cs
  29. 10 8
      MicroServices/Business/Bussiness.Model/SystemData/sys_measure_unit.cs
  30. 6 6
      MicroServices/Business/Bussiness.Model/SystemData/sys_post.cs
  31. 6 6
      MicroServices/Business/Bussiness.Model/SystemData/sys_post_staff.cs
  32. 6 6
      MicroServices/Business/Bussiness.Model/SystemData/sys_schedule.cs
  33. 6 6
      MicroServices/Business/Bussiness.Model/SystemData/sys_shift.cs
  34. 7 7
      MicroServices/Business/Bussiness.Model/SystemData/sys_shift_invalid_time.cs
  35. 6 6
      MicroServices/Business/Bussiness.Model/SystemData/sys_shift_schedule.cs
  36. 7 7
      MicroServices/Business/Bussiness.Model/SystemData/sys_staff.cs
  37. 8 7
      MicroServices/Business/Bussiness.Model/SystemData/sys_upload.cs
  38. 1 1
      MicroServices/FileStorage/FileStorage.EntityFrameworkCore/EntityFrameworkCore/FileStorageDbContext.cs
  39. 1 1
      MicroServices/FileStorage/FileStorage.Host/EntityFrameworkCore/FileStorageMigrationDbContextFactory.cs
  40. 1 1
      MicroServices/FileStorage/FileStorage.Host/Migrations/20230201071937_init.Designer.cs
  41. 0 0
      MicroServices/FileStorage/FileStorage.Host/Migrations/20230201071937_init.cs
  42. 1 2
      MicroServices/FileStorage/FileStorage.Host/appsettings.json

+ 1 - 1
AuthServer/IdentityServer/AuthServer.Host/AuthServerDataSeeder.cs

@@ -159,7 +159,7 @@ namespace AuthServer.Host
                 name: "business-app",
                 name: "business-app",
                 scopes: new[] { "InternalGateway", "BaseService" },
                 scopes: new[] { "InternalGateway", "BaseService" },
                 grantTypes: new[] { "client_credentials" },
                 grantTypes: new[] { "client_credentials" },
-                secret: "1q2w3e*".Sha256(),
+                secret: "1q2w3E*".Sha256(),
                 permissions: new[] { IdentityPermissions.Users.Default, IdentityPermissions.UserLookup.Default }
                 permissions: new[] { IdentityPermissions.Users.Default, IdentityPermissions.UserLookup.Default }
             );
             );
         }
         }

+ 2 - 2
AuthServer/IdentityServer/AuthServer.Host/Migrations/20230131062132_inint.Designer.cs → AuthServer/IdentityServer/AuthServer.Host/Migrations/20230201062326_init.Designer.cs

@@ -12,8 +12,8 @@ using Volo.Abp.EntityFrameworkCore;
 namespace AuthServer.Host.Migrations
 namespace AuthServer.Host.Migrations
 {
 {
     [DbContext(typeof(AuthServerDbContext))]
     [DbContext(typeof(AuthServerDbContext))]
-    [Migration("20230131062132_inint")]
-    partial class inint
+    [Migration("20230201062326_init")]
+    partial class init
     {
     {
         protected override void BuildTargetModel(ModelBuilder modelBuilder)
         protected override void BuildTargetModel(ModelBuilder modelBuilder)
         {
         {

+ 1 - 1
AuthServer/IdentityServer/AuthServer.Host/Migrations/20230131062132_inint.cs → AuthServer/IdentityServer/AuthServer.Host/Migrations/20230201062326_init.cs

@@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
 
 
 namespace AuthServer.Host.Migrations
 namespace AuthServer.Host.Migrations
 {
 {
-    public partial class inint : Migration
+    public partial class init : Migration
     {
     {
         protected override void Up(MigrationBuilder migrationBuilder)
         protected override void Up(MigrationBuilder migrationBuilder)
         {
         {

+ 0 - 4
AuthServer/OpenIddict/AuthServer.Host/AuthServer.csproj

@@ -59,8 +59,4 @@
 		<PackageReference Include="Volo.Abp.AuditLogging.EntityFrameworkCore" Version="6.0.0" />
 		<PackageReference Include="Volo.Abp.AuditLogging.EntityFrameworkCore" Version="6.0.0" />
 	</ItemGroup>
 	</ItemGroup>
 
 
-	<ItemGroup>
-	  <Folder Include="Migrations\" />
-	</ItemGroup>
-
 </Project>
 </Project>

+ 1 - 1
AuthServer/OpenIddict/AuthServer.Host/AuthServerDataSeeder.cs

@@ -154,7 +154,7 @@ namespace AuthServer
                     type: OpenIddictConstants.ClientTypes.Confidential,
                     type: OpenIddictConstants.ClientTypes.Confidential,
                     consentType: OpenIddictConstants.ConsentTypes.Implicit,
                     consentType: OpenIddictConstants.ConsentTypes.Implicit,
                     displayName: "Business Application",
                     displayName: "Business Application",
-                    secret: "1q2w3e*",
+                    secret: "1q2w3E*",
                     grantTypes: new List<string>
                     grantTypes: new List<string>
                     {
                     {
                         OpenIddictConstants.GrantTypes.ClientCredentials,
                         OpenIddictConstants.GrantTypes.ClientCredentials,

+ 1 - 1
AuthServer/OpenIddict/AuthServer.Host/Migrations/20221225153937_init.Designer.cs → AuthServer/OpenIddict/AuthServer.Host/Migrations/20230201075632_init.Designer.cs

@@ -12,7 +12,7 @@ using Volo.Abp.EntityFrameworkCore;
 namespace AuthServer.Migrations
 namespace AuthServer.Migrations
 {
 {
     [DbContext(typeof(AuthServerDbContext))]
     [DbContext(typeof(AuthServerDbContext))]
-    [Migration("20221225153937_init")]
+    [Migration("20230201075632_init")]
     partial class init
     partial class init
     {
     {
         protected override void BuildTargetModel(ModelBuilder modelBuilder)
         protected override void BuildTargetModel(ModelBuilder modelBuilder)

+ 0 - 0
AuthServer/OpenIddict/AuthServer.Host/Migrations/20221225153937_init.cs → AuthServer/OpenIddict/AuthServer.Host/Migrations/20230201075632_init.cs


+ 2 - 2
AuthServer/OpenIddict/AuthServer.Host/appsettings.json

@@ -6,7 +6,7 @@
     "RedirectAllowedUrls": "http://localhost:9527,http://localhost:44307"
     "RedirectAllowedUrls": "http://localhost:9527,http://localhost:44307"
   },
   },
   "ConnectionStrings": {
   "ConnectionStrings": {
-    "Default": "Server=123.60.180.165;Database=DOPCore;Uid=root; Pwd=5heng=uN;Allow User Variables=True;sslMode=None;"
+    "Default": "Server=123.60.180.165;Database=dopbiz;Uid=root; Pwd=5heng=uN;Allow User Variables=True;sslMode=None;"
   },
   },
   "Redis": {
   "Redis": {
     "Configuration": "127.0.0.1"
     "Configuration": "127.0.0.1"
@@ -27,7 +27,7 @@
       "Business": {
       "Business": {
         "ClientId": "business-app",
         "ClientId": "business-app",
         "RootUrl": "http://localhost:51186",
         "RootUrl": "http://localhost:51186",
-        "ClientSecret": "1q2w3e*"
+        "ClientSecret": "1q2w3E*"
       }
       }
     }
     }
   }
   }

+ 0 - 4
BaseService/BaseService.Host/BaseService.Host.csproj

@@ -29,8 +29,4 @@
     <ProjectReference Include="..\BaseService.HttpApi\BaseService.HttpApi.csproj" />
     <ProjectReference Include="..\BaseService.HttpApi\BaseService.HttpApi.csproj" />
   </ItemGroup>
   </ItemGroup>
 
 
-  <ItemGroup>
-    <Folder Include="Logs\" />
-  </ItemGroup>
-
 </Project>
 </Project>

+ 1 - 1
BaseService/BaseService.Host/Migrations/20230131062409_init.Designer.cs → BaseService/BaseService.Host/Migrations/20230201070251_init.Designer.cs

@@ -12,7 +12,7 @@ using Volo.Abp.EntityFrameworkCore;
 namespace BaseService.Migrations
 namespace BaseService.Migrations
 {
 {
     [DbContext(typeof(BaseServiceMigrationDbContext))]
     [DbContext(typeof(BaseServiceMigrationDbContext))]
-    [Migration("20230131062409_init")]
+    [Migration("20230201070251_init")]
     partial class init
     partial class init
     {
     {
         protected override void BuildTargetModel(ModelBuilder modelBuilder)
         protected override void BuildTargetModel(ModelBuilder modelBuilder)

+ 0 - 0
BaseService/BaseService.Host/Migrations/20230131062409_init.cs → BaseService/BaseService.Host/Migrations/20230201070251_init.cs


+ 37 - 24
MicroServices/Business/Business.Application/ResourceExamineManagement/ResourceExamineAppService.cs

@@ -23,6 +23,8 @@ using Volo.Abp.ObjectMapping;
 using Volo.Abp.Application.Services;
 using Volo.Abp.Application.Services;
 using ZstdSharp.Unsafe;
 using ZstdSharp.Unsafe;
 using System.Transactions;
 using System.Transactions;
+using NUglify.JavaScript.Syntax;
+using System.Linq.Expressions;
 
 
 namespace Business.ResourceExamineManagement
 namespace Business.ResourceExamineManagement
 {
 {
@@ -119,6 +121,41 @@ namespace Business.ResourceExamineManagement
             _mysql_ic_bom_child = mysql_ic_bom_child;
             _mysql_ic_bom_child = mysql_ic_bom_child;
         }
         }
 
 
+        /// <summary>
+        /// mongoDB示例方法,后期删除
+        /// </summary>
+        /// <returns></returns>
+        public async Task test()
+        {
+            //多条插入
+            List<mes_technique> infos = new List<mes_technique>();
+            mes_technique info;
+            for (int i = 0; i < 3; i++)
+            {
+                info = new mes_technique();
+                info.GenerateNewId();
+                info.tech_name = "多条" + i;
+                info.level = i;
+                infos.Add(info);
+            }
+            await _mes_technique.InsertMany(infos);
+
+            var info2 = _mes_technique.GetAll().Result;
+            var a = new PschedDto();
+            a.count = info2.Count;
+
+            //获取数据
+            var info1 = await _mes_technique.GetOneByID((long)1732029975067480064);
+
+            //更新数据
+            info1.tech_name = "更新***";
+            var rlt = await _mes_technique.UpdateOne(info1, info1.Id);
+
+            //根据条件查询数据
+            Expression<Func<mes_technique, bool>> filter = x => x.Id == (long)1732376973889097728 && x.tech_name == "多条0";
+            var info3 = await _mes_technique.GetManyByCondition(filter);
+        }
+
         /// <summary>
         /// <summary>
         /// 资源检查
         /// 资源检查
         /// </summary>
         /// </summary>
@@ -127,30 +164,6 @@ namespace Business.ResourceExamineManagement
         /// <exception cref="NotImplementedException"></exception>
         /// <exception cref="NotImplementedException"></exception>
         public async Task<PschedDto> ReceiveResult(SeorderentryDto input)
         public async Task<PschedDto> ReceiveResult(SeorderentryDto input)
         {
         {
-            ////多条插入
-            //List<mes_technique> infos = new List<mes_technique>();
-            //mes_technique info;
-            //for (int i = 0; i < 3; i++)
-            //{
-            //    info = new mes_technique();
-            //    info.GenerateNewId();
-            //    info.tech_name = "多条" + i;
-            //    info.level = i;
-            //    infos.Add(info);
-            //}
-            //await _mes_technique.InsertMany(infos);
-
-            //var info2 =  _mes_technique.GetAll().Result;
-            //var a = new PschedDto();
-            //a.count = info2.Count;
-            //return a;
-
-            ////获取数据
-            //var info1 = await _mes_technique.GetOneByID((long)1732029975067480064);
-
-            ////更新数据
-            //info1.tech_name = "更新***";
-            //var rlt =await _mes_technique.UpdateOne(info1, info1.Id);
             return null;
             return null;
             throw new NotImplementedException();
             throw new NotImplementedException();
 
 

+ 8 - 0
MicroServices/Business/Business.Core/MongoDBHelper/IMongoDB.cs

@@ -1,7 +1,9 @@
 using MongoDB.Driver;
 using MongoDB.Driver;
+using MongoDB.Driver.Linq;
 using System;
 using System;
 using System.Collections.Generic;
 using System.Collections.Generic;
 using System.Linq;
 using System.Linq;
+using System.Linq.Expressions;
 using System.Reflection.Metadata;
 using System.Reflection.Metadata;
 using System.Text;
 using System.Text;
 using System.Threading.Tasks;
 using System.Threading.Tasks;
@@ -49,5 +51,11 @@ namespace Business.Core.MongoDBHelper
         /// <param name="id"></param>
         /// <param name="id"></param>
         /// <returns></returns>
         /// <returns></returns>
         Task<T> GetOneByID(long id);
         Task<T> GetOneByID(long id);
+
+        /// <summary>
+        /// 根据条件获取数据
+        /// </summary>
+        /// <returns></returns>
+        Task<List<T>> GetManyByCondition(Expression<Func<T, bool>> filter);
     }
     }
 }
 }

+ 10 - 0
MicroServices/Business/Business.Core/MongoDBHelper/MongoDBTools.cs

@@ -6,6 +6,7 @@ using MongoDB.Driver.Linq;
 using System;
 using System;
 using System.Collections.Generic;
 using System.Collections.Generic;
 using System.Linq;
 using System.Linq;
+using System.Linq.Expressions;
 using System.Text;
 using System.Text;
 using System.Threading.Tasks;
 using System.Threading.Tasks;
 using Volo.Abp.Domain.Entities;
 using Volo.Abp.Domain.Entities;
@@ -95,5 +96,14 @@ namespace Business.Core.MongoDBHelper
             return mongoCollection.Find(p => p.Id == id).FirstOrDefaultAsync();
             return mongoCollection.Find(p => p.Id == id).FirstOrDefaultAsync();
         }
         }
 
 
+        /// <summary>
+        /// 根据条件获取数据
+        /// </summary>
+        /// <returns></returns>
+        public Task<List<T>> GetManyByCondition(Expression<Func<T, bool>> filter) 
+        {
+            return mongoCollection.Find(filter).ToListAsync();
+        }
+
     }
     }
 }
 }

+ 12 - 19
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/BusinessDbContextModelCreatingExtensions.cs

@@ -25,36 +25,29 @@ namespace Business.EntityFrameworkCore
         {
         {
             //TODO:这样太麻烦了,有时间研究一下批量
             //TODO:这样太麻烦了,有时间研究一下批量
             Check.NotNull(builder, nameof(builder));
             Check.NotNull(builder, nameof(builder));
-            //builder.Entity<Book>(b =>
-            //{
-            //    b.ToTable("Book");
+            builder.Entity<Book>(b =>
+            {
+                b.ToTable("Book");
 
 
-            //    b.ConfigureByConvention();
+                b.ConfigureByConvention();
 
 
-            //    b.Property(x => x.Name).IsRequired();
+                b.Property(x => x.Name).IsRequired();
 
 
 
 
-            //});
+            });
 
 
-            //builder.Entity<PrintTemplate>(b =>
-            //{
-            //    b.ToTable("base_print_template");
+            builder.Entity<PrintTemplate>(b =>
+            {
+                b.ToTable("base_print_template");
 
 
-            //    b.ConfigureByConvention();
+                b.ConfigureByConvention();
 
 
-            //    b.Property(x => x.Name).IsRequired();
-            //});
+                b.Property(x => x.Name).IsRequired();
+            });
 
 
             builder.Entity<ic_bom>(b =>
             builder.Entity<ic_bom>(b =>
             {
             {
                 b.ToTable("ic_bom").HasComment("物料BOM");
                 b.ToTable("ic_bom").HasComment("物料BOM");
-                b.Property(x => x.Id).HasComment("主键");
-                b.Property(x => x.bom_number).HasComment("bom编号");
-                b.Property(x => x.bom_num).HasComment("bom序号");
-                b.Property(x => x.fse_status).HasComment("使用状态");
-                b.Property(x => x.begin_day).HasComment("生效日期");
-                b.Property(x => x.end_day).HasComment("失效日期");
-                b.Property(x => x.tech_id).HasComment("工艺主键");
                 b.ConfigureByConvention();
                 b.ConfigureByConvention();
             });
             });
 
 

+ 8 - 0
MicroServices/Business/Business.Host/BusinessHostModule.cs

@@ -22,6 +22,7 @@ using System.IO;
 using System.Linq;
 using System.Linq;
 using System.Security.Cryptography.Pkcs;
 using System.Security.Cryptography.Pkcs;
 using Volo.Abp;
 using Volo.Abp;
+using Volo.Abp.AspNetCore.ExceptionHandling;
 using Volo.Abp.AspNetCore.MultiTenancy;
 using Volo.Abp.AspNetCore.MultiTenancy;
 using Volo.Abp.AspNetCore.Mvc;
 using Volo.Abp.AspNetCore.Mvc;
 using Volo.Abp.AspNetCore.Serilog;
 using Volo.Abp.AspNetCore.Serilog;
@@ -67,6 +68,13 @@ namespace Business
             ConfigureHangfire(context, configuration);
             ConfigureHangfire(context, configuration);
             //MongoDB依赖注入
             //MongoDB依赖注入
             ConfigureMongoDB(configuration);
             ConfigureMongoDB(configuration);
+            if(hostingEnvironment.IsDevelopment())
+            {
+                Configure<AbpExceptionHandlingOptions>(options =>
+                {
+                    options.SendExceptionsDetailsToClients = true;
+                });
+            }
         }
         }
 
 
         private void ConfigureConventionalControllers()
         private void ConfigureConventionalControllers()

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 215 - 162
MicroServices/Business/Business.Host/Migrations/20230201075415_init.Designer.cs


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 201 - 98
MicroServices/Business/Business.Host/Migrations/20230201075415_init.cs


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 215 - 162
MicroServices/Business/Business.Host/Migrations/BusinessMigrationDbContextModelSnapshot.cs


+ 6 - 6
MicroServices/Business/Bussiness.Model/SIM/sim_base.cs

@@ -11,12 +11,12 @@ namespace Bussiness.Model.SystemData
     [Description("sim基本表")]
     [Description("sim基本表")]
     public class sim_base:BaseEntity
     public class sim_base:BaseEntity
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("主键id")]
-        public long sim_id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("主键id")]
+        //public long sim_id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// sim等级
         /// sim等级

+ 6 - 6
MicroServices/Business/Bussiness.Model/SIM/sim_issue_type.cs

@@ -10,12 +10,12 @@ namespace Bussiness.Model.SystemData
     [Description("上升时间")]
     [Description("上升时间")]
     public class sim_issue_type: BaseEntity
     public class sim_issue_type: BaseEntity
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("上升时间")]
-        public long issue_type_id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("上升时间")]
+        //public long issue_type_id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 类别代码
         /// 类别代码

+ 6 - 6
MicroServices/Business/Bussiness.Model/SIM/sim_plant.cs

@@ -10,12 +10,12 @@ namespace Bussiness.Model.SystemData
     [Description("sim事项表")]
     [Description("sim事项表")]
     public class sim_plant:BaseEntity
     public class sim_plant:BaseEntity
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("主键id")]
-        public long plant_id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("主键id")]
+        //public long plant_id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 事项名称
         /// 事项名称

+ 6 - 6
MicroServices/Business/Bussiness.Model/SIM/sim_user_relation.cs

@@ -10,12 +10,12 @@ namespace Bussiness.Model.SystemData
     [Description("sim用户关联表")]
     [Description("sim用户关联表")]
     public class sim_user_relation: BaseEntity
     public class sim_user_relation: BaseEntity
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("主键id")]
-        public long id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("主键id")]
+        //public long id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// base_sim表ID
         /// base_sim表ID

+ 6 - 6
MicroServices/Business/Bussiness.Model/SystemData/crm_customer.cs

@@ -11,12 +11,12 @@ namespace Bussiness.Model.SystemData
     [Description("客户")]
     [Description("客户")]
     public class crm_customer:BaseEntity
     public class crm_customer:BaseEntity
     {
     {
-        /// <summary>
-        /// 客户主键id
-        /// </summary>
-        [Key]
-        [Description("客户主键id")]
-        public long customer_id { get; set; }
+        ///// <summary>
+        ///// 客户主键id
+        ///// </summary>
+        //[Key]
+        //[Description("客户主键id")]
+        //public long customer_id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 客户编号
         /// 客户编号

+ 6 - 6
MicroServices/Business/Bussiness.Model/SystemData/srm_supplier.cs

@@ -11,12 +11,12 @@ namespace Bussiness.Model.SystemData
     [Description("供应商")]
     [Description("供应商")]
     public class srm_supplier: BaseEntity
     public class srm_supplier: BaseEntity
     {
     {
-        /// <summary>
-        /// 供应商主键id
-        /// </summary>
-        [Key]
-        [Description("供应商主键id")]
-        public long supplier_id { get; set; }
+        ///// <summary>
+        ///// 供应商主键id
+        ///// </summary>
+        //[Key]
+        //[Description("供应商主键id")]
+        //public long supplier_id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 供应商编号
         /// 供应商编号

+ 10 - 8
MicroServices/Business/Bussiness.Model/SystemData/sys_code.cs

@@ -1,6 +1,8 @@
-using System.ComponentModel;
+using Business.Model;
+using System.ComponentModel;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;
 using System.ComponentModel.DataAnnotations.Schema;
+using Volo.Abp.Domain.Entities;
 
 
 namespace Bussiness.Model.SystemData
 namespace Bussiness.Model.SystemData
 {
 {
@@ -8,14 +10,14 @@ namespace Bussiness.Model.SystemData
     /// 系统编码表
     /// 系统编码表
     /// </summary>
     /// </summary>
     [Description("系统编码表")]
     [Description("系统编码表")]
-    public class sys_code
+    public class sys_code:Entity<long>
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("主键id")]
-        public long sys_code_id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("主键id")]
+        //public long sys_code_id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 编码生成名称
         /// 编码生成名称

+ 10 - 8
MicroServices/Business/Bussiness.Model/SystemData/sys_code_pre.cs

@@ -1,5 +1,7 @@
-using System.ComponentModel;
+using Business.Model;
+using System.ComponentModel;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations;
+using Volo.Abp.Domain.Entities;
 
 
 namespace Bussiness.Model.SystemData
 namespace Bussiness.Model.SystemData
 {
 {
@@ -7,14 +9,14 @@ namespace Bussiness.Model.SystemData
     /// 系统编码前置表
     /// 系统编码前置表
     /// </summary>
     /// </summary>
     [Description("系统编码前置表")]
     [Description("系统编码前置表")]
-    public class sys_code_pre
+    public class sys_code_pre:Entity<long>
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("主键id")]
-        public long id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("主键id")]
+        //public long id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 编码生成名称
         /// 编码生成名称

+ 10 - 8
MicroServices/Business/Bussiness.Model/SystemData/sys_config.cs

@@ -1,5 +1,7 @@
-using System.ComponentModel;
+using Business.Model;
+using System.ComponentModel;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations;
+using Volo.Abp.Domain.Entities;
 
 
 namespace Bussiness.Model.SystemData
 namespace Bussiness.Model.SystemData
 {
 {
@@ -7,14 +9,14 @@ namespace Bussiness.Model.SystemData
     /// 系统配置表
     /// 系统配置表
     /// </summary>
     /// </summary>
     [Description("系统配置表")]
     [Description("系统配置表")]
-    public class sys_config
+    public class sys_config:Entity<long>
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("主键id")]
-        public long config_id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("主键id")]
+        //public long config_id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 配置类型
         /// 配置类型

+ 10 - 8
MicroServices/Business/Bussiness.Model/SystemData/sys_measure_unit.cs

@@ -1,5 +1,7 @@
-using System.ComponentModel;
+using Business.Model;
+using System.ComponentModel;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations;
+using Volo.Abp.Domain.Entities;
 
 
 namespace Bussiness.Model.SystemData
 namespace Bussiness.Model.SystemData
 {
 {
@@ -7,14 +9,14 @@ namespace Bussiness.Model.SystemData
     /// 计量单位信息表
     /// 计量单位信息表
     /// </summary>
     /// </summary>
     [Description("计量单位信息表")]
     [Description("计量单位信息表")]
-    public class sys_measure_unit
+    public class sys_measure_unit:Entity<long>
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("主键id")]
-        public long unit_id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("主键id")]
+        //public long unit_id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 单位名称
         /// 单位名称

+ 6 - 6
MicroServices/Business/Bussiness.Model/SystemData/sys_post.cs

@@ -10,12 +10,12 @@ namespace Bussiness.Model.SystemData
     [Description("岗位表")]
     [Description("岗位表")]
     public class sys_post: BaseEntity
     public class sys_post: BaseEntity
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("主键id")]
-        public long post_id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("主键id")]
+        //public long post_id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 岗位编码
         /// 岗位编码

+ 6 - 6
MicroServices/Business/Bussiness.Model/SystemData/sys_post_staff.cs

@@ -10,12 +10,12 @@ namespace Bussiness.Model.SystemData
     [Description("员工岗位关联表")]
     [Description("员工岗位关联表")]
     public class sys_post_staff: BaseEntity
     public class sys_post_staff: BaseEntity
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("主键id")]
-        public long id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("主键id")]
+        //public long id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 员工id
         /// 员工id

+ 6 - 6
MicroServices/Business/Bussiness.Model/SystemData/sys_schedule.cs

@@ -10,12 +10,12 @@ namespace Bussiness.Model.SystemData
     [Description("班次表")]
     [Description("班次表")]
     public class sys_schedule: BaseEntity
     public class sys_schedule: BaseEntity
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("班次主键id")]
-        public long schedule_id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("班次主键id")]
+        //public long schedule_id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 班次编码
         /// 班次编码

+ 6 - 6
MicroServices/Business/Bussiness.Model/SystemData/sys_shift.cs

@@ -10,12 +10,12 @@ namespace Bussiness.Model.SystemData
     [Description("班制表")]
     [Description("班制表")]
     public class sys_shift: BaseEntity
     public class sys_shift: BaseEntity
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("主键id")]
-        public long shift_id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("主键id")]
+        //public long shift_id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 班制编码
         /// 班制编码

+ 7 - 7
MicroServices/Business/Bussiness.Model/SystemData/sys_shift_invalid_time.cs

@@ -7,15 +7,15 @@ namespace Bussiness.Model.SystemData
     /// <summary>
     /// <summary>
     /// 班次无效时间表
     /// 班次无效时间表
     /// </summary>
     /// </summary>
-    [Description("数据状态标识 1启用 0停用")]
+    [Description("班次无效时间表")]
     public class sys_shift_invalid_time:BaseEntity
     public class sys_shift_invalid_time:BaseEntity
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("数据状态标识 1启用 0停用")]
-        public long invalid_time_id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("数据状态标识 1启用 0停用")]
+        //public long invalid_time_id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 班次id
         /// 班次id

+ 6 - 6
MicroServices/Business/Bussiness.Model/SystemData/sys_shift_schedule.cs

@@ -10,12 +10,12 @@ namespace Bussiness.Model.SystemData
     [Description("班制班次关联表")]
     [Description("班制班次关联表")]
     public class sys_shift_schedule:BaseEntity
     public class sys_shift_schedule:BaseEntity
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("主键id")]
-        public long id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("主键id")]
+        //public long id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 班制id
         /// 班制id

+ 7 - 7
MicroServices/Business/Bussiness.Model/SystemData/sys_staff.cs

@@ -7,15 +7,15 @@ namespace Bussiness.Model.SystemData
     /// <summary>
     /// <summary>
     /// 员工表
     /// 员工表
     /// </summary>
     /// </summary>
-    [Description("是否跨天 1是 0否")]
+    [Description("员工表")]
     public class sys_staff:BaseEntity
     public class sys_staff:BaseEntity
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("主键id")]
-        public long staff_id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("主键id")]
+        //public long staff_id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 员工编码
         /// 员工编码

+ 8 - 7
MicroServices/Business/Bussiness.Model/SystemData/sys_upload.cs

@@ -1,5 +1,6 @@
 using System.ComponentModel;
 using System.ComponentModel;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations;
+using Volo.Abp.Domain.Entities;
 
 
 namespace Bussiness.Model.SystemData
 namespace Bussiness.Model.SystemData
 {
 {
@@ -7,14 +8,14 @@ namespace Bussiness.Model.SystemData
     /// 文件上传表
     /// 文件上传表
     /// </summary>
     /// </summary>
     [Description("文件上传表")]
     [Description("文件上传表")]
-    public class sys_upload
+    public class sys_upload:Entity<long>
     {
     {
-        /// <summary>
-        /// 主键id
-        /// </summary>
-        [Key]
-        [Description("主键id")]
-        public long upload_id { get; set; }
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Description("主键id")]
+        //public long upload_id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 文件存储路径
         /// 文件存储路径

+ 1 - 1
MicroServices/FileStorage/FileStorage.EntityFrameworkCore/EntityFrameworkCore/FileStorageDbContext.cs

@@ -8,7 +8,7 @@ using Volo.Abp.EntityFrameworkCore;
 
 
 namespace FileStorage.EntityFrameworkCore
 namespace FileStorage.EntityFrameworkCore
 {
 {
-    [ConnectionStringName("FileStorage")]
+    [ConnectionStringName("Default")]
     public class FileStorageDbContext : AbpDbContext<FileStorageDbContext>
     public class FileStorageDbContext : AbpDbContext<FileStorageDbContext>
     {
     {
         public DbSet<FileInfo> FileInfos { get; set; }
         public DbSet<FileInfo> FileInfos { get; set; }

+ 1 - 1
MicroServices/FileStorage/FileStorage.Host/EntityFrameworkCore/FileStorageMigrationDbContextFactory.cs

@@ -16,7 +16,7 @@ namespace FileStorage.EntityFrameworkCore
             var configuration = BuildConfiguration();
             var configuration = BuildConfiguration();
 
 
             var builder = new DbContextOptionsBuilder<FileStorageMigrationDbContext>()
             var builder = new DbContextOptionsBuilder<FileStorageMigrationDbContext>()
-                .UseMySql(configuration.GetConnectionString("FileStorage"),new MySqlServerVersion(new Version()));
+                .UseMySql(configuration.GetConnectionString("Default"),new MySqlServerVersion(new Version()));
 
 
             return new FileStorageMigrationDbContext(builder.Options);
             return new FileStorageMigrationDbContext(builder.Options);
         }
         }

+ 1 - 1
MicroServices/FileStorage/FileStorage.Host/Migrations/20230131063128_init.Designer.cs → MicroServices/FileStorage/FileStorage.Host/Migrations/20230201071937_init.Designer.cs

@@ -12,7 +12,7 @@ using Volo.Abp.EntityFrameworkCore;
 namespace FileStorage.Migrations
 namespace FileStorage.Migrations
 {
 {
     [DbContext(typeof(FileStorageMigrationDbContext))]
     [DbContext(typeof(FileStorageMigrationDbContext))]
-    [Migration("20230131063128_init")]
+    [Migration("20230201071937_init")]
     partial class init
     partial class init
     {
     {
         protected override void BuildTargetModel(ModelBuilder modelBuilder)
         protected override void BuildTargetModel(ModelBuilder modelBuilder)

+ 0 - 0
MicroServices/FileStorage/FileStorage.Host/Migrations/20230131063128_init.cs → MicroServices/FileStorage/FileStorage.Host/Migrations/20230201071937_init.cs


+ 1 - 2
MicroServices/FileStorage/FileStorage.Host/appsettings.json

@@ -3,8 +3,7 @@
     "CorsOrigins": "http://localhost:9527"
     "CorsOrigins": "http://localhost:9527"
   },
   },
   "ConnectionStrings": {
   "ConnectionStrings": {
-    "Default": "Server=123.60.180.165;Database=dopbiz;Uid=root; Pwd=5heng=uN;Allow User Variables=True;sslMode=None;",
-    "FileStorage": "Server=123.60.180.165;Database=FileStorage;Uid=root; Pwd=5heng=uN;Allow User Variables=True;sslMode=None;"
+    "Default": "Server=123.60.180.165;Database=dopbiz;Uid=root; Pwd=5heng=uN;Allow User Variables=True;sslMode=None;"
   },
   },
   "Redis": {
   "Redis": {
     "Configuration": "192.168.1.191"
     "Configuration": "192.168.1.191"

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä