bladex物联网平台改cloud版本问题

Blade 未结 1 16

一、该问题的重现步骤是什么?

1. 安装官方文档合并代码后运行

2. 前端调用/blade-iot/product/select接口时候后台报错 显示去查询blade_role_scope表

3.但cloud版本 iot的数据库与基础库区分开的,无法去调用blade_role_scope表

4、我查看代码并没有发现任何拦截器或注解在该接口上,也不知道如何解决。


二、你期待的结果是什么?实际看到的又是什么?

接口正常查询,实际报错 错误sql


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

bladex4.6物联网平台


四、请提供详细的错误堆栈信息,这很重要。

org.mybatis.spring.MyBatisSystemException: 

### Error querying database.  Cause: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [select resource_code, scope_column, scope_field, scope_type, scope_value from blade_scope_data where is_deleted = 0 and scope_class = ? and id in (select scope_id from blade_role_scope where scope_category = 1 and role_id in (?))]

### Cause: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [select resource_code, scope_column, scope_field, scope_type, scope_value from blade_scope_data where is_deleted = 0 and scope_class = ? and id in (select scope_id from blade_role_scope where scope_category = 1 and role_id in (?))]

五、若有更多详细信息,请在下面提供。

1条回答
提交回复