mirror of
https://github.com/jeecgboot/jeecg-boot.git
synced 2025-10-18 09:24:45 +00:00
解决租户角色保存问题 ,多租户模式下,【租户角色】新增角色后,列表中看不到新增记录
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user