diff --git a/LearningOfficer.OA.Core/Entities/UserCenter/OaUserPermissions.cs b/LearningOfficer.OA.Core/Entities/UserCenter/OaUserPermissions.cs
index 1a38534..af4b1b1 100644
--- a/LearningOfficer.OA.Core/Entities/UserCenter/OaUserPermissions.cs
+++ b/LearningOfficer.OA.Core/Entities/UserCenter/OaUserPermissions.cs
@@ -11,7 +11,7 @@ namespace LearningOfficer.OA.Core.Entities.UserCenter
///
/// 用户学习官权限表
///
- [SugarTable("oa_user_permissions"), Tenant(nameof(ConnectionStringsSettings.UserCenterDb))]
+ [SugarTable("oa_user_permissions"), Tenant(nameof(ConnectionStringsSettings.Db))]
public class OaUserPermissions : BaseEntity
{
///
diff --git a/LearningOfficer.OA.Services/LoginMobile/LoginMobilAppService.cs b/LearningOfficer.OA.Services/LoginMobile/LoginMobilAppService.cs
index 1fe94de..2ef8b88 100644
--- a/LearningOfficer.OA.Services/LoginMobile/LoginMobilAppService.cs
+++ b/LearningOfficer.OA.Services/LoginMobile/LoginMobilAppService.cs
@@ -128,7 +128,7 @@ namespace LearningOfficer.OA.Services.LoginMobile
{
throw new BusinessException("账号或密码错误");
}
- var per = await _db.Queryable()
+ var per = await _db.Queryable().AS("usercenter_v1.oa_user_permissions")
.Where(s => s.UserId == userResult.Id)
.FirstAsync();
if (per == null)