From bdfd7fef242a519aac505d83591e11e2aa75f75e Mon Sep 17 00:00:00 2001
From: liaoxujun@qq.com <liaoxujun@qq.com>
Date: 星期二, 01 八月 2023 17:14:28 +0800
Subject: [PATCH] 完成租户用户同一api登录,新增加租户表,租户关联表, 员工表增加TenderID 字段 需要增加表只需要将 appset codefirst设置为true 运行将自动更新表结构
---
DocumentServiceAPI.Application/System/Services/OrganizationService.cs | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/DocumentServiceAPI.Application/System/Services/OrganizationService.cs b/DocumentServiceAPI.Application/System/Services/OrganizationService.cs
index 681ee06..79bb66b 100644
--- a/DocumentServiceAPI.Application/System/Services/OrganizationService.cs
+++ b/DocumentServiceAPI.Application/System/Services/OrganizationService.cs
@@ -8,5 +8,13 @@
/// </summary>
public class OrganizationService : BaseRepository<Document_TenderUnit>, ITransient
{
+
+ public OrganizationService(ISqlSugarClient sql) {
+ base.Context = sql;
+ base.Context.AsTenant().ChangeDatabase("default");
+
+ }
+
+
}
}
--
Gitblit v1.9.1