优化用户角色的关联关系接口的逻辑

This commit is contained in:
季圣华
2023-11-23 23:54:52 +08:00
parent 28075557da
commit 2cd4d5a2d0
5 changed files with 24 additions and 46 deletions

View File

@@ -55,8 +55,8 @@ public class TenantConfig {
if (tenantId!=0L) {
// 这里可以判断是否过滤表
if ("jsh_material_property".equals(tableName) || "jsh_sequence".equals(tableName)
|| "jsh_user_business".equals(tableName) || "jsh_function".equals(tableName)
|| "jsh_platform_config".equals(tableName) || "jsh_tenant".equals(tableName)) {
|| "jsh_function".equals(tableName) || "jsh_platform_config".equals(tableName)
|| "jsh_tenant".equals(tableName)) {
res = true;
} else {
res = false;
@@ -85,6 +85,8 @@ public class TenantConfig {
return true;
} else if ("com.jsh.erp.datasource.mappers.LogMapperEx.insertLogWithUserId".equals(ms.getId())) {
return true;
} else if ("com.jsh.erp.datasource.mappers.UserBusinessMapperEx.getBasicDataByKeyIdAndType".equals(ms.getId())) {
return true;
}
return false;
}