Java Mybatis无法将多个列从主查询传递到关联查询
将多个列从主查询传递到关联查询不起作用Java Mybatis无法将多个列从主查询传递到关联查询,java,mybatis,spring-mybatis,Java,Mybatis,Spring Mybatis,将多个列从主查询传递到关联查询不起作用 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'CustomerId' not found. Available parameters are [] @SelectProvider(type = CustomerProvider.class, method = "fe
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'CustomerId' not found. Available parameters are []
@SelectProvider(type = CustomerProvider.class, method = "fetchAllById")
@Results({
@Result(property="accounts",
column="customerId, accountId",
javaType=Account.class,
one = @One(select="com.deeshank.dao.AccountMapper.fetchAccounts",
fetchType = FetchType.EAGER))
})
List<Customer> fetchAllById(CustomerQueryRequest queryRequest);
customerId和accountId来自主查询的select列。
非常感谢您的帮助。使用mybatis 3.4.1版或更高版本解决了此问题