将主查询中的多个列传递给关联查询并不起作用。
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 columsn。 任何帮助将不胜感激。