mirror of https://github.com/jeecgboot/jeecg-boot
解决租户角色保存问题 ,多租户模式下,【租户角色】新增角色后,列表中看不到新增记录
parent
76f9575140
commit
1a446007c7
|
@ -106,7 +106,14 @@ public class MybatisInterceptor implements Interceptor {
|
||||||
//e.printStackTrace();
|
//e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
field.set(parameter, tenantId);
|
|
||||||
|
if (field.getType().equals(String.class)) {
|
||||||
|
// 字段类型为String
|
||||||
|
field.set(parameter, tenantId);
|
||||||
|
} else {
|
||||||
|
// 字段类型不是String
|
||||||
|
field.set(parameter, oConvertUtils.getInt(tenantId, 0));
|
||||||
|
}
|
||||||
field.setAccessible(false);
|
field.setAccessible(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue