企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### 从库中确实有该数据,为啥还报错呢? ``` select order_id, user_id from t_order_1 where user_id=1 ``` ``` ### Error querying database. Cause: com.dangdang.ddframe.rdb.sharding.exception.ShardingJdbcException: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 1 ### The error may exist in file [E:\JavaCodeMy\boot-sharding\target\classes\mybatis\OrderMapper.xml] ### The error may involve com.test.mapper.OrderMapper.getOrderListByUserId-Inline ### The error occurred while setting parameters ### SQL: select order_id, user_id from t_order where user_id=? ### Cause: com.dangdang.ddframe.rdb.sharding.exception.ShardingJdbcException: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 1] with root cause ```