Ver Fonte

代码调整优化

zuohuaijun há 3 anos atrás
pai
commit
c2ce3bcb3f

+ 1 - 1
Admin.NET/Admin.NET.Application/Entity/Business.cs

@@ -3,7 +3,7 @@ namespace Admin.NET.Application.Entity;
 /// <summary>
 /// 租户业务分库表
 /// </summary>
-[SugarTable("d_tenant_business", "租户业务分库表")]
+[SugarTable(null, "租户业务分库表")]
 [TenantBusiness]
 public class TenantBusiness : EntityTenant
 {

+ 1 - 1
Admin.NET/Admin.NET.Application/Entity/Student.cs

@@ -5,7 +5,7 @@ namespace Admin.NET.Application.Entity;
 /// <summary>
 /// 多库代码生成测试学生表
 /// </summary>
-[SugarTable("d_student", "多库代码生成测试学生表")]
+[SugarTable(null, "多库代码生成测试学生表")]
 [Tenant(ApplicationConst.ConfigId)]
 public class Student : EntityBase
 {

+ 1 - 1
Admin.NET/Admin.NET.Application/Entity/Test.cs

@@ -5,7 +5,7 @@ namespace Admin.NET.Application.Entity;
 /// <summary>
 /// 自己业务数据表
 /// </summary>
-[SugarTable("d_test", "自己业务数据表")]
+[SugarTable(null, "自己业务数据表")]
 [Tenant(ApplicationConst.ConfigId)]
 public class Test : EntityBase
 {

+ 1 - 1
Admin.NET/Admin.NET.Application/Entity/TreeTest.cs

@@ -5,7 +5,7 @@ namespace Admin.NET.Application.Entity;
 /// <summary>
 /// 多库代码生成树形测试表
 /// </summary>
-[SugarTable("d_treetest", "多库代码生成树形测试表")]
+[SugarTable(null, "多库代码生成树形测试表")]
 [Tenant(ApplicationConst.ConfigId)]
 public class TreeTest : EntityBase
 {

+ 2 - 2
Admin.NET/Admin.NET.Core/Service/Job/DbJobPersistence.cs

@@ -93,7 +93,7 @@ public class DbJobPersistence : IJobPersistence
         }
         else if (context.Behavior == PersistenceBehavior.Updated)
         {
-            db.Updateable(jobDetail).IgnoreColumns(it => new { it.Id }).WhereColumns(u => new { u.JobId }).ExecuteCommand();
+            db.Updateable(jobDetail).WhereColumns(u => new { u.JobId }).IgnoreColumns(u => new { u.Id }).ExecuteCommand();
         }
         else if (context.Behavior == PersistenceBehavior.Removed)
         {
@@ -117,7 +117,7 @@ public class DbJobPersistence : IJobPersistence
         }
         else if (context.Behavior == PersistenceBehavior.Updated)
         {
-            db.Updateable(jobTrigger).IgnoreColumns(it => new { it.Id }).WhereColumns(u => new { u.TriggerId, u.JobId }).ExecuteCommand();
+            db.Updateable(jobTrigger).WhereColumns(u => new { u.TriggerId, u.JobId }).IgnoreColumns(u => new { u.Id }).ExecuteCommand();
         }
         else if (context.Behavior == PersistenceBehavior.Removed)
         {

+ 0 - 0
Admin.NET/Admin.NET.Core/Service/WeChat/Dto/WechatInput.cs → Admin.NET/Admin.NET.Core/Service/Wechat/Dto/WechatInput.cs


+ 0 - 0
Admin.NET/Admin.NET.Core/Service/WeChat/Dto/WechatPayInput.cs → Admin.NET/Admin.NET.Core/Service/Wechat/Dto/WechatPayInput.cs


+ 0 - 0
Admin.NET/Admin.NET.Core/Service/WeChat/Dto/WechatPayOutput.cs → Admin.NET/Admin.NET.Core/Service/Wechat/Dto/WechatPayOutput.cs


+ 0 - 0
Admin.NET/Admin.NET.Core/Service/WeChat/Dto/WechatUserInput.cs → Admin.NET/Admin.NET.Core/Service/Wechat/Dto/WechatUserInput.cs


+ 0 - 0
Admin.NET/Admin.NET.Core/Service/WeChat/SysWechatPayService.cs → Admin.NET/Admin.NET.Core/Service/Wechat/SysWechatPayService.cs


+ 0 - 0
Admin.NET/Admin.NET.Core/Service/WeChat/SysWechatService.cs → Admin.NET/Admin.NET.Core/Service/Wechat/SysWechatService.cs


+ 0 - 0
Admin.NET/Admin.NET.Core/Service/WeChat/SysWechatUserService.cs → Admin.NET/Admin.NET.Core/Service/Wechat/SysWechatUserService.cs


+ 0 - 0
Admin.NET/Admin.NET.Core/Service/WeChat/WechatApiHttpClient.cs → Admin.NET/Admin.NET.Core/Service/Wechat/WechatApiHttpClient.cs