Browse Source

解决租户角色保存问题 ,多租户模式下,【租户角色】新增角色后,列表中看不到新增记录

pull/6339/head
JEECG 5 months ago
parent
commit
1a446007c7
  1. 7
      jeecg-boot-base-core/src/main/java/org/jeecg/config/mybatis/MybatisInterceptor.java

7
jeecg-boot-base-core/src/main/java/org/jeecg/config/mybatis/MybatisInterceptor.java

@ -106,7 +106,14 @@ public class MybatisInterceptor implements Interceptor {
//e.printStackTrace(); //e.printStackTrace();
} }
} }
if (field.getType().equals(String.class)) {
// 字段类型为String
field.set(parameter, tenantId); field.set(parameter, tenantId);
} else {
// 字段类型不是String
field.set(parameter, oConvertUtils.getInt(tenantId, 0));
}
field.setAccessible(false); field.setAccessible(false);
} }
} }

Loading…
Cancel
Save